Proctor Posted March 3, 2010 Share Posted March 3, 2010 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 Quote Link to comment Share on other sites More sharing options...
nukecad Posted March 3, 2010 Share Posted March 3, 2010 QSELECT objects with the linetype and then use the PROPERTIES to change the colour of the selected objects. Just one way of many. Quote Link to comment Share on other sites More sharing options...
Proctor Posted March 3, 2010 Author Share Posted March 3, 2010 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 Quote Link to comment Share on other sites More sharing options...
nukecad Posted March 3, 2010 Share Posted March 3, 2010 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. Quote Link to comment Share on other sites More sharing options...
Proctor Posted March 3, 2010 Author Share Posted March 3, 2010 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 Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted March 3, 2010 Share Posted March 3, 2010 Proctor, color and linetype are two different things. Quote Link to comment Share on other sites More sharing options...
Proctor Posted March 3, 2010 Author Share Posted March 3, 2010 Lee Mac: in other words you are saying a line type has no color property - correct? thanks, proctor Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted March 3, 2010 Share Posted March 3, 2010 Lee Mac: in other words you are saying a line type has no color property - correct? thanks, proctor I believe that is the case. Quote Link to comment Share on other sites More sharing options...
alanjt Posted March 3, 2010 Share Posted March 3, 2010 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..... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.