Hello
I'm looking for a macro to view and edit the properties of a SOLIDWORKS configuration. More precisely, it is the property that defines the reference in the BOM (Choice between: Document name, configuration name, user-specified name)
Thanks in advance
Sylvain
pl
June 7, 2016, 8:59am
2
Hello
Have you tested the macro recorder to see the code that is created when you make the changes by hand?
http://help.solidworks.com/2013/French/SolidWorks/sldworks/c_recording_playing_macros.htm
You can put the code in a text file here for me to look at.
Thank you for this advice but it doesn't seem to give much. We have the same code regardless of the option chosen
macrotest.txt
Hello
After some research and reflection I found this :
boolstatus = Part.EditConfiguration3("Nom_config", "Nom_config", "", "", 1) =>configuration name
boolstatus = Part.EditConfiguration3("Défaut_m", "Défaut_m", "", "foo", 1) => user-specified name (with foo as the specified name)
boolstatus = Part.EditConfiguration3("Défaut_m", "Défaut_m", "", "", 256) => Document name
So I know how to modify this property, it's a good start but now I would like to be able to read this info but I have no lead for now.
Do you know how to do it ?