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

Change Section View Direction iLogic

Anonymous

Change Section View Direction iLogic

Anonymous
Not applicable

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.

 

 

0 Likes
Reply
Accepted solutions (1)
835 Views
2 Replies
Replies (2)

Curtis_Waguespack
Consultant
Consultant
Accepted solution

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
Not applicable

That's exactly what I needed.

Thanks!

0 Likes