-
Re: Need to access the $PRPSHEET "ArtNr" value
Josh Brady Aug 30, 2018 8:14 AM (in response to Robert Voogt)Do you know what $PRPSHEET is? It links to the custom property of the model in the view specified in sheet properties. Basically it points to the custom property of the referenced model rather than the custom property of the drawing document. You need to get the ModelDoc2 referenced by the view on the sheet and read its custom property.
-
Re: Need to access the $PRPSHEET "ArtNr" value
Robert Voogt Aug 30, 2018 8:43 AM (in response to Josh Brady)My swModel is DIM'd as SldWorks.ModelDoc2 and set as swApp.ActiveDoc. (so indeed to the document itself and not the referenced model)
How can I get the ModelDoc2 referenced by the view on the sheet?
-
Re: Need to access the $PRPSHEET "ArtNr" value
Josh Brady Aug 30, 2018 8:56 AM (in response to Robert Voogt)Here is a link to the first Google search result for "How can I get the ModelDoc2 referenced by the view on the sheet?"
Get default view drawing - use custom properties c#
It's in C#, so the syntax is a little different but the calls are all the same.
-
-