Looking for a macro that will pull a custom property from a part or assembly model and copy it to the drawing custom properties. Right now I only need a single custom property "DESCRIPTION" to be copied but all properties would be OK.
If you still looking for a macro, try the attached ones. One is to copy all properties and other is to copy only Description property.
Do you want a whole macro or just some snippets?
I would prefer the whole macro (not a programmer).
If you're using PDM, the this topic has been discussed here
Unfortunately, we are not using SW PDM.
Then I think #TASK should be the one you're looking for
Our application #task has a macro in it that will do this for you.
You can download and use it free from here:
Once installed, browse the macro library and select the 'Copy Custom Properties' macro.
Why do you need a macro? Why can't you just link the custom property "DESCRIPTION" of a part or an assembly to the drawing custom property ($PRPSHEET:"DESCRIPTION")?
That works on the drawing itself, but not in the custom properties.
In my Macro Library I have a macro called "Copy part or assembly custom properties to drawing custom properties". Requires a free membership at my web site.
SolidWorks API Training and Services
Deepak, I tried the description only macro, and it worked great. Thanks for the help!!
I did notice that the description is not showing up in the "Property Builder Tab", after filling out the file properties, any thoughts?
I figured out why it was not showing up in the property builder tab.
Again thanks for your help along with all the others that sent solutions.
How would I add a rebuild function (to rebuild the drawing) after the properties are copied?
Use swDraw.ForceRebuild3 True before end sub
Also #TASK has such a macro available for batch processing.
If anyone requires it, I have made an update so that it uses the referenced configuration property unless it is blank, then it will use the referenced document property.
It would be great if you could just use $PRPSHEET:"Description" to reference the model property.
Retrieving data ...