Inventor General Discussion

Inventor General Discussion

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

iLogic to edit document settings

164 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,986
Registered: ‎03-08-2006
Message 2 of 4 (161 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 (158 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,986
Registered: ‎03-08-2006
Message 4 of 4 (150 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.





Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!