cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Add a dimension to a table

bjoyner
3-Newcomer

Add a dimension to a table

Hello,

 

  I have several start parts that I use to design fixtures.  One is a simple dowel pin 6.35 mm dia.

I want to create a parameter that would display in a table the diameter which will always be 6.35 mm and the length which would vary.

The capture below is what I tried but it displays in my table just as typed and does not display the d1 dimension which is my length.

Anyone have any advice on the proper syntax to use?

I am using Creo 4.0

 

 

Capture.JPG

ACCEPTED SOLUTION

Accepted Solutions

Hi,

if length is always integer value, then you can apply following relation

MATERIAL = "ø 6.35 mm x " + itos(d1) + " mm"

MH


Martin Hanák

View solution in original post

5 REPLIES 5
BenLoosli
23-Emerald II
(To:bjoyner)

d1 is a value, not a string. You will have to convert it to a string.

There have been many topics in the Community on doing this. Here are just 2:

Converting Real Numbers to Strings

How To: Format a real number relation in a note?

Hi,

if length is always integer value, then you can apply following relation

MATERIAL = "ø 6.35 mm x " + itos(d1) + " mm"

MH


Martin Hanák

Thanks for the help.  That worked perfect for me.

If you wouldn't mind is there a way to control the decimal places?

It is rounding my d1 value to the nearest whole number.

Hi,

see links provided by Ben Loosli.

MH


Martin Hanák

I just finished doing that and it worked great.  Thanks to you both!!!!

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags