Aveva Commands
Aveva Commands
Aveva Commands
Q ANGLE
ENHANCE CE COL RED
Setting
o REPRE DARC 1 Set arc tolerance to 1 degree
o REPRE DARC DEF Set arc tolerance by default (10°)
o REPRE HOLES ON Set hole on
o REPRE HOLES OFF Set hole off
o REPRE PNODE COL YELLOW Set pnod colour Yellow
o REPRE PNODE ON Set pnod on
o REPRES PNODE SIZE 6 Set pnod size 6
o REPRES PROF ON CL OFF Set profile representation SOLID and Cline off
o REPRES SNODE ON Set snod on / off
o REFRESH Refresh the graphic window
o PREC 4 DP Give Precision decimal to 4 digits
o Q REPRES Give the representation status
Color
o Q COL ACTive Give the active current colour
o Q COL AIDS Give the actual colour of aids
o Q COL CE Give the active colour of CE
o Q COL VIS Give the visible colour
o Q COL 4 (Etc…) Give the Attributed colour (YELLOW)
o COL ACT BLUE Change active colour to BLUE
o COL CE VIOLET Change CE colour to VIOLET
o COL 39 YELLOW Change colour 39 to YELLOW
o ENHANCE CE TRANSL 0 Display CE SOLID
o ENHANCE CE TRANSL 60 Display CE TO 60% TRANSLUCENCY
o ENHANCE CE COL YELLOW Display CE YELLOW
o Q DRAW List the Drawlist display in graphic window.
(Take care! could be long if large drawlist)
(In general CE mean current element).
ADD to Drawlist
o ADD ALL WITHIN VOL CE Add all elements include and crossing the CE
volume box
o ADD ALL WITHIN VOL CE 100 Add all disciplines that overlap CE with an
additional clearance volume +1OOmm
o ADD ALL SCTN WITHIN VOL CE Add only the SCTN include and crossing the CE
volume
o ADD ALL STRU WITH PURP EQ 'PS' Add only SCTN with their Purpose EQ to ’
PS’
o ADD ALL WITHIN VOL CE 500 COL 4 Add ALL within vol CE + 500 colour yellow
o ADD CE Can be followed by AUTO CE to zoom adjusted around CE
o ADD CREF Add branch connected to cref
o ADD CE COL 39 Add CE colour 39
o ADD SITE ADD site (be careful this can take time to load)
o ADD CE Colour Blue TRANSL 75 Add CE colour blue with 75% of transparency
o ADD HREF TREF ……CREF Add connected branch to href tref or also cref with
nozzle or TEE
REMOVE
o REM CE Remove Current element
o REM ALL Remove all element
o REM PIPE Remove pipe only
o REM EQUI Remove equi only
o REM ALL WITHIN VOL CE 100 Rem all include in CE volume box
o ETC……….
MARK
o MARK CE Mark CE name
o UNMARK CE or ALL Unmark CE name can be used with ALL
o MARk CE Mark CE name
o MARk With 'TEMPORARY' CE Tag CE with temporary name ‘TEMPORARY’
o MARk With (NAME OF CATREF) CE Tag CE with the name of Catref
o MARK With (GTYPE) CE
o MARK With 'TITI' CE
o MARK With (STRING(DESP1) + '_' + NAME OF CATREF) CE
o MARK With (STRING(DESP1)) CE
o MARK With (STRING(LOHE)) CE Tag PANEL CE with its thickness
AXE
o AXES CE Add an Aid axe on current element
o AXE AT ID@ Add an Aid axe on element to be digit
o AXE OFF Suppress the display
AIDS
o AID TEXT (NAME OF CATREF) AT AT P1
o
o AID TEXT (STRing(DESP1) + '_' + NAME OF CATREF) AT AT P1
o
o AID TEXT (STRing(MATREF) + '_' + STRing (LOHE) + '_' + NAME OF SPREF) AT AT P1
o
o AID TEXT (STRing(MATREF) + '_' + STRing (TCTL) + '_' + NAME OF CATREF) AT AT PPLI TOS
o
o AID TEXT ('MAT:' + STRing (MATREF)) AT AT PPLI LTOS AID TEXT ( 'LONG:' + STRing (TCTL))
AT
AT PPLI NA AID TEXT ('TYPE:' +NAME OF CATREF) AT AT
PPLI RBOS
o AID TEXT ('THK:' + STRing (LOHE)) AT AT P1 AID TEXT ( 'TYPE:' + STRing (SPREF)) AT AT P2
AID
TEXT ('MAT:' + STRing (MATREF)) AT AT P3
o AID TEXT ('TYPE:' + SUBSTRING(NAME OF CATREF,14)) AT AT P2 AID TEXT ('ELEVATION:' +
STRing (P100 UP IN WORLD)) AT AT P3
These commands has been defined with two (AT AT ) values. Don’t ask me why! ?? This is only I have
founded to get the right result.
o
o AID ARROW AT AT P1 OF CE DIR OPPO PPOINT1 HEI1000
o
o AID ARROW AT AT P100 OF CE DIR AXES PPOINT100 HEI1000
o AID CLEAR ALL To suppress all aid display.
ALPHA REQUEST CLEAR Clear the command line window and its display.
MODIF on DESPARAMS
o DESP n2 500 n6 300 This change the design parameters number 2 and
number 6 with its new value
Move Objects
o MOVE N45E DIST 1500
o MOVE S DIST 1245
o MOVE U THROugh P2 OF PREV BOX
o MOVE ALONG P1 DIST 547
o MOVE N45W TOWARDS ID@ DIST 500
o MOVE N45W TOWARDS IDP@ DIST 500
o MOVE $_DIR WRT WORLD PLANE $_PLAN CLEARANCE $_DIST
$_RELATIVE $_CD.NNAME_NAME
o MOVE ALONG $!SCTNDIR1 PLANE U THR U $_ELEVATION
o MOVE P2 North DIST 500 FROM id@
o MOVE P2 North CLERANCE 100 THRough IDP@ MOVe E WRT CE TO ID@
Move CE wrt its own axe’s East to an
element chosen.
o MOVE U TO ID@(PDMS) Move UP TO A Selected ELEMENT
o MOVE W TO IDPL@(PDMS) Move WEST TO A Selected PLINE
o BY D 1OO Move CE DOWN 100 mm
o BY E 100 Move CE EAST 100 mm
o BY E 2IN WRT CE Move CE E 2"(INCHES) WRT CE
(Determinate... correct CE axis first )
o BY E3.lDIN Move CE E3.1/2"(INCHES)
o BY N lOO Move CE NORTH 100 mm
o BY U lOO Move CE UP 100 mm
o BY X lOO Move CE X (EAST) 100 mm
o BY X lOO WRT/* Move CE X @AS") 100 mm wrt world
o AT IDP@ Move CE to selected PPOINT
o AT IDPL@ Move CE to selected PLINE
It’s possible to define a common variable for any specific usage.
( Var !sctndir deriv ori of id@ ou var !plan cons plan u wrt /* thr idp@ )
(Query with Q var !sctndir …..)
Query PIPING.
o Q BORE Give the pipe bore
o Q POD1 Give the Outside diameter 1
o Q CLLE Give the branch lenght
o Q HPOS Give the CE pipe HEAD coord
o Q HT Give the CE hanger TAIL coord
o Q ISPEC Give the CE (PIPE) insulation
o Q PA Give the CE ARRIVE coordinates with
Respect World
o Q PA TOP WRT/* Give the CE ARRIVE coord at T0P of pipe
o Q PA BOP WRT/* Give the CE arrive coord at BOP of pipe
o Q PH BORE Give the CE pipe head bore
o Q PH OD Give the CE pipe head external diameter
o Q PI WRT/* Give the CE (PIPE SUPPT) location
o Q PL WRT/* Give the CE LEAVE coordinates
o Q PT OD Give the Pipe tail Outside Diameter
o Q TPOS Give the pipe tail coordinates
o Q CREF Give the connection reference
o Q PT Give the pipe tail attributes
o Q ITLE Give the length of the implied tube
o CONN TO PREV Connect the CE to previous element
o CONN TO NEXT Connect the CE to next element
o FCONN TO PREV Force connection with incompatibles COCO
o Q MTOT Give the MTO Status for the tubing
o Q MTOC Give the MTO status for component
o Q TULE Give the Branch tube length
o Q MTLE Give Length of material tube
o Q MTLL Give CL. Length of material tube
o Q NCOF Give the CE net COG
o Q NSRF Give the CE net surface
o Q NVOL Give the CE net volume
o Q NWEI Give the net weight
o Q SPRE Give the CE specification reference
o Q GCOF Give the CE gross Centre OF Gravity
o Q GWEI Give the CE gross weight
o Q MASS Give the centre of gravity and surface and
volume
o Q VOL CE Give the Volume box in coordinate ENU
o Q WVOL Give the Volume box in coordinate ENU
STRUCTURE
o Q BANG Give the beta angle of the SCTN
o Q DRNE Give the end cut plane direction
o Q JUSL Give the justification line
o Q DTYPE Give the FRMW style type (ie STLS)
o Q JLnV Give the CE JOINT LINE
o Q DRNS Give the start cut plane direction
o EXTEND TO ID@ Extend the sctn end to a selected item
o EXTEND TO IDP@ Extend the sctn end to a selected Ppoint
o EXTEND TO IDPL@ Extend the sctn end to a selected Pline
o
o NEW PANEL COPY PREV MOV TOWard ID@ DIST 100 COPY THE
PANEL FROM ITS POSITION TOWARD ELEMT
DISTANCE 100
o Q IDPL@ give the Pline information using cursor
o CALLSTL GSCTNTAG CE mark CE sctn START &END
o DRNS PERP Cut the SCTN end AT 9ODEG to section
o Q CUTLE Give the CE CUT LENGTH
o Q HEI Give the CE (PLOO LVL) PLT THK
o Q FRAD Give the PLOO/PAVE RADIUS ie 100mm OR
the NXTR/VERT radius ie 1OOmm
o Q SJUS Give the PLOO justification ie UTOP
o Q NCOF Give the CE net COG
o Q NSRF Give the CE net surface
o Q NVOL Give the CE net volume
o Q NWEI Give the CE NET weight
o Q PLNA Give the CE PLINE NAMES
o Q SPRE Give the CE specification reference
o Q GRADE Give the CE MATERIAL GRADE
o Q GTYP Give the GENERIC TYPE ie OD,HP,TG
o Q GCOF Give the CE gross Centre OF Gravity
o Q GWEI Give the CE gross weight
o Q MATREF Give the CE MATERIAL REP
o Q DER LEN Give the CE exact length
o Q TCTL OR (Q CUTL) Give the TRUE cut length
EQUIPMENT
o Q BANG Give the beta angle of the SCTN
o Q DRNE Give the end cut plane direction
o Q JUSL Give the justification line
o Q DTYPE Give the FRMW style type (ie STLS)
o Q JLnV Give the CE JOINT LINE
o Q DRNS Give the start cut plane direction
o EXTEND TO ID@ Extend the sctn end to a selected item
o EXTEND TO IDP@ Extend the sctn end to a selected Ppoint
o EXTEND TO IDPL@ Extend the sctn end to a selected Pline
o
o NEW PANEL COPY PREV MOV TOWard ID@ DIST 100 COPY THE
PANEL FROM ITS POSITION TOWARD ELEMT DISTANCE 100
o Q IDPL@ give the Pline information using cursor
o CALLSTL GSCTNTAG CE mark CE sctn START &END
o DRNS PERP Cut the SCTN end AT 9ODEG to section
o Q CUTLE Give the CE CUT LENGTH
o Q HEI Give the CE (PLOO LVL) PLT THK
o Q FRAD Give the PLOO/PAVE RADIUS ie 100mm OR the NXTR/VERT radius ie
1OOmm
o Q SJUS Give the PLOO justification ie UTOP
o Q NCOF Give the CE net COG
o Q NSRF Give the CE net surface
o Q NVOL Give the CE net volume
o Q NWEI Give the CE NET weight
o Q PLNA Give the CE PLINE NAMES
o Q SPRE Give the CE specification reference
o Q GRADE Give the CE MATERIAL GRADE
o Q GTYP Give the GENERIC TYPE ie OD,HP,TG
o Q GCOF Give the CE gross Centre OF Gravity
o Q GWEI Give the CE gross weight
o Q MATREF Give the CE MATERIAL REP
o Q DER LEN Give the CE exact length
o Q TCTL OR (Q CUTL) Give the TRUE cut length
The first Query command you should know is Q ATT to query all attributes of a
component.
o Q ATT Give the whole attributes of a component
o Q DISPLAY Give the tolerance and repre levels
o Q DNST Give the density
o Q East Give the CE East coordinates
o Q ELEM Give the CE element name
o Q IDP @ WRT/* Give the CE P POINT CO-ORDINATES
o Q ITLE Give the LENGTH of implied tube
o Q LASMOD Give the lastest date of modification
o Q LEV Give the CE level
o Q LIST Give the list of possible type in that hierarchy
o Q LOCK Give the lock status (true or false)
o Q MCOUNT Give the number of members
o Q MCOUNT SCTN Give the numbers of members type SCTN
o Q MDB Give the project MDB
o Q MEM Give the CE members
o Q MIDP Give the CE MIDPOINT coordinates
o Q NAM Give the CE name
o Q OBS Give the CE obstruction level ( 0 1 2 )
o Q OLIST Give the possible types of owner for CE
o Q OWN Give the CE owner
o Q PARA Give the CE parameters ie SERIAL SIZES
o Q POS Give the CE coordinates (START)
o Q PRLS Give the DESParam (PROPerties) LIST
o Q PPLS Give the Ppoint list
o Q TYPE Give the CE type ie. SCTN, PANE
o Q HARDTYP Give the hard type coding for CE
o Q SOFTTYP Give the softype of the CE
o Q USER Give the name of the current user
o Q USERMOD Give the last user modify
o Q ZDIST Give the fitting pos along sctn
o
o $R6 Give the macro listing for the current macro
o $R Exit the previous command $R6
o $HR History of possible commands
DRAFT
SORT DIM Sort the dimensions in order to use
NEW GLAB COPY PREV DDNAME ID@ New glab copy previous glab and choice
the
new design element.
NEW GLAB COPY ID@ DDNAME ID@
NEW SLAB COPY PREV DDNAME ID@
NEW SLAB COPY ID@ DDNAME ID@
NEW LDIM COPY ID LDIM @
NEW DPPT DDNAME ID@
Atext.
o Atext '#OWNER(C13:13)'
o Atext ' - -PLAN VIEW AT EL.#POSU+ T.O.S.'
VIEW IN PLAN WITHOUT REFERENCE OF PLAN AND WITH INTELLIGENT ELEVATION
(ONE SECTION)
o Atext ' - -PLAN VIEW AT EL.#P3POSU+ T.O.P.'
VIEW IN PLAN WITHOUT REFERENCE OF PLAN AND WITH INTELLIGENT ELEVATION
(ON THE PAIN OF A PANEL)
o Atext ' - -ELEVATION VIEW ROW #OWNER(C13:13)'
ELEVATION VIEW WITHOUT REFERENCE OF PLAN AND WITH INTELLIGENT FILE o NEW TEXP
COPY PREV BY Y10 COPY TEXT CE Y 10
o Atext ' -071-#pose(c3:8) EAST ELEVATION - #FRMW(C2:)'
Pltext.
o Pltxt 'EL. #POSu+ T.O.S.'
INDICATION DE L'ELEVATION SUR LIGNE DE RAPPEL D'UNE COTE
Pltxt 'T.O.G. EL. #P3POSu+#/%U[#P3POSu+ ]%U'
Dim text with 2 mesures (inches and m)
Pltxt 'T.O.S. EL. #POSu+#/%U[#POSu+ ]%U'
Pltxt 'T.O.S. EL. #POSEU+#/%U[#POSEU+ ]%U'
Pltxt 'T.O.S. EL. #DIMPOSU+'
Pltxt 'EL. #PKBOS^POSSU+ B.O.S. '
Various commands
FPT @ Move the 1 point of primitive STRA
TPT @ Move the last point of primitive STRA
PLCL @ Pclearance at @
GAP @ Create gap on dim line
GAP DELETE @ Choose the Gap to delete
GAP Delete ALL Suppress all GAP
REPEAT 5 BY X0 Y610 Copy 5 times the current STRA by Y -10
How to get back the rule applied on an object in draft view.
RECUPERATION DE LA REGLE ET DU STYLE APPLIQUE SUR UN
OBJET
o Q STYF <object type> ie :SBFI or BRAN ID@
DRAFT OUERY COMMANDS
o Q RRSF give the current VIEW RULE SETTINGS
o Q SIZE give the VIEW O/ALL DIMENSIONS
o Q ADEG give the C/VIEW ANGLE (IE 90 DEG)
o Q APOF give the CE(NOTE) TERMINATOR POS ’N
o Q BSRF give the DRG. SIFT REF (STRU LVL)
o Q CHEIGHT give the TEXT CHARAC HEIGHT
o Q CPOF give the CE (NOTE) LEADER LINE POS’
o Q DIR give the C/VIEW DIRECTION (IE N)
o Q DPOS give the LDIM POSITION ON SHEET
o Q DTER give the LAYER/LDIM TERM’TR DEFAULT
o Q FPT give the STRA FROM POINT CO-ORDS
o Q JUST give the C/VIEW JUSTIF (ie LEFT)
o Q LEN give the LENGHT
o Q LHEI give the TEXT LETTER HEIGHT
o Q LSHAPE give the LABEL LEADER LINE STATUS
o Q LVIS give the CE VISIBILITY
o Q MPT give the STRA FROM POINT CO-ORDS
o Q PKEY give the DIM PLINE STATUS (ie TCTF)
o Q POS PLRF give the CURRENT VSEC CO-ORDS
o Q RCOD give the VIEW ORIENTATION
o Q RRSF give the CURRENT VIEW RULE SETTINGS
o Q SIZE give the VIEW O/ALL DIMENSIONS
o Q SNAP give the SNAP SETTINGS (ON/OFF)
o Q THPOS give the C VIEW MATCHLINE CO-ORDS
o Q TMRF give the CE (SYMBOL) NAME
o Q TPEN give the TEXP COLOUR ATTRIBUTES
o Q TPT give the STRA TAIL POINT CO-ORDS
o Q VLIMITS give the VIEW LIMITS
***OPERATEURS LOGIQUES*****
GT +GRAND
LT + PETIT
EQ =
NEQ PAS =
LE + PETIT OU =
GE + GRAND OU =
AND A prendre comme lien entre deux questions qui doivent être vrais si cumulées.
OR À prendre comme lien entre deux questions pour extraire deux valeurs
NOT Non égal à …
Exemple: MATCHWILD(name,'/??A*') for ce
-- Vous recherchez la partie d'un nom d’une position et (10) nombre de caractères
fixes (3)
SUBSTRING(NAME,10,3) for ce /COLLECTEUR-EA-100
Résultat = R-E 0 123456789 01234567890
-- Vous testez la partie 2 d'un nom fullname (objet pdms « non nommé » ) et cette
partie est
un nombre réel à l’intérieur de la string fullname
Full name = SCTN 52 of SBFRAMEWORK 1 of FRMWORK /SF/CHARP-1/Z1/F1
52 est le terme 2 (65 dans l'exemple pour partie 2 plus grande égale 65 )
REAL(PART(FULLNAME,2,' ')) GE 65 for ce
-- Vous cherchez la partie d'un nom (ABC) avec valeur vraie si trouvée
MATCH(NAME,'ABC') GT 1 vrai si trouvé dans le mot cherché
--
COMP(U) OF POS WRT WORLD Retourne la valeur de la position Up
AFTER(NAME,'XXX') Donne la suite du nom après les caractères
choisis
Exemple : /MAVARIABLEXXXAMOI = AMOI
La fonction COLLECT
La fonction COLLECT (collecte d’éléments), associée avec ENHANCE (restaurer),
permet de rapidement sélectionner les éléments Design de la MDB courante, que
l’on
souhaite isoler pour leur affichage, pour les mettre en évidence (couleur), les
supprimer, etc
../.. .
Cette fonction demande de stocker dans une variable tableau les objets à travailler. Il
est
donc nécessaire de connaître la commande PML de mise en variable VAR.
EXEMPLES D’UTILISATION DIRECTE
#----------------------------------------------------------------------
VAR !charp collect all SUBS with ( matchwild ( NAME,’/M*’)) within N103750
E479075 U4950
TO N87500E494500U33500
Enhance all from !charp COLO 43.
#----------------------------------------------------------------------
VAR !charp append collect all PIPE within N103750 E479075 U4950 TO
N87500E494500U33500
Enhance all PIPE from !charp COLO 35.
#----------------------------------------------------------------------
EXEMPLE D’UTILISATION PAR MACRO
Exécuter le fichier script dans lequel ces lignes auront été écrites.
$d1=100 $* paramètre par défaut du choix du diamètre à prendre en compte.
$d2=22 $* paramètre par défaut de la couleur d’affichage.
Var !branch collect all bran with hbor eq $1
Enhance all from !branch colour $2.
Return
#----------------------------------------------------------------------
Lancement du fichier en exécution.
$M /nom du fichierscript 150 35
#----------------------------------------------------------------------
Autre exemple :
$d1=A33H
$d2=22
Var !collect collect all bran with dsco eq [$1]
Enhance all from !collect colour $2.
Return
#----------------------------------------------------------------------
Lancement du fichier en exécution.
$M /nom du fichierscript A44BN 27 (A44BN et 27 sont les variables $1 et $2 du
l’action)
PARAGON
To only replace only one parameters ie: 100 23 FGD 12 56 without type the whole
values
PARAm N3 ABC and the result is 100 23 ABC 12 56
Set the values before loading an object with many DESP or DATA
Model set des para 1 23
Model set des para 2 100
Model set des para 3 ABC
Model set des para 4 10
Model setting DDRADIUS 75 DDHEIGHT 200
Macro to set by defaults the Catalogue parameters
We can write a script file and load it as a macro or datal.
$M ;;;;;;;;;;;;;;;;;;;;;;;;
Also to create component in PARAGON, we should take care about
Obstruction volume
Representation level
And use data with their default values set to a minimum
A data value can be ?????XXXXX!!!!!!!
Then by default any catalogue component will be defined with 3 or 4 levels of
representation
CL centre line isometric view representation
Default geometrie Simple shape to facilitate the design motion.
Obstruction geometrie Very simple and efficient to save time with clasher
And detail geometrie Full geometry could be closed of real design but not for
common
use.