PDA

View Full Version : P&ID Layer Defination



qmlm1981
12-06-2006, 10:30 PM
Hello everyone!Thank you in advance if anyone could help me.I want to define the annotation text for process line onto a individual layer.I don't wanna print the annotation texts , however I need to annotate the lines on the drawing.How to do that?

Data Wrangler
12-07-2006, 04:51 AM
We do that manually at this time. The first thing we do is move the annotation text to a 'hide' layer so we can deal with it on a bylayer basis. Then we either turn that layer off when we plot, or go into the layer settings and make that a non printing layer.

I also have a routine that turns some layers off when I save the drawings to our document control system.

I haven't gone into the settings too much, but I bet putting the annotation text on the hide layer could be done automatically.

Derek

PeterJ
12-07-2006, 08:33 AM
go to pid-sup.lsp and search for c:mark

find following lines :
((or (not ityp) (= ityp "")) ;<-Middle Justified
(mktxt_m p2 ang "." nil nil (* txth sfa) nil)
)
and change into ("anno" is an example of the layer you need, it MUST exist) :

((or (not ityp) (= ityp "")) ;<-Middle Justified
(mktxt_m p2 ang "." "anno" nil (* txth sfa) nil)
)
(or modify the correct line if you use another text justification)
AND find following line

(settxt (entlast) nil)
and disable it by prefixing it with ;
;; (settxt (entlast) nil)

restart your drawing or drag/drop the lisp into an open drawing to load it.

ps : in order to be sure the layer exists, add it to the default layer list in pid-sup

qmlm1981
12-07-2006, 05:29 PM
Thank you! Peter.
I a further problem,Could you please help me?
How to define different annotation style onto different layer?For instance,I have three annotation styles :A,B and C.I want to define style A onto "anno" layer ,and the others onto another layer.How to do that?Thanks !