Jump to content

Create layers and change style in VBA


Recommended Posts

Posted

Hello everybody.

I have created an algorithm with VBA that draws a automobile and inserts passengers, wheels etc etc

My problem is that i need to create layers for example "Transparent Glass" for the windshields, another layer "Human skin" with color RGB(249,202,165) etc but i have figured out only how to create the simplest of layers such as acBlue.

Moreover i need to set the view to "No edges" and "Realistic Face Style" but how?

Can anybody guide me? Is there a maual or something that explains these stuff?

 

For now i create layers like this:

Sub CreateLayers()
   
   LayerName = "Metalic Red"
   Set MetalLayer = ThisDrawing.Layers.Add(LayerName)
   MetalLayer.color = acBlue
   LayerName = "Glass Cyan"
   Set GlassLayer = ThisDrawing.Layers.Add(LayerName)
   GlassLayer.color = acCyan
End Sub

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...