Inventor 2017 - default drawing view settings

Inventor 2017 - default drawing view settings

s_liberatore
Explorer Explorer
522 Views
2 Replies
Message 1 of 3

Inventor 2017 - default drawing view settings

s_liberatore
Explorer
Explorer

Hello,

I would set the options 

"Threads" and "Tangent Edges" In the Display Option Tab

and

"All bodies" in the Model State tab 

in Inventor Drawing View dialox box when I create Inventor View.

 

I read the discussion at link

http://forums.autodesk.com/t5/inventor-general-discussion/inventor-2016-default-drawing-view-setting...

but I can't to set the options 

"Threads" and "Tangent Edges" ON by default.

Can you tell me how have to do?

Thank you.

Regards,

0 Likes
523 Views
2 Replies
Replies (2)
Message 2 of 3

k14348
Advocate
Advocate
Public Sub DisplayOptions()
Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument

Dim oSheet As Sheet
Set oSheet = oDoc.ActiveSheet

Dim oDrawingView As DrawingView
Set oDrawingView = oSheet.DrawingViews.Item(1)

Dim oDisplayTangentEdges As Boolean
oDrawingView.DisplayTangentEdges = True

Dim oDisplayThreadFeatures As Boolean
oDrawingView.DisplayThreadFeatures = True


End Sub

If you found this code useful please give KUDOS

0 Likes
Message 3 of 3

k14348
Advocate
Advocate
Public Sub DisplayOptions()
Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument

Dim oSheet As Sheet
Set oSheet = oDoc.ActiveSheet

Dim oDrawingView As DrawingView
For Each oDrawingView In oSheet.DrawingViews
If oDrawingView.DisplayTangentEdges = False Then

Dim oDisplayTangentEdges As Boolean
oDrawingView.DisplayTangentEdges = True
End If
If oDrawingView.DisplayThreadFeatures = False Then

Dim oDisplayThreadFeatures As Boolean
oDrawingView.DisplayThreadFeatures = True
End If
Next

End Sub

Use this code for All view in a Active sheet 

0 Likes