Inventor General Discussion

Inventor General Discussion

Active Member
Posts: 10
Registered: ‎02-10-2014
Message 1 of 1 (64 Views)

iLogic change drawing borders from assembly

64 Views, 0 Replies
02-10-2014 01:30 PM

I have an external rule that opens all parts in an assembly and performs a series of tasks to these parts. One task is to print the drawing for the part, if there is one. I would like to add the task of changing the border of the drawing. I can get a rule to accomplish this with one single drawing open. But I need to be able to go through all drawings associated to all the parts in an assembly. Here is a small example of one of the code variations I have used to try and accomplish this, it just will not work. Any help would be very much welcomed.


Dim oDrawDoc As DrawingDocument
oDrawDoc=ThisApplication.Documents.Open(idwPathName, True)

oDrawDoc.ActiveSheet.SetBorder("border", "", "")
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.