Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

change thickness and colour of drawing view

1 REPLY 1
Reply
Message 1 of 2
dibujocad
254 Views, 1 Reply

change thickness and colour of drawing view

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!

Labels (4)
1 REPLY 1
Message 2 of 2
WCrihfield
in reply to: dibujocad

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)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report