How to set 'Display Options' in DrawingView?

How to set 'Display Options' in DrawingView?

Anonymous
Not applicable
402 Views
5 Replies
Message 1 of 6

How to set 'Display Options' in DrawingView?

Anonymous
Not applicable
I'm writing a program that can generate all Drawings for .iam file.
The code is:
oBaseView = oSheet.DrawingViews.AddBaseView((Inventor._Document)oDoc, oPnt, 1, Inventor.ViewOrientationTypeEnum.kCurrentViewOrientation , Inventor.DrawingViewStyleEnum.kHiddenLineRemovedDrawingViewStyle, "", oCamera, oBaseViewOptions);
The problem is that it doesn't draw any Tangent Edges on the picture.

Does anybody know that I can set the option in Display Options by code?

Thanks
0 Likes
403 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
The 'Display Tangent Edges' option is turned off by default during the
creation of a view with the current model orientation. It is turned on by
default for all iso-view creations. To turn the display on, you can use the
DisplayTangentEdges property on the newly created base view.

oBaseView.DisplayTangentEdges = True

Sanjay-

wrote in message news:5582219@discussion.autodesk.com...
I'm writing a program that can generate all Drawings for .iam file.
The code is:
oBaseView = oSheet.DrawingViews.AddBaseView((Inventor._Document)oDoc, oPnt,
1, Inventor.ViewOrientationTypeEnum.kCurrentViewOrientation ,
Inventor.DrawingViewStyleEnum.kHiddenLineRemovedDrawingViewStyle, "",
oCamera, oBaseViewOptions);
The problem is that it doesn't draw any Tangent Edges on the picture.

Does anybody know that I can set the option in Display Options by code?

Thanks
0 Likes
Message 3 of 6

Anonymous
Not applicable
Hi Sanjay,
Thanks for your help.
I tried your suggestions. Tangent Edges were not turned on after I set kIsoTopRightViewOrientation in my code. It was turned on when I made Drawings in Inventor and select "ISO Top Right" option, but I need it to be turned on with some code not selecting options by hand.

I don't have .DisplayTangentEdges var in my DrawingView object. I'm using Inventor11, what's your version?

Steven
0 Likes
Message 4 of 6

Anonymous
Not applicable
Do you have the latest Service Pack installed for R11?

Sanjay-

wrote in message news:5583451@discussion.autodesk.com...
Hi Sanjay,
Thanks for your help.
I tried your suggestions. Tangent Edges were not turned on after I set
kIsoTopRightViewOrientation in my code. It was turned on when I made
Drawings in Inventor and select "ISO Top Right" option, but I need it to be
turned on with some code not selecting options by hand.

I don't have .DisplayTangentEdges var in my DrawingView object. I'm using
Inventor11, what's your version?

Steven
0 Likes
Message 5 of 6

Anonymous
Not applicable
I installed "Autodesk Inventor 11 Service Pack 2" before. Do you mean that .DisplayTangentEdges is suported in Inventor11 ?
0 Likes
Message 6 of 6

Anonymous
Not applicable
Sorry, I was under the impression that this property was introduced in
Inventor 11. It is only available in Inventor 2008. Even the behavior of
tangent edges being turned on by default for iso-views is new to 2008. I'm
not aware of any workarounds for Inventor 11.

Sanjay-

wrote in message news:5583570@discussion.autodesk.com...
I installed "Autodesk Inventor 11 Service Pack 2" before. Do you mean that
.DisplayTangentEdges is suported in Inventor11 ?
0 Likes