Plot Style Issues

Plot Style Issues

Anonymous
Not applicable
731 Views
3 Replies
Message 1 of 4

Plot Style Issues

Anonymous
Not applicable

Hello Everyone,

 

I have to print out a bunch of drawings and they have to all be in monochrome so I am trying to make a script to help me with it. The only problem i am having now is that Some of the drawings are .stb styles and they cant print in monochrome if they are "True Colors", which they are and there are too many drawings for me to go in a change each layer to non-true colors. Is there some way to make the script that it can determine if it is ctb and if its not use CONVERTPSTYLES to change it to ctb style. Sorta like an If statement.

 

zoom
e
expert
2
filedia
0
-psetupin
L:\Jacub\CadE
CadE
-plot
n


UhrichPARI05
n
y
y
filedia
1
qsave

 

That is the script i'm working on currently. I'm sorry if it's not the best this is the first time I've done anything with scripts.

Any help is greatly appreciated.

0 Likes
732 Views
3 Replies
Replies (3)
Message 2 of 4

pendean
Community Legend
Community Legend
What's "a bunch" in real numbers?
How positive are you that ZOOM>EXTENTS is always the correct "what to plot" option for each and every file?

Can we assume you still plot from modelspace and never use layouts/viewports/views for plotting purposes?
0 Likes
Message 3 of 4

cadffm
Consultant
Consultant

If the only goal is to plot the drawing, the perfect way is to have the right plotstyletable,

create a copy and set all plotstyle colors to black.

 

A Short Lisp statement with IF function for checking PSTYLEMODE variable

http://help.autodesk.com/view/ACD/2021/ENU/?guid=GUID-2D0D1C41-60E6-4FD0-AB63-28475EE82633

(if (zerop(getvar "PSTYLEMODE")) "MYSTBPLOTSTYLETABLE.stb" "MYCTBPLOTSTYLETABLE.ctb")

 

>>"Some of the drawings are .stb styles and they cant print in monochrome if they are "True Colors"

Thats' wrong, STB are the only way to plot a (true)color in another color by plotstyles,

just the stupid CTB are limited to the 255 ACI colors as plotstyles, STBs not.

You can not print an TrueColor Object in Black by using a CTB.

So i am not sure to understand. You know that? So please explain it one more time for me

how you think you can "fix" the problem.

 

My Q: Is there only one Plotstyle in use (the NORMAL), or do you have the right STB plotstyletable?

 

PS: A BLACK/WHITE printer (or a driver, set up as black/white only) can print all black.

 

>>" Is there some way to make the script that it can determine if it is ctb and if its not use CONVERTPSTYLES to change it to ctb style. Sorta like an If statement."

 

Use my IF statement above, change the THEN part, delete the ELSE part, add it above your PLOT statement.

(if (zerop(getvar "PSTYLEMODE")) (command "_CONVERTPSTYLES"))

 

And then? You don't have a ctb Plotstyle "255,200,200" to set them black.

If all object colors are ByLayer, you can change the color of Layers easily for modelspace,

but also in stb drawings.

-LAYER

_co

7

*

 

 

Sebastian

0 Likes
Message 4 of 4

Anonymous
Not applicable

"A Bunch" would be over 500 in total

Yes It always needs to be ZOOM Extents 

and Yes

0 Likes