Stabilize model name in drawing

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
First off, newbie speaking here. I've searched around and surprisingly can't find a straightforward answer to my simple question below.
About to write my first iLogic code in a drawing. Before I get too deep I have an initial question. How do you "stabilize" the drawing's associated model so that the code will still work regardless of the model's name? This drawing will be copied (CopyDesign) along with the model. The model iLogic code will work because I've "stabilized" the browser nodes but that doesn't seem to work in drawings. I intend to have some drawing code that grabs info (parameters, iProps) from the assembly model so a stable connection between the drawing and model regardless of model name is essential.
I'm going to guess that I have to use additional code provided in iLogic to GET the model document name (code available under "Advanced Drawing API" and go from there. To do this do I have to incorporate a VBA "Dim" statement to hold the model name value or set it as a custom iProp in the drawing?
What I'm mainly looking to do is get the model info into the drawing where I can run some simple If/Then statements to manipulate the data as needed for the drawing. Just looking for some help to kick me off in the right direction when working with iLogic in drawings.
Thanks.
MechMan