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?
|
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?
Ed Lowe
CAD Coordinator
Burgess & Niple
There is no need for that. You can do it from the command line, e.g. -Layer.
R. Robert Bell
Design Technology Manager
Stantec
Opinions expressed are mine alone and do not reflect the views of Stantec.
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.
Ed Lowe
CAD Coordinator
Burgess & Niple
R. Robert Bell
Design Technology Manager
Stantec
Opinions expressed are mine alone and do not reflect the views of Stantec.
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?
Ed Lowe
CAD Coordinator
Burgess & Niple
R. Robert Bell
Design Technology Manager
Stantec
Opinions expressed are mine alone and do not reflect the views of Stantec.
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
Ed Lowe
CAD Coordinator
Burgess & Niple
R. Robert Bell
Design Technology Manager
Stantec
Opinions expressed are mine alone and do not reflect the views of Stantec.
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?
Ed Lowe
CAD Coordinator
Burgess & Niple