Jump to content

viewport layer color


Commandobill

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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

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