PDA

View Full Version : No flow arrows on instrument lines



dave
03-29-2006, 11:25 AM
1. Path to and open ..\Documents and Settings\All Users\Application Data\Bentley\Plant 2004\P&ID\pid-sup.lsp file using notepad.
2. Search for INSTARW
3. Modify the section to read as follows by adding the NIL value:

(defun initvar (imp)
;; The variable "instarw" controls whether an arrow with symbol
;; name inst-ar will be inserted at the destination end of an instrument
;; line such as pneumatic or electric to indicate source and destination. If
;; you do not want such arrows comment out the appropriate line with a ;
;; The number indicates the scale factor of the symbol.
;;
;; The variable "failsym" controls whether an control valve failure mode
;; symbol is used on the operator stem to indicate failure mode of the valve
(if imp
(progn
(setq instarw nil) ;Instrument arrow size
; (setq failsym T) ;Failure symbol on CV stem
)
(progn
(setq instarw nil) ;Instrument arrow size
(setq failsym T) ;Failure symbol on CV stem
)
)
)
4. Save and Exit

BearLeader67
03-03-2008, 01:28 PM
I tried this in Plant XM and it didn't seem to work.

Data Wrangler
03-04-2008, 05:54 AM
Bear-

I just remm'ed out the lines I didn't want. Try this:



(if imp
(progn
; (setq instarw 0.2) ;Instrument arrow size ***11/28/06 Commented out
; (setq failsym T) ;Failure symbol on CV stem
)
(progn
; (setq instarw 4.0) ;Instrument arrow size ***11/28/06 Commented out
(setq failsym T) ;Failure symbol on CV stem
)
)


If that doesn't work then the only thing I can think of is to make sure you are editing the active pid-sup file, not another that is not being read (been there done that).

PeterJ
07-23-2009, 12:39 PM
If you want to be certain that you edit the correct lisp file, just add a command like
(print "-----------> loading pid-sup.lsp from F:\pidcustom ")
to the start or end of the file.
That way you can check the AutoCAD text window.
and a tip :
When editing a lisp file, you can always reload it in AutoCAD by drag-dropping it from explorer int the graph window.