Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Syntax for drawing view alignment

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
twinz3950
475 Views, 2 Replies

Syntax for drawing view alignment

I am trying to align two views horizontally  with I logic, (view 1) and (view 2) but I am not sure what the syntax needs to look like.

 

I know that I need to import the Drawing view Alignment Enumeration, but other than that I don't know what to do, can some one post an example of how to align views with I-logic. Thanks.

2 REPLIES 2
Message 2 of 3
cwhetten
in reply to: twinz3950

You will have to access two drawing view objects:  the view you are trying to align and the view you wish to align it with.

 

So, let's say that you have accessed the two drawing view objects and stored them in the following variables:

 

oTargetView (this one stores the view you are trying to align)

oInputView (this is the view you are aligning with)

 

You will also need to choose a DrawingViewAlignmentEnum.  This tells it how you wish to align it, and you have three choices: kHorizontalViewAlignment, kVerticalViewAlignment, and kInPositionViewAlignment.

 

Once you have these three things, your syntax will be as follows:

 

oTargetView.Align(oInputView, DrawingViewAlignmentEnum.kHorizontalViewAlignment)

 

Post back if you have any more questions about this.

 

Cameron Whetten
Inventor 2014

Please click "Accept as Solution" if this response answers your question.

Message 3 of 3
twinz3950
in reply to: twinz3950

Thank you for your help.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report