change thickness and colour of drawing view

change thickness and colour of drawing view

dibujocad
Enthusiast Enthusiast
583 Views
1 Reply
Message 1 of 2

change thickness and colour of drawing view

dibujocad
Enthusiast
Enthusiast

Hi everybody, I'm trying to automate through VBA the change of thickness of lines of drawing views. I don't want to change the layer for all inserted drawing views, only for some inserted in some drawing documents. I used to do it manually how it's shown in the attached picture. But it takes me a lot of time. I've read some posts but I'm not still sure which API objects I should call for that purpose. In the case, the solution is to change the layer of drawing views to another one, anyone could help me to know what's the default name for the layer of drawing views.

Any suggestion would be appreciated, thanks!

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

WCrihfield
Mentor
Mentor

There is not really just one layer for all geometry in a drawing view.  By default, there are many layers for the many different types of things within drawing views, and the multiple different ways they should be presented.  If you did attempt to put all drawing view geometry on one layer, then all geometry would be one line type, one thickness, one color, etc.  It technically might be possible to set-up that way, if you really needed it to be that way.  Go to the Annotate tab of your drawing document, then click the Edit Layers tool to see the list of existing layers.  You can mostly tell by their names what they are being used for, and Inventor just automatically assigns view geometry of those types to the appropriate layers in the background.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes