Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.
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!
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
(Not an Autodesk Employee)
Can't find what you're looking for? Ask the community or share your knowledge.