Clash Report in CSV format

To find clashed elements in CSV format in customizeable way you can you such request. This example search thought pipes under /STABILIZER.

pipeclash.jpg

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

/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(‘=’,”).replac e(‘/’,”))
–run desclash
DESCLASH

OVERRIDE ON
REMOVE OBST All
OBST ALL
–some setting
NOCHECK WITHIN BRAN
NOCHECK WITHIN EQUI
INCLUDE CONNECTIONS
INCLUDE TOUCHES

CHECK 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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.