Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

experts at pro program?

skiddy

New member
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??
 

Sponsor

Articles From 3DCAD World

Back
Top