Jump to content

Create layers then assign color and linetype


hemsley

Recommended Posts

 

Working through the Autodesk .NET Developers Guide Samples 2019. (very new to all this).

They have a sample code: Assign Colour to a Layer (.NET) where three layers are created and each layer is assigned a different colour.

How would I expand that code so that in a addition to the assignment of colours I could load and then assign three different line-types from acad.lin.

Nested transaction? Or create an array for line-types? 

Any help would be greatly appreciated.

 

 

 

 

Link to comment
Share on other sites

  • 2 weeks later...

Done in lisp or VBA you need to check if a linetype exists if not load it, then you can assign a layer a particular line type, should be a similar method to colour.

Link to comment
Share on other sites

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...