hi,
im creating an assembly based around pro prog.
I have 4 different prts, each created into 1 interchange group.
Although one one the 4 parts has also an interchange group.
How can tis be written in pro prog?
ill use a silly example....................
View attachment 52
eg first interchange group = 4 components
the 4th component eg the pentagon is also an interchange group, it can either be a hexagon or square.
below is what ive for the 4 component interchange group
INPUT
INTERCHANGE NUMBER
enter choice of object (1=circle, 2=rectangle, 3=triangle, 4=pentagon
END INPUT
RELATIONS
IF INTERCHANGE==1
object_name= circle.prt
ELSE
IF INTERCHANGE==2
object name= rectangle.prt
ELSE
IF INTERCHANGE==3
object_name= triangle.prt
ELSE
IF INTERCHANGE==4
object_name= pentagon.prt
ENDIF
ENDIF
ENDIF
ENDIF
END RELATIONS
This works fine... i just dont know how to add the second interchange group on the pentagon??
im creating an assembly based around pro prog.
I have 4 different prts, each created into 1 interchange group.
Although one one the 4 parts has also an interchange group.
How can tis be written in pro prog?
ill use a silly example....................
View attachment 52
eg first interchange group = 4 components
the 4th component eg the pentagon is also an interchange group, it can either be a hexagon or square.
below is what ive for the 4 component interchange group
INPUT
INTERCHANGE NUMBER
enter choice of object (1=circle, 2=rectangle, 3=triangle, 4=pentagon
END INPUT
RELATIONS
IF INTERCHANGE==1
object_name= circle.prt
ELSE
IF INTERCHANGE==2
object name= rectangle.prt
ELSE
IF INTERCHANGE==3
object_name= triangle.prt
ELSE
IF INTERCHANGE==4
object_name= pentagon.prt
ENDIF
ENDIF
ENDIF
ENDIF
END RELATIONS
This works fine... i just dont know how to add the second interchange group on the pentagon??