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 relations

mpro

New member
Hi guys,


I need your help in solving this problem I want to over write a asm member name


and I am not getting the results. Can any body help me?


Here is the relation. I have written to over write 1111 asm mbr name as 1112


if asm_mbr_name == "1111"
asm_mbr_name = "1112"
else
asm_mbr_name = asm_mbr_name
endIf


Regards
 
I think I've tried the same thing (more-r-less) and it didn't work. What I resorted to was something like ...

new_name = asm_mbr_name
if asm_mbr_name == "1111"
new_name = "1112"
endif

The repeat region symbol asm.mbr.name is then changed to rpt.rel.new_name.

If that doesn't seem to work out, holler back and I'll look to see if I've mis-remembered something...
 
if asm_mbr_name == "1111"
new_name = "1112"
else
new_name = asm_mbr_name
endif


The repeat region symbol asm.mbr.name is then changed to rpt.rel.new_name.


Charles
 
Guys Thanks for the reply.The relation whatI have written is as below.But it is not working. I am using Wildfire 2.0


if asm_mbr_name == "1111"
my_name = "1112"
else
my_name = asm_mbr_name
endif
 
"... is not working."

You have a report symbol rpt.rel.my_name in the repeat region?

There is an entity with asm_mbr_name == "whatever string"?

No errors generated?

I think I've had trouble setting up relations if the symbol being tested (asm_mbr_name) isn't in the repeat region to start with; e.g. put the symbol in the table, create the relation and then change the symbol to rpt.rel.my_name. (Not real sure about all the intricacies myself, so take with a grain of salt.)
 
Thanks.....


I have changed asm_mbr_name to rpt.rel.my_name in report parameter.


Wishing you all "Happy andProsperousNew Year"
 

Sponsor

Articles From 3DCAD World

Back
Top