Link drawing property to model property
Link drawing property to model property
(OP)
Hello all,
Is there a way to link a drawing custom property to a custom property in the part/assy? I can't seem to find the answer anywhere in this forum.
In the File-Properties-Custom tab the syntax I thought would work was $PRPSHEET:"TITLE1" where TITLE1 is the property in the part or assy. But this doesn't seem to work.
Thanks in advance!
- Chris
Is there a way to link a drawing custom property to a custom property in the part/assy? I can't seem to find the answer anywhere in this forum.
In the File-Properties-Custom tab the syntax I thought would work was $PRPSHEET:"TITLE1" where TITLE1 is the property in the part or assy. But this doesn't seem to work.
Thanks in advance!
- Chris






RE: Link drawing property to model property
RE: Link drawing property to model property
I looked at the post you referenced. The macro by EEnd is fine, but my property names are different and therefore it doesn't work. I'd rather not get into programming (which I can't do anyway!!!)
What I REALLY want to work is what Gildashard said in that post, but it doesn't seem to work for me.
Regards,
- Chris
RE: Link drawing property to model property
Which version of SW are you using.
2009 has a "Property Tab Builder" and you can create properties for Assembly,Part and Drawing.
If not you can create a text file with all the properties and point to that file in SW. These properties will be available in "Custom" tab.
Link these properties in your drawing.
Hope this works.
Thanks
RE: Link drawing property to model property
I am on SW2009 SP2.1. I tinkered with the Property Tab Builder but it doesn't seem to be able to link a drawing custom property with a part/assy custom property. From all that I've read, the syntax:
$PRPSHEET:"custom property name"
is supposed to read the custom property name of the model displayed in the drawing. This works fine for notes and such, but not for a drawing custom property itself.
Regards,
- Chris
RE: Link drawing property to model property
Remember that custom property names are case esensitive.
RE: Link drawing property to model property
Propagating the model custom properties to the drawing document's custom properties is different than propagating the model CP's to a note in a drawing.
It is easier than you think to modify EEnd's PropertySync macro to the property names you are using.
RE: Link drawing property to model property
I have few different custom properties liked to the part are working without any problem.
Please check the link
Can you please post the drawing file?
Thanks
RE: Link drawing property to model property
No need for drillrig to post a file. The problem is not related to linking a note or annotation on the drawing. It is linking the drawing document properties itself.
Just open a new drawing, go to File > Propeties and try to populate a field in the Custom Properties section with a CP from the model.
RE: Link drawing property to model property
I have attached a screenshot of my drawing properties. The model referenced by the drawing has its own custom property with the name:
TITLE1
But as you can see the software is not reading the custom property from the part file.
What am I doing wrong?????
Thanks again.
- Chris
RE: Link drawing property to model property
RE: Link drawing property to model property
Here's a screen shot of the model properties.
Thanks.
- Chris
RE: Link drawing property to model property
RE: Link drawing property to model property
- Chris
RE: Link drawing property to model property
p.s. nice job w/ the screenshots, especially the last one.
RE: Link drawing property to model property
It works fine for linking in the drawing title block, but not when linking in the drawing custom properties.
Any other thoughts?
- Chris
RE: Link drawing property to model property
My drawings do the same thing. The evaluated value does not resolve in the properties dialog but it resolves in notes. I never really considered it a problem. Just used to it, I guess. Here we are all conditioned to linked properties effectively saying "see the model for the real value".
RE: Link drawing property to model property
What is the purpose of propagating the drawing CP's with the model CP's?
Although this has been requested several times, I have never really understood the need for doing such.
RE: Link drawing property to model property
RE: Link drawing property to model property
The answer to your question is best said by Stoker in the previous thread that you referenced...if I may quote:
"I can see the value in this, especially when a PDM system is being used. For example, if you are pulling the drawing number and description fields into the title block from the referenced part/assembly and you do not also have these custom properties in the drawing file, you will not have these properties available when looking at previews of the drawing or when searching through the PDM system. You will also not see the description show up when you highlight the drawing file in Windows Explorer, nor will you get the description in the windows status bar (both very useful). In my opinion, it is best to have the description field in both places - part and drawing, which is what is being requested."
Thank you very much for the macro. I will dig into it and see if I can get it to do what I want. I also found a macro from CustomSolids.com which has similar functionality.
My bottom line: Why do I need to run a macro to do this when using the $PRPSHEET syntax works just fine in drawing notes, title block, etc?
- Chris
RE: Link drawing property to model property
The answer to why is likely nothing better than the code that evaluates the custom properties is different than the code that evaluates the note text and the custom property one does not have the functionality that we would like.
The main down side of the macro is that it is not associative. If the properties in the model change, they will not automatically update in the drawing. The macro will need to be rerun.
The property names TITLE1 and TITLE2 suggest you have properties for two lines in the title box. The text boxes in later versions of SolidWorks (2007+?) can hold multiple lines, allowing you to get by with just one property. If you feel the need to control the line break, you can hold down the alt key and punch in 0010 on your number pad to insert a line break character.
Please submit an enhancement request for this functionality, the more people who do, the more likely we are to get it.
Eric
RE: Link drawing property to model property
RE: Link drawing property to model property
RE: Link drawing property to model property
I can't get that to work in the drawing CP. Would you mind posting an example?
drillrig,
"I will dig into it and see if I can get it to do what I want."
The macro I posted should already do what you want. It has been changed to propagate the TITLE1 property.
RE: Link drawing property to model property
RE: Link drawing property to model property
RE: Link drawing property to model property
- Chris