PDA

View Full Version : What is the current plot transformation?


Harry
10-20-2005, 05:02 AM
Is there a way to get the current plot transformation in Drafting?

Best regards,
Harry

John Scheffel
10-20-2005, 09:59 AM
You can get some current Plot settings using the command INQ_ENV 4. I'm not sure if it will provide everything you want, but it is a start. See Help, Program Ref. Guide or the attached GIF for more details.

Mehmet Akyar
10-21-2005, 02:28 AM
Can you tell us, which version and which UI of Drafting you are using ?

Harry
10-27-2005, 07:15 AM
thanks for your reaction. I knew that I can use some inq code to get info of the plot transformation but not what I wanted...

DEFINE Plot_black_and_white
LET Nt_plot_option NT_PLOT_OPTION_B_AND_W
true_color_plotting off
PLOT_TRANSFORMATION ALL { all colors } .0 1. .0 1. .0 1. SAME 1
{ Color mapping for a RGB color cube devided into 8 color ranges }
PLOT_TRANSFORMATION ALL { black range } .0 .5 .0 .5 .0 .5 SAME 1
PLOT_TRANSFORMATION ALL { red range } .5 1. .0 .5 .0 .5 SAME 1
PLOT_TRANSFORMATION ALL { red range } .5 1. .0 .5 .0 .5 {0 width lines} 0 0 {same line type} SAME penwidth .4 {pen number} 1
PLOT_TRANSFORMATION ALL { green range } .0 .5 .5 1. .0 .5 SAME 1
PLOT_TRANSFORMATION ALL { green range } .0 .5 .5 1. .0 .5 {0 width lines} 0 0 {same line type} SAME penwidth .3 {pen number} 1
PLOT_TRANSFORMATION ALL { yellow range } .5 1. .5 1. .0 .5 SAME 1
PLOT_TRANSFORMATION ALL { yellow range } .5 1. .5 1. .0 .5 {0 width lines} 0 0 {same line type} SAME penwidth .1 {pen number} 1
PLOT_TRANSFORMATION ALL { blue range } .0 .5 .0 .5 .5 1. SAME 1
PLOT_TRANSFORMATION ALL { blue range } .0 .5 .0 .5 .5 1. {0 width lines} 0 0 {same line type} SAME penwidth .3 {pen number} 1
PLOT_TRANSFORMATION ALL { magenta range } .5 1. .0 .5 .5 1. SAME 1
PLOT_TRANSFORMATION ALL { magenta range } .5 1. .0 .5 .5 1. {0 width lines} 0 0 {same line type} SAME penwidth .3 {pen number} 1
PLOT_TRANSFORMATION ALL { cyan range } .0 .5 .5 1. .5 1. SAME 1
PLOT_TRANSFORMATION ALL { cyan range } .0 .5 .5 1. .5 1. {0 width lines} 0 0 {same line type} SAME penwidth .3 {pen number} 1
PLOT_TRANSFORMATION ALL { white range } .5 1. .5 1. .5 1. SAME 0
{ Special mappings for BLACK, WHITE etc. }
PLOT_TRANSFORMATION ALL { black color } BLACK SAME 0
PLOT_TRANSFORMATION ALL { white color } WHITE SAME 1
PLOT_TRANSFORMATION ALL { white color } .5 1. .5 1. .5 1. {0 width lines} 0 0 {same line type} SAME penwidth .3 {pen number} 1
PLOT_TRANSFORMATION PHANTOM CYAN SAME 0
LET Plot_pix_color_option 0
END_DEFINE
Plot_black_and_white


Here you see the standard Plot_black_and_white settings. I like to be able to set the width with a factor. So I can scale down (or up) the thickness of the lines. A0 format printed on A4 must be in thin lines. I do not like the idea to copy these list.

Best regards,
Harry

John Scheffel
10-31-2005, 08:31 AM
I haven't tried it, but you should be able to replace the standard Plot_black_and_white macro with your own macro of the same name, and replace the penwidth numbers with variables which you set in some other macro code.

....SAME penwidth My_width_1 {pen number} 1

Then set My_width_1 to a mm size number based on the selected paper size.