Hi there,
Is it possible to write custom properties and configuration specific custom properties to a part or assembly file without opening the file in SW and 'walk' thru all the configurations ?
Other question, in a macro I wrote which iterates thru all the configurations I end up with a runtime error.
This seems to happen when the files contains 'a lot of', for example 40 configuration, next when I delete configurations and have 10 left the macro works normal.
Greetings !
SolidworksApi macros
Hi, yes...this can be done using the SW Document Manager interface.
As for why your program is erroring, you should catch the error and check the trace stack and see if you can get a clue as to what may be causing the error...maybe you need a rebuild somewhere or you might have a bug in your code that glitches out on specific configs for some reason, but you have to troubleshoot it...hard to say what may be wrong without looking at the code.
Filipe
The suggestion by Fillipe sounds better. But just FYI (and because some people don't know about the Explorer) you can use SolidWorks Explorer to change Custom Properties without opening an SW entity. SW Explorer is probably more useful for tasks like Pack And Go and Rename.
Navigate to the part in SW Explorer, and click the Properties tab on the right. Double click on the property you want to change. It is pretty limited, easiest to change the value of an existing property. If you add a Prop you have to type it in, no drop down menu. You would have to experiment a bit.
Also, if possible, I can't figure out how to change Config Specific Custom Props, but works for the standard custom props. Can also rename configurations on the tab of that name.
And if you use PDM there are more limitations on what you can change (eg Revision is PDM controlled).