
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
so usually, if you have got an IDW with a view, and you run a rule from that IDW, you can easily reference the model like this for example:
oFileName = ThisDrawing.ModelDocument.FullFileName
Now I want to create an IDW template with the following event trigger: "New Document fires when a document is created from a template. " starting a rule. So that when I create a drawing for a saved model of mine, the rule starts first thing and I can choose a sheet format from a list for example.
My problem now is, that the rule triggers when there is not yet a view on the IDW. Only after the rule can I place a view. Only then can I reference the model in the above mentioned ways. And I want the choice of sheet format depend on the name of the model.
Correct me if I'm wrong, but Inventor itself does have a reference to the model in the empty IDW: It let's you place a view from the model from which you opened the IDW template. Can I maybe go this way to get my reference? Or ist it impossible? Or is there another way?
I don't want to go the way of first placing the view, then running the code, I need the code run first thing with a reference to the model.
Thank you for your time!
Solved! Go to Solution.