PDA

View Full Version : 2012 Can I change plot style with lisp or script?



dolan.raynor
2013-07-17, 05:23 AM
Is there a way for me to change a layers plot style from one to another with
LISP or a script?
This is for named plot styles in STB's not CTB's.

I want to be able to change the plot style of layers in an xref from a variety of styles to normal. We do this to change which disciplines are emphasised within a drawing. We need to use .stb as this is a client requirement.
I would ultimately like this to be in a script for the systems we have in place here, but if it can only be done in lisp I can work with that to.

Thankyou to anyone that can help me.

Tom Beauford
2013-07-17, 11:14 AM
Creating a layer State for your use and creating one for your client as well may help. A lisp or script would need the list of styles or layers to change.

dolan.raynor
2013-07-18, 01:11 AM
I need the way I do it not to be rigid like a layer state would be. Thats why I am leaning towards a lisp or script, we currently mange our layer properties for .ctbs through a plot batcher and script. I am trying to add code to our current setup that will find all layers on an xref and change the polt style. This way the code would not have to be changed when layers are added to the xref. We are able to do this with other layer properties but are getting stuck on the plot style.

Opie
2013-07-18, 01:19 PM
If you are using a .CTB file to control your plotting, then the color is all you need to change. If, however, you are using a .STB file, then the PStyle option in the -LAYER command will allow you to change the plot style for XREF layers. All XREF layers will contain the pipe symbol "|" between the XREF name and the actual LAYER name.

-LAYER
PStyle
Normal
*|*