• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

parameters within other parameters

  • Thread starter Thread starter Pal_65
  • Start date Start date

Pal_65

Guest
Good morning.
I use pro engineer for many years and I always find new things to develop.
I need to insert a parameter inside another parameter.
My parts and assemblies associated the "description" parameter which is a note with which I automatically fill the cartilage in the table.
I have the need to insert in "description" also the parameter "length" derived from family table guided relationships.
Surely the subject was dealt with.
if you can kindly indicate the discussion link or help me solve this case too.
Thank you.
 
Hi.

this is the instruction to get what you want:
description = description + itos(length)
 
Thanks dani.
the parameter so created is "strange" ....
"profile rio 2 worked26026026068568568556856856856856856856856856856856856856"
relationships that generate the family table are:


l=length /* value written in family table column
l_molle=l-120 /* distance between extreme springs


if you want to
_
Step_molle=l_molle/(n_molle-1)
endif

if you want to
_
Step_molle=l_molle/(n_molle-1)
endif

if you want to
_
Step_molle=l_molle/(n_molle-1)
endif

if it is
_
Step_molle=l_molle/(n_molle-1)
endif

if it is
_
Step_molle=l_molle/(n_molle-1)
endif

pass_fori=pass_molle
num_fori=n_molle
description = description + itos (l)
 
in relationships, as before education, you have to put:
description = ""
otherwise at each step increases the length of the string.
or, if not possible:
description_tot = description + itos(length)
and then use this new parameter.
 
Thanks dani.
It's okay.
Thank you.

There's one more thing. the value returned in description_tot is free of decimals (itos returns whole numbers only).
is it also possible to overcome this condition, perhaps in other ways?
 
the itos function only works with the whole numbers. I do not know if in the most recent versions there is a similar function that also manages numbers with decimals. otherwise there is this method:

x=16.594321
decimals =5

n1=floor(x,decimali)
n2=itos(n1*10^decimali)
n3=extract(n2,1,string_length(n2)-decimali)+". "+extract(n2,string_length(n2)-decimali+1,decimali)

where x is the real number, decimals indicates the number of decimals desired and n3 is the string of the number converted into text.
a little complicated, but it works.
 
the itos function only works with the whole numbers. I do not know if in the most recent versions there is a similar function that also manages numbers with decimals. otherwise there is this method:

x=16.594321
decimals =5

n1=floor(x,decimali)
n2=itos(n1*10^decimali)
n3=extract(n2,1,string_length(n2)-decimali)+". "+extract(n2,string_length(n2)-decimali+1,decimali)

where x is the real number, decimals indicates the number of decimals desired and n3 is the string of the number converted into text.
a little complicated, but it works.
fast flooding:

possible that they have not yet made the instruction to avoid the "game" of the extraction of decimal numbers to have the number you want?
I understand that the various "cores" of wildfires have not allowed this evolution of these spikes over the years, but at least with the creo....
 
Thank you all.
are special things and in my case even rare to use.
I personally resolve the issue by recalling the parameter in my case length after partial description:
- "profile l=" "1250,75" in two distinct columns.
 
Thank you all.
are special things and in my case even rare to use.
I personally resolve the issue by recalling the parameter in my case length after partial description:
- "profile l=" "1250,75" in two distinct columns.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top