User Preference in Macro
Posted: Wed Aug 18, 2021 6:58 am
Would like to get some opinions on whether is there a better way to do this...
Currently i have a few macros in my personal macro library which allow the user to "customize" the macro.
For example, I have a Copy Surface macro, and user can customize the colour of the copy surface feature without messing with the swp file.
The user will run a separate macro, MacroOption macro to adjust their preference. The setting will then be saved into a txt file,
When running the Copy Surface macro, the macro will then read the txt file, find the value and apply the colour according to the user preference
So far, the macros is working great, but I was just wondering whether will is there a better/easier way to handle these kinds of "User Preference" in solidworks macro without messing with the registry?
As i by no mean is a real programmer (most of my vba is taught by google search ), I would like to get some opinions from the experts XD.
Currently i have a few macros in my personal macro library which allow the user to "customize" the macro.
For example, I have a Copy Surface macro, and user can customize the colour of the copy surface feature without messing with the swp file.
The user will run a separate macro, MacroOption macro to adjust their preference. The setting will then be saved into a txt file,
When running the Copy Surface macro, the macro will then read the txt file, find the value and apply the colour according to the user preference
So far, the macros is working great, but I was just wondering whether will is there a better/easier way to handle these kinds of "User Preference" in solidworks macro without messing with the registry?
As i by no mean is a real programmer (most of my vba is taught by google search ), I would like to get some opinions from the experts XD.