Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link drawing property to model property

Status
Not open for further replies.

drillrig

Mechanical
Oct 27, 2004
33
US
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
 
Replies continue below

Recommended for you

A couple of quick notes…

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
 
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?
One reason is probably linked to single-sheet vs multi-sheet drawings. The title block and any notes on a drawing sheet only refer to the model placed on the active sheet when $PRPSHEET is used. In a multi-sheet drawing, the drawing CP's refer to the whole document (all the sheets) ... so the $PRPSHEET:"TITLE1" syntax does not tell the CP which model it is referring to.
 
You can also use $PRPVIEW:"{property name}" to link properties to a model in a drawing view.
 
Tick,
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.
 
It doesn't work for linking properties. It's for putting properties in notes. It's the end result of what is inserted by the custom property button in the note editing dialog.
 
Thanks all for your replies. Looks like I'll be using the macro.

- Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top