Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
834 Views, 2 Replies

Change Section View Direction iLogic

Hello there,

 

I was wondering if it is possible to change the direction of a Section View with the use of iLogic.

 

So far I have not been able to determine the direction property and found no threads which adress this problem.

 

 

Curtis_Waguespack
in reply to: Anonymous

Hi Jake_M.,

 

There isn't an ilogic method to do this, but you can use an API call in an iLogic rule for this.

 

Here's an example (note that it expects the 2nd view on the sheet to be a section view).

 

Also just as a tip, you can search and ask programming questions of this type on the Inventor Customization forum:
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120

 

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

 

Dim oDoc As DrawingDocument
oDoc = ThisApplication.ActiveDocument

Dim oView As SectionDrawingView
'expects the 2nd view on the sheet to be a section view
oView = oDoc.ActiveSheet.DrawingViews.Item(2)

'flip the section view direction
oView.ReverseDirection

 

Anonymous
in reply to: Curtis_Waguespack

That's exactly what I needed.

Thanks!