Jump to content

Is it possible to change the color of a linetype?


Proctor

Recommended Posts

Hello: I'm working with Autocad 09 .net and wanted to know if there's a way to programatically change the color of a linetype? currently, i change the color of the object that is used in conjunction w/ the linetype e.g. spline (see pic). I started thinking about it, and wondered if the color could be changed for just the line type.

 

Thanks,

Proctor

ChangeColorOfLineType.jpg

Link to comment
Share on other sites

QSELECT objects with the linetype and then use the PROPERTIES to change the colour of the selected objects.

 

Just one way of many.

Link to comment
Share on other sites

nukecad: thanks for your response. But, isn't that essentially just changing the entity (e.g the spline like in my pic) rather then changing the color of the actual line type?

 

Thanks,

Proctor

Link to comment
Share on other sites

Sorry I misunderstood what you were looking for.

 

We always set colour 'bylayer' here.

This again is not quite what you are looking for but could be a workround - make a layer with the same name as the linetype and put all of that linetype on the layer??

 

I don't think that you can set colour bylinetype other than changing the individual objects; There again I am restricted by using LT 2002 most of the time; Would be interesting to hear if anyone does know though.

Link to comment
Share on other sites

Yea....I did have the linetype set on a layer at first but ran into an issue the users were having whereby they needed to have the same line type on a drawing use separate colors. I added code to change out just the color of the object e.g. the spline; however, then if they go to draw more using the line type, it reflects the color that the layer is drawn in, so I'm looking for alternative solutions.

 

Thanks again for your time and help. I'll keep this ticket open to see if anyone else has input.

 

Proctor

Link to comment
Share on other sites

Lee Mac: in other words you are saying a line type has no color property - correct?

 

thanks,

proctor

 

I believe that is the case.

 

Correct.....

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