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.

Register Log in

Repeat Region Relations

yumab

New member
I need to find out how to add a relation to a repeat region. I have a asm_mbr_name that shows the name of a sub-assembly in my assembly. What I want to do I give it a different name.


For example: "xxx_hose1" shows in my repeat region; I want it to show up as "aaaaa-bb-c-d-ee"


I've tried this:


if asm_mbr_name=="xxx_hose1"


name="aaaaa-bb-c-d-ee"


endif


But this does not work! If anyone can help I would appreciate it!
 

Melanie

New member
Here is a copy of my relations. Maybe this will help you?


IF asm_mbr_PART_NO == "IM-2000"
QTY = "AR"
ELSE
IF asm_mbr_PART_NO=="IM-22523"
QTY="AR"
ELSE
IF asm_mbr_PART_NO=="IM-12248"
QTY="AR"
ELSE
IF asm_mbr_PART_NO=="IM-22524"
QTY="AR"
ELSE
IF asm_mbr_PART_NO=="IM-16743"
QTY="AR"
ELSE
IF asm_mbr_PART_NO=="IM-1959"
QTY="2in"
ELSE
IF asm_mbr_PART_NO=="B-45736/118"
QTY="18in"
ELSE
IF asm_mbr_PART_NO=="B-99177"
QTY="18in"
ELSE
IF asm_mbr_PART_NO=="B-45737/118"
QTY="18in"
ELSE
IF asm_mbr_PART_NO=="B-45743/118"
QTY="18in"
ELSE
IF asm_mbr_PART_NO=="A-45785/500"
QTY="18in"
ELSE
QTY=RPT_QTY
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
 
if asm_mbr_name=="xxx_hose1"
name="aaaaa-bb-c-d-ee"
else
name= asm_mbr_name
endif


And make sure you put rtp.rel.name in repeat region.


Good luck,


Chalres
 

Sponsor

Top