E3d Commands
E3d Commands
dir d
dist 500
thr id@
by n 300
dir d
conn
by e 150
next thro ce
new sube
AXE AT CE
# COMMANDS FOR PIPING
AXES AT CE
AXES OFF
CONN PH TO ID@
CONN PT TO ID@
UNNAME
BY N 1000
DIST 1000
DRAG BY E 1000
THRO CE
FLIP CE
BACK
FORW
DIR D
ORI D
ORI AND P3 IS UP
Q DTXR
Q MTXX
BACK
CONN
NEX CONN
b. Q ATT
c. TCONN OPEN
d. Q STEXT
e. STEXT ‘DRAIN POINT’
59. MTOC DOTD (Do not want in bill of material) You can see the Doted DOTD
60. MTOC ON (Want in bill of material)
61. MTOC OFF (Don’t Want in bill of material)
62. Q PA BOP/TOP (To see the pipe BOP/TOP)
63. Q LSTUBE (To Change the spec Brake)
64. Q PSPEC (To see the pipe spec)
65. CONN PH TO P3 OF ID@ ( AND SELECT THE PIPE P3)
66. CONN PT TO LAS MEM
# STAY ON THE BRANCH:
CALLIB MREOREV
Q SPREF
PIN1 AT CE
Q POS PIN1
CONN P1 TO P2 OF ID@
SHOW _CDCADVMEMB
SHOW !!CDCMEMBER
SHOW !!CDCLIST
SHOW !!AIDCEARROW
SHOW !!COMPONENTSLOPE
If you want to know the length of the TUBI element, navigate to the ELBO before the TUBI and
type the following in the Design command window:
CE IL TUB OF CE
Q ATT
Calculating a distance
Anonymous
If you want to calculate the distance between leave of the current element and the arrive of the
next element type in the command window:
In-Canvas commands include all type of commands that you invoke them by typing in the air and then press
Spacebar or Enter button.
When using the In-canvas command prompt the following commands can be typed directly in:
ATTRIB SCHED
Collect systems
!network = CONNECTIONSH
Advertisements
Convert HashTable to Dictinary with array that is inside with splitter “-“:
KeyTable.Cast().ToDictionary(k => k.Key.ToString(), v => v.Value.ToString()).OrderBy(v => v.Value).
ToDictionary(k => k.Key, v => v.Value.Substring(v.Value.IndexOf(“-“) + 1, v.Value.Length –
v.Value.IndexOf(“-“) – 1))
Dont remember:
DependencyResolver.GetImplementationOf().Commands.Add(…);
Evaluation in PDMS:
VAR !ESTP eval stvnum ( /EQUIP/PROGRESS ) for all from !EQUI ignore any |na|
где xxx – выражение на PML1, например ALL BOX WHERE (XLEN + 10) FOR /MYSITE или ALL
BRANCH MEMBERS FOR /MYBRANCH
var !q collect all db with ( dbtype eq ‘CATA’ ) will collect all cata db
Advertisements
q all ulogid
mcount eq 0
q psatts
‘ATTLIS’,’AHLIST’,’HLIS’,’LLIS’,’OLIS’,’LIST’,’OWNLST’,’OHTYPE’
‘PPLS’,’PPVI’,’PPCOU’,’PLREFS’,’DDES’,’WDES’
‘TRANS’,’WTRANS’,’GMOF’,’NMOF’,’EVOL’,’LVOL’,’WVOL’
TEXIST
q var !!realFmt
q DBDEP
PML STATISTICS
!!commandMenu()
Visio functions:
DOCMD(1077)
SETF(“TxtAngle”,”0 deg”)
LOOKUP(Prop.CulcIsoMeth,Prop.CulcIsoMeth.Format)
=A1&CHAR(10)&B1
=PNTX(LOCTOPAR(PNT(Sheet.81!Connections.O2.X,Sheet.81!Connections.O2.Y),Sheet.81!
EventXFMod,EventXFMod))+-9 mm
!anytemp = !!CE.Attribute(‘desc’)
q var !anytemp.ObjectType()
pause 0.05
enddo
Using inset:
Advertisements
Draft expression:
Btext ‘#HPOSU+(Pm:1)’
Available to edit:
http://188.120.227.81/forum/index.php?showtopic=414&st=0&p=2978&hl=unset&fromsearch=1
C# expression eval:
if (!myEle.GetValidDouble(ATT_XLEN,length)) { // handle error in some way }
Sorting in PML:
!Indices = !bb.sortedindices()
!a.reindex(!Indices)
Eval expression:
!expression = object EXPRESSION(|NAME OF ZONE|)
!strZone = !expression.evaluate(!element)
!!pml.getpathname(‘youfile-from-pmllib’)
3D Catalogues:
http://www.witzenmann.at/witzenmann/wia/engineering/flexperte_download.php?
PHPSESSID=24fe0124250f4d2b4753af49b32c60e8
Plot dxf to plt:
1. Save as the (.dwg) to (.dxf) ex: TEST.DXF and put it into C:\AVEVA\Pdms11.6.SP3\plot folder (make sure the
file dformd.dll is located at same folder) 2. Use Command Prompt to type the below command (the bold text) c:\
Documents and setting> CD.. c:\> CD AVEVA c:\AVEVA> CD PDMS11.6.sp3 c:\AVEVA\CD PDMS11.6.sp3>
CD PLOT c:\AVEVA\CD PDMS11.6.sp3\PLOT> PLOT …
!sel.getcurrent()
!s = !sel.getselection()
q !s
Delete selection in PDMS:
!sel = object SELECTION()
!sel.getcurrent()
!s = !sel.getselection()
do !sVal values !s
$!sVal
handle any
elsehandle NONE
delete $!!ce.type
endhandle
enddo
Execute C# in PML:
import ‘PDMSCommands’
handle ANY
endhandle
Run C# PML.net:
IMPORT PMLNetClass
! calcObj.Calculate(2,2)
How to create selection in DRAFT:
раз форму вызывается через создание объекта
то от вас требуется
в с# создать нового делегата PmlNetEventHandle
создать евент на кнопке которы при запуске будет вызывать так же и вашего делегата
в pml при создании обьекта вешаете свою функцию при нажатие на кнопку
а в функции пмл пишете требуемый вам xypos
всё должно работать
Find in DRAFT:
var !res FIND $!element in $!view
Q P1 BOLT1 BLEN
!modelEditor.modifymode(true)
(iftrue (Pritype EQ ‘EQUI’, NAME OF OWNER , iftrue (Pritype EQ ‘PIPE’, Ttext OF Detref , ‘ NEITHER PIPE
OR EQUI ‘)))
Coordinates of Bottom\Top:
!topOfSteel = !!ce.wvolume[6]
!botOfSteel = !!ce.wvolume[3]
Some mac:
!!aidConstructors = object aidConstructors()
aid clear all
!sube = !!ce
!plane1 = !sube.position.plane(!pos1,!pos2)
!!aidConstructors.add(!plane1)
!radius = !pos1.line(!sube.position)
Mark CE Name:
MARK WITH ( NAMN ) CE
Environment variables:
CAF_ADDINS_PATH
CAF_UIC_PATH