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.
Solved! Go to Solution.
Solved by cwhetten. Go to Solution.
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.