Design Element Identity <gid>
- Last UpdatedDec 19, 2023
- 2 minute read
This syntax identifies a Design Element. The main syntax graph is <gid>, shown below. The sub-graphs follow.
.-------------------------------.
| |
<gid> --->----+-- <nexid> ------------+-------|
| | |
|-- <snoun> -+----------| |
| | | |
| |- <next> -+- OF --’
| | |
| | ‘---------.
| | |
| ‘-- <id> ------------|
| |
|-- <othid> ----------------------|
| |
|-- <id> -------------------------|
| |
|-- <idsp> -----------------------|
| |
‘-- <clos> -----------------------+----->
Direct Identification
By reference to name/reference number <id>, hierarchy <othid>, or to a point selected from display <curid>:
<id> >--+-- name ---.
| |
‘-- refno --+-->
<othid> >--+-- CE ---------.
| |
|-- SAMe -------|
| |
|-- ELEMent ----|
| |
‘-- <curid> ----+-->
<curid> >-- IDentify --+-- <snoun> ---.
| |
|-- Tube ------|
| |
‘--------------+-- @ -->
Indirect Identification
By reference to other elements, parts of elements or adjacent members in the database hierarchy.
< nexid> >-+- HEad ----.
| |
|- TAil ----|
| |
|- ILeave --|
| |
|- IArrive -+-- <tubid> ---.
| |
|-- <next> -- <snoun> -----|
| |
|-- OWNer -----------------|
| |
‘-- END -------------------+--->
<tubid> >-+-- TUBe--.
| |
‘-- ROD --+-->
<next> >-+-- LAst -----.
| |
|-- FIrst ----|
| |
|-- PREvious -|
| |
|-- NEXt -----+-- integer --.
| | |
| ‘-------------+-- MEMbers--.
| |
‘-- integer -----------------------------+-- OF ->
<idsp> >---- IDSP --- integer ->
Identification by physical position in the design model:
.----<----.
/ |
<clos> >- CLOSest -*- <snoun> -+- WITH <expr> -.
| |
‘---------------+- UP ----.
|- DOWN --|
|- EAST --|
|- WEST --|
|- NORTH -|
‘- SOUTH -+-.
.----------------------------<--------------------’
‘-+- EXTENT <expr> -.
| |
‘-----------------+- AFTER <expr> -.
| |
‘----------------+- FROM <bpos> -.
| |
‘---------------+--->
|
WITH |
Specifies rule restricting choice of element (default is no restriction). |
|
|---|---|---|
|
EXTENT |
Specifies how far to search before giving up (default is 10 meters). |
|
|
AFTER |
Specifies that search is to start after given distance in given direction (default is zero). |
|
|
FROM |
Specifies reference position from which search is initiated (default is CE). |
|
|
Example: |
||
|
/EQUIP10 |
Named design Element. |
|
|
SAME |
Previous Element accessed. |
|
|
OWN |
Owner of Current Element. |
|
|
GOTO SPRE |
Specification of Current (piping) Element. |
|
|
NEXT 2 |
Second Next Element at same level. |
|
|
4 |
Fourth Member of Current Element. |
|
|
LAST 3 MEM |
Third Last Member of Current Element. |
|
|
END |
Next element up in hierarchy. |
|
|
SITE |
Site above Current Element. |
|
|
ZONE 3 |
Third Zone. |
|
|
NEXT 2 PIPE |
Second Next Pipe. |
|
|
PREV BOX |
||
|
FIRST ZONE OF /SITE 5 |
||
|
PIPE OF /VALV101 |
||
|
FIRST MEM OF BRAN3 OF /PIPE10 |
||
|
HEAD OF FIRST BRAN |
||
|
CLOSEST VALV EAST |
Closest valve to current element in East direction in design model (note that syntax accepts only cardinal directions, which must be entered in full). |
|
|
CLOS VALV NORTH FROM E100 N200 U300 |
Closest valve in North direction starting from given position (valves found before this position are ignored). |
|
|
HSTIFF idsp 6003 of HPANEL /ER2-LP32_2 |
The HSTIFF with a IDSPU attribute of value 6003. |
|