Inventor General Discussion

Inventor General Discussion

Reply
Contributor
MikeRid
Posts: 14
Registered: ‎11-09-2012
Message 1 of 4 (155 Views)
Accepted Solution

iLogic to edit document settings

155 Views, 3 Replies
04-03-2013 09:05 AM

Is there a way in iLogic to change the document setting for an .idw file?

 

Inventor 2013

Hi MikeRid,

 

This should work, just set myStandard to the standard you want to use.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

myStandard = "Default Standard (ISO)"
Dim oDoc As DrawingDocument
oDoc = ThisApplication.ActiveDocument  
oDoc.StylesManager.ActiveStandardStyle = oDoc.StylesManager.StandardStyles(myStandard)

 

*Expert Elite*
Curtis_Waguespack
Posts: 2,930
Registered: ‎03-08-2006
Message 2 of 4 (152 Views)

Re: iLogic to edit document settings

04-03-2013 09:28 AM in reply to: MikeRid

Hi MikeRid,

Yes. Is there a particular setting or settings you're wanting to set? If so I'll try and provide an example.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com



  solution.png  Did you find this reply helpful ? If so please use the Accept as Solution or  Kudos button below.





Contributor
MikeRid
Posts: 14
Registered: ‎11-09-2012
Message 3 of 4 (149 Views)

Re: iLogic to edit document settings

04-03-2013 09:31 AM in reply to: Curtis_Waguespack

I'd like to change the Active Standard when I switch the title block through a foms I already have active.

 

Thanks.

 

Inventor 2013 

*Expert Elite*
Curtis_Waguespack
Posts: 2,930
Registered: ‎03-08-2006
Message 4 of 4 (141 Views)

Re: iLogic to edit document settings

04-03-2013 09:42 AM in reply to: MikeRid

Hi MikeRid,

 

This should work, just set myStandard to the standard you want to use.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

myStandard = "Default Standard (ISO)"
Dim oDoc As DrawingDocument
oDoc = ThisApplication.ActiveDocument  
oDoc.StylesManager.ActiveStandardStyle = oDoc.StylesManager.StandardStyles(myStandard)

 



  solution.png  Did you find this reply helpful ? If so please use the Accept as Solution or  Kudos button below.





Announcements
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.