PDA

View Full Version : Priority line breaks



autoplant_user
09-18-2006, 10:49 AM
I modified the following layers to meet my company's needs:

(list "I-PROC-MAIP" 9 (At_GetLineType "CONTINUOUS") "_.PLINE" 0.05) ;10 Major process lines
(list "I-PROC-MAIS" 2 (At_GetLineType "CONTINUOUS") "_.LINE" 0.03) ;11 Minor process lines
(list "I-PROC-MAPE" 13 (At_GetLineType "CONTINUOUS") "_.PLINE" nil) ;12 Existing major lines
(list "I-PROC-MASE" 13 (At_GetLineType "CONTINUOUS") "_.LINE" nil) ;13 Existing minor lines
(list "I-PROC-FTR1" 1 (At_GetLineType "PHANTOM" ) "_.PLINE" 0.05) ;14 Future major lines

How do I change the code so the major process lines do not get broken by minor/existing/future lines when I perform the auto line break command? Here is what I did so far, but it is not working properly.

(setq lbrk_prior '("I-PROC-MAIP"
"I-PROC-MAIS"
"I-CTRL-IDE2"
"inst-l1"
"I-INST-ELEC"
"inst-l3"
"I-PROC-EQP4"
"I-PROC-MAPE"
"I-PROC-MASE"
"I-PROC-FTR1"
)
lbrk_ang 0.0 ;pi/2 for vertical
lbrk_siz 0.5 ;fraction of overall scale factor
)

---END

PlantWorker
09-18-2006, 11:18 AM
what exactly dioesn't work ? Did you try this in a new or existing drawing ? If you change the layer-list in pid-sup.lsp, you must take some actions in an existing drawing, otherwize the layers will not be recognized (although they are created ...)

autoplant_user
09-18-2006, 11:30 AM
After modifying the code, I created a new file...

If I have a major process line from left to right and a minor process line intersecting it (up and down), the auto line break command breaks the minor line. But if the inverse of this example is performed, the major line is broken.
Any ideas?

dave
09-18-2006, 11:38 AM
why not just stop intersecting lines...haha

here is my pid-sup lsp, see if it works for you:

(setq lbrk_prior '("major-nw"
"minor-nw"
"major"
"minor"
"major-ex"
"minor-ex"
"ctw"
"stm"
"tracing"
"inst"
"inst-l1"
"inst-l2"
"inst-l3"
"equip"
)
lbrk_ang 0.0 ;pi/2 for vertical
lbrk_siz 0.5 ;fraction of overall scale factor
)

HybridAWD
09-18-2006, 11:56 AM
Dave's should work, it's how I have mine setup to a T.... or is it tee... or tea.... you get what im saying.

PlantWorker
09-18-2006, 12:06 PM
so the command always breaks the vertical line ?

dave
09-18-2006, 12:06 PM
I think that's because it's the default setup. autoplant_user, try going through changing line by line and see where it's breaking. Just stating the obvious :):)

PlantWorker
09-18-2006, 12:49 PM
change your lbrk_prior list, so that all text is in small characters, like
(setq lbrk_prior
'("i-proc-maip"
"i-proc-mais"
.....

autoplant_user
09-18-2006, 01:04 PM
When I go back to the out of the box settings, as Dave shows above, all works fine. All that I am changing is the layer name...where am I going wrong? Is there somewhere else that the layers need to change accordingly? or is this not the right approach?

autoplant_user
09-18-2006, 01:38 PM
I just tried out PlantWorker's last suggestion...success!
Thanks.