copy custom model ipropertites to drawing iproperties
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
A drawing border swap out is need on a set of drawings.
The new border references custom drawing iproperties
the old border refernces custom part iproperties
some of the iproperties have slightly different names.
In the past i used:
SyntaxEditor Code Snippet
Dim docFile As Document If ThisDoc.ModelDocument IsNot Nothing Then docFile = ThisDoc.ModelDocument Else
to write from a text box to the custom iproperties of the part - first model placed on the drawing.
SyntaxEditor Code Snippet
iProperties.Value(docFName, "Custom", "TITLE_LINE_4") = iProperties.Value("Custom", "TITLE_LINE_4") iProperties.Value(docFName, "Custom", "PLANT_TITLE") = iProperties.Value("Custom", "PLANT_TITLE")
i'm guessing to port the values from the model to the drawing i need to change this:
SyntaxEditor Code Snippet
docFile = ThisDoc.ModelDocument
for docFile i could copy & rename to dwgFile
ThisDoc.ModelDocument copy & rename to whatever the drawing is referenced as?
then create a mapping to compensate for the slight differences in custom iproperty names.
That's the outline of my plan - scouring this site for code to 'borrow' 🙂