Commandobill Posted April 13, 2009 Posted April 13, 2009 Hello, I was wondering if there was a way to write a lisp to change the color of a layer just in a viewport. I know there are commands to freeze a layer of turn off a layer in a viewport but i havent found one to change a layer color. Thank you for any information you can give Quote
uddfl Posted April 13, 2009 Posted April 13, 2009 With the viewport set as current, type LAYER and the layer dialog box will come up with additional columns for viewport properties, including layer color, so you can change it there. I don't know if you can/how to do it from the command line though. Quote
Dipali Posted April 14, 2009 Posted April 14, 2009 check this thread http://www.cadtutor.net/forum/showthread.php?t=26783&highlight=layer+color Quote
Commandobill Posted April 14, 2009 Author Posted April 14, 2009 thank you but i was really looking to do it from the command line. Quote
uddfl Posted April 14, 2009 Posted April 14, 2009 thank you but i was really looking to do it from the command line.After checking AutoCAD Help and some googling I am fairly certain that you cannot do it, but if anyone has a solution please post it. Quote
Lee Mac Posted April 14, 2009 Posted April 14, 2009 Is this viewport colour operation post-'04 ? Quote
uddfl Posted April 14, 2009 Posted April 14, 2009 Is this viewport colour operation post-'04 ?Yes, it was introduced with v. 2008. Quote
Lee Mac Posted April 14, 2009 Posted April 14, 2009 Yes, it was introduced with v. 2008. Ahh, I see, thanks Quote
wizman Posted April 17, 2009 Posted April 17, 2009 Layer Viewport overrides and Viewport annotation scaling. - ObjectARX and AutoCAD .NET allow you to programmatically set these overrides - COM and AutoLISP do not support this (unable to automate using command function) from autocad.net_for_lisp_programmers_webcast, there was a sample on how this can be done on command line through lisp but calling .net functionality. look for autocad.net for lisp prorammers http://www.adskconsulting.com/adn/cs/api_course_sched.php Quote
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.