- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
oPath can be standardized yes. You can either take the location from the main assembly you are working in using this doc.path or hard code it in stating location like “c/…/…” or use system IO to get another path if you would like.
For the progress bar you will need to use the loop of assembly documents to index up the progress bar. The link below has a great example so simply transfer the code to your rule excluding the loop sample they are using.
https://blogs.rand.com/manufacturing/2017/10/inventor-progress-bar.html
Regarding opening the drawing checking and closing this is the process carried out regardless of the operation being performed .
You can change the visibility of the drawing to false which will not open on screen but in the background. There has been mixed results of this on various forum post so I keep it visible. You may be able to put in some update snippets to ensure the drawing gets updated before printing etc.
oDrawDoc = ThisApplication.Documents.Open(iptPathName, False)
Or if this helped you, please, click (like)
Regards
Alan