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.

repeat region - modify report value

asa_caduser

New member
Hi,


I have a question regarding modifing the report value in repeat region using relations.


I want to report different part name, so this is what I wrote (which doesn't work)


IF asm_mbr_name=="MICKEY"


/* the file name is MICKEY


asm_mbr_name=MINI


/* MINI is the value I want shown on the table instead of MICKEY


ELSE


asm_mbr_name=asm_mbr_name


/*the rest of the name can remain the same


ENDIF


Would anyone help straighten me out on this matter?


Thanks
 
You can't change the report parameters - these refer to the CAD filenames.


Waht you will need to do is create a new parameter in the part, and have that parameter show up instead of the asm_mbr_name.


You can then use the relation above, substituting your parameter for the asm_mbr_name.
 
IF asm_mbr_name=="MICKEY"
new_name = "MINI"
ELSE
new_name = asm_mbr_name
ENDIF


You need togive new parameter for the new name (i.e. new_name) then in BOM table you need to replace'asm.mbr.name' with 'rtp.rel.new_name'


You also need to enclose MINI with double quote. (i.e. "MINI").


Charles
 
I tried that too, but it still doesn't work. I created a new parameter "dname" and assigned "MICKEY" as its value. Andthe rest of the parts in that assy, dname parameter is added but no value assigned.


I also changed the value in table is asm.mbr.dname. MICKEY shows on the table and the rest of the parts are blank because I didn't assign valueto them.


The relations read:


IF asm_mbr_dname=="MICKEY"
asm_mbr_dname=dname
ELSE
asm_mbr_dname=name
ENDIF


Still only MICKEY shows up, then I tried,


IF asm_mbr_dname=="MICKEY"
asm_mbr_dname=asm_mbr_dname
ELSE
asm_mbr_dname=asm_mbr_name
ENDIF


Only MICKEY shows up again, I'm stumped!
 

Sponsor

Back
Top