The note is not attached to this piece, it is a body of text that is not attached to any view in which I would like to retrieve part markers on several views.
The "SW-Mass@pièce.SLDPRT" syntax allows you to retrieve the mass of "part. SLDPRT" even if it is not present in the plan. it's just starting it in front of the @ that should be changed
$PRPSHEET:"filename" returns the custom "filename" property of the document used as the drawing reference.
In my case, I'm not looking for the custom property of the document used as a reference. It is the drawing of a large assembly. In a corner, I want to put a note to explain the assembly:
"After lubrication, replace the "Rep@garisseur.SLDPRT" oiler with the "Rep@bouchon.SLDPRT" plug.
This way, if the marker of the oiler or the cap changes, the text follows.
On the other hand, the syntax "Rep@garisseur.SLDPRT" is not good. To display the mass, the syntax is "SW-Mass@graisseur.SLDPRT"
The question is: What to replace "SW-Mass" with to get the custom property "Rep"?
A simple question derived from the subject: in my case,
$PRPSHEET:"No_article" returns the custom property "No_article" of the document used as the drawing reference. Thank you Yannick for your method to link a property of a part to an annotation in a drawing, it works perfectly.
Now, I would like to be able to run a macro that saves my drawing in the directory of my choice in the form "No_article.pdf"
How do I retrieve this "No_article" property in a variable in a macro?