Jump to content

Create layers then assign color and linetype

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.





Share this post

Link to post
Share on other sites

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now