Link a Custom Property to Part/Assy in drawing view?
Link a Custom Property to Part/Assy in drawing view?
(OP)
I'm looking for a way to link a custom property in a SLDDRW (drawing) file to a custom property in the model/assembly shown in the drawing file--specifically, the Description.
My idea of an indirect way to do this is to link a custom property in the drawing to the note in the title block that references the part/assembly description. I tried creating a new custom property and putting:
$PRPSHEET:"Description"
In the Value/Expression field of that custom property... no dice. I could have it formatted wrong, or (more likely) that just doesn't work.
Any thoughts? help? comments? Can it be done? Please let me know, & thanks in advance...
Brian
My idea of an indirect way to do this is to link a custom property in the drawing to the note in the title block that references the part/assembly description. I tried creating a new custom property and putting:
$PRPSHEET:"Description"
In the Value/Expression field of that custom property... no dice. I could have it formatted wrong, or (more likely) that just doesn't work.
Any thoughts? help? comments? Can it be done? Please let me know, & thanks in advance...
Brian






RE: Link a Custom Property to Part/Assy in drawing view?
RE: Link a Custom Property to Part/Assy in drawing view?
What I want is ANOTHER custom property in the drawing file (let's call it XXX) that is linked to that note:
XXX = value of Note
Similar I suppose to the way you can link a custom property to a dimension value.
Does that make more sense? If so, can that be done?
RE: Link a Custom Property to Part/Assy in drawing view?
Just link the second note to the part in the same way you linked the first note. Why complicate things by creating dependancy links which forces SW to have to "regen" twice? One to update the first note, then again to update the second.
RE: Link a Custom Property to Part/Assy in drawing view?
The reason is that I am having a program written that needs to access three things from each drawing file of a project:
-Page Number (which is a custom property "Page" in the drawing file)
-Part Description (the part in the view(s) on the drawing)
-Part "Group" (a custom property in the part on the drawing)
Having the program get the page number is easy--it's a custom property. The other two may not be so easy. If I were able to create custom properties (the whole linking thing), then the program could get those fields the same way that it gets the page number.
Does that make sense? Although clear to me, it seems like it would be confusing to read and understand... I need some visual aids?!?
Thanks,
Brian
RE: Link a Custom Property to Part/Assy in drawing view?
RE: Link a Custom Property to Part/Assy in drawing view?
RE: Link a Custom Property to Part/Assy in drawing view?
I am not into programming, but your program (Macro, API, ?) should be able to access the same information that the drawing sheet accesses. Now that we know what you are really trying to do, maybe the programming gurus here can help you out.
Good luck.