Jump to content
hemsley

Create layers then assign color and linetype

Recommended Posts

hemsley
 

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.

 

 

 

 

Share this post


Link to post
Share on other sites
BIGAL

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.

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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