Changing the line thickness of a drawing

Changing the line thickness of a drawing

kv5053545
Advocate Advocate
281 Views
1 Reply
Message 1 of 2

Changing the line thickness of a drawing

kv5053545
Advocate
Advocate

I am working with automatic drawings in Autodesk inventor, but I would like to uncheck the option "By Layer" that is inside the properties of the assembly that is inside the view, is it possible to do it by code?

alejandrovillarreal6G988_0-1708716639539.png

0 Likes
282 Views
1 Reply
Reply (1)
Message 2 of 2

J-Camper
Advisor
Advisor

@kv5053545,

I'm not sure that box is accessible through the API, not all options are exposed.  You can change the DrawingCurve LineWeight without checking/un-checking that box:

 

Dim MyDrawingView As DrawingView = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingViewFilter, "Select a DrawingView")
If MyDrawingView Is Nothing Then Exit Sub
For Each dc As DrawingCurve In MyDrawingView.DrawingCurves
	dc.LineWeight = .2 'Default Value: dc.Segments.Item(1).Layer.LineWeight
Next

This is will change all the DrawingCurves of a user selected DrawingView.

 

Let me know if you have any questions

 

 

0 Likes