I would like to know if there is a lisp routine or VBA routine out there for editing the layer dialog and changing all instances of "Normal" plot style to "Full Saturation" or something else?
Printable View
I would like to know if there is a lisp routine or VBA routine out there for editing the layer dialog and changing all instances of "Normal" plot style to "Full Saturation" or something else?
There is no need for that. You can do it from the command line, e.g. -Layer.
No that won't work. I did know about that command and have used it before. I want to change 50 layers out of 100 layers. So I need to be able to walk through the list and programaticaly change only those that are "Normal" not the other ones.
Regretably I am not that good a programming. Is there anyone out there that has some code I can start with to help me out?
Regretably no code. I am an old lisp writter. I have not kept up with VBA. I know how to stick some VB into my lisp code but to write it from scratch I am out of my element. Sorry. I will look at what you wrote and see what I can do.
Thanks
I put a Layer Propeties Filter in by Layer Manager named Bad Plot Sylte set the Plot Style to Normal This will select all Layer with Plot Style = Normal then all you need to do is change the Plot Style for the Bad Plot Style to what you need.
see attachment
Ok I have tried my hand at some code. I now believe I may be in the wrong forum. If you think this should be moved to lisp forum that is fine.
Attached is my lisp routine as well as a simple sample drawing. The goal is to change the layer plotstyles from "Normal" to "Full Saturation"
I have a "get" subroutine and a "set" subroutine for Plt Style manipulation that if you try them from the command line on an individual specific layer name they work fine.
I then created a BNLoop subroutine.
My main program creates a list of layers and I am trying to loop through them with a foreasch command which is probably where I am lost
Any suggestions?