Autodesk Inventor
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Simple ilogic Rule?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
Our drawing borders have a Mass on them driven by the physical properties of the model.
We have had issues where the mass on the drawings would read "N/A" when the models were updated. I have partially solved this by altering the settings in the general tab to "update phyiscal properties on save".
This works fine most of the time. However it is still possible to update the model then view the drawing and save it without saving the model first. This results in the "N/A" appearing in the mass box.
Is there a simple way of ensuring the model is saved before the drawing is saved, thus forcing a physical property update? ilogic perhaps?
Thanks.
Inventor 2011 SP2, Vault Professional 2011
Dell T3400 Core2 Quad 2.4GHz. 8.0GB RAM
Nvidia Quadro FX1700 (x2)
Solved! Go to Solution.
Re: Simple ilogic Rule?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
In the drawing:
1) Create a rule.
2) Insert this line:
ThisDrawing.ModelDocument.Save
3) Go to Manage>iLogic>Event Triggers.
4) Add your new rule to the Before Save Document event
Simple ilogic Rule?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks for the response Mike,
Can't get the rule to work.
returns the following ilogic error:
Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
We have 2011 sould this be the reason?
Inventor 2011 SP2, Vault Professional 2011
Dell T3400 Core2 Quad 2.4GHz. 8.0GB RAM
Nvidia Quadro FX1700 (x2)
Re: Simple ilogic Rule?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Your Inventor version shouldn't be an issue, VBA is VBA. Unfortunately an unspecified error could be anything. Has this model been saved before? The Save method requires that the model have already been saved before. Is the file read-only? Do you have write permission for the location where the file is stored? Is Vault involved? Is the wind blowing from the East? Are you using LOD's?
Re: Simple ilogic Rule?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks, I see. The file was new and needed an initial save.
Many thanks.
Inventor 2011 SP2, Vault Professional 2011
Dell T3400 Core2 Quad 2.4GHz. 8.0GB RAM
Nvidia Quadro FX1700 (x2)
