To find clashed elements in CSV format in customizeable way you can you such request. This example search thought pipes under /STABILIZER.
1;# HH CLASH; NOZZLE 2 of EQUIPMENT 1 of ZONE 1 of SITE /AFG-CX01.HVAC; NOZZLE 2 of EQUIPMENT 1 of ZONE 3 of SITE /AFG-CX01.HVAC; at E11299 N1299 U1501;user
2; # HH TOU; NOZZLE 2 of EQUIPMENT 1 of ZONE 1 of SITE /AFG-CX01.HVAC; BOX 1 of EQUIPMENT 1 of ZONE 3 of SITE /AFG-CX01.HVAC; at E11300 N1125 U1500;user
–Name of element that need to be checked
/STABILIZER
var !pipes coll all pipes for ce!sep = ‘;’
do !pipe values !pipes
$!pipe
!userm = USERM
!lines = ARRAY()
!strClashes = ‘c:\’ + ‘pipe-‘ + !!ce.name + ‘-user-‘ + !!ce.userm + ‘.csv’
!fileClashes = object FILE( !strClashes.replace(‘”‘,”).replace(‘=’,”).replace(‘/’,”))
–run desclash
DESCLASHOVERRIDE ON
REMOVE OBST All
OBST ALL
–some setting
NOCHECK WITHIN BRAN
NOCHECK WITHIN EQUI
INCLUDE CONNECTIONS
INCLUDE TOUCHESCHECK CE
VAR !allClashes CLASH COUNT CLASHES
do !i from 1 to !allClashes.real()
var !Second CLASH $!i SECOND
var !First CLASH $!i First
var !Pos CLASH $!i POSITION
var !Type CLASH $!i Type
!lines.append(!i.string() + !sep + !type + !sep + !Second + !sep + !First + !sep + !Pos + !sep + !userm)
enddo
!fileClashes.writeFile(‘OVERWRITE’, !lines)
enddo
File link
Hello me_hungry,
how to use above clash tool???
Hello me_hungry,
how to use above clash tool???
It is a macro comands. Just copy it to file and run in command line of Pdms or E3D design module like $m /$c:\NameOfFile.pmlmac
Hello me_hungry,
Can u share this .pmlmac, because I m using same above write-up, but it is not work properly.
So kindly share above .pmlmac
(47,50) CP: Meaningless symbol(s) in command line
In line 10 of Macro C:\Users\XXXX\Desktop\New Text Document (6).txt
!fileClashes = object FILE( !strClashes.replace(‘’^^,).replace(‘=’,).replace(‘/’,))
This line should be :
!fileClashes = object FILE( !strClashes.replace(”,”).replace(‘=’,”).replace(‘/’,”))
Just single quotes
Hi me_hungry,
Can u share above .pmlfrm, because I am try many times but error found.
Regards,
Mehul patel
Here is the link
https://drive.google.com/open?id=1dqVbNzbo65X_ua4j5lFB-sfpePwwi3zc