Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reporting family table instance parameters in repeat region

Status
Not open for further replies.

swf2

Mechanical
Dec 17, 2006
4
Hi,
I'm trying to include the diameter and length from family table instances in the "DESCRIPTION" column in my BOM table. For example it would read .375DIA X 2.0LNG
My parameter in the BOM table is asm.mbr.DESCRIPTION. I tried creating a relation that read:

DESCRIPTION=basic_dia "DIA X" L "LNG"

where "basic_dia" and "L" are parameters in the model and
DIA and LNG are parameters that I created. I don't know if it is a syntax problem or that it can be done at all. Any help would be appreaciated.
Thanks
SWF1
 
Replies continue below

Recommended for you

Because you are dealing with strings, you need to concatenate them.

Description = basic_dia + "DIA X " + L + "LNG"
DIA and LNG do not need to parameters.



"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
Sr IS Technologist
L-3 Communications
 
Bob,
Thanks for your response. When I insert that string I get an error message:
DESCRIPTION=basic_dia + "DIA X " + L + "LNG"
errorInvalid data type combination at right side of expression
If I use an ITOS function it works for the length by returning the correct value however if I use the ITOS function for the diameter it does not return a value (In the parameter list next to the parameter DESCRIPTION)

SWF2
 
Ben,
Sorry I meant to put Ben and NOT Bob

Steve
 

itos() = integer to string. Real numbers are rounded.

You might get away with something like "."+itos(dia*1000) ... and conditional statements if it gets more complicated.

Are these going to be shown in a repeat region? Seems I remember seeing (somewhere; would have to hunt for it, myself) a discussion re concatenating values in a repeat region cell, i.e. ...
&asm.mbr.dia "DIA x " &asm.mbr.len "LEN"
... Vague memory. Maybe someone else can confirm or elaborate.
 
Jeff,
Thanks for the info - the mcadcentral post is what I was looking for.

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor