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.

To get dimension in to parameter in a par

moose021

New member
I need to get adimension from the part d7 in to the parameter DIMENSION.


I have tried with &d7 in the parameterbut no luck.


//Moose
 
I have my parameter DIMENSION in our BOM-list and I want to show eg. the cutting length 40x40 L=500. So I dont want to add more parameters in the BOM. Can it be done in another way?
 
Because DIMENSION parameter is probably of type String, you need to convert the Real Number dimension of the part d7 to type String.


Write the following relation:


HEIGHT = itos(d1)


WIDTH = itos(d2)


LENGTH = itos(d3)


DIMENSION = HEIGHT+"x"+WIDTH+" L="+LENGTH


In this case, "d1" is dimension which references the height of the part (40), "d2" references the height (40) and "d3" references the length (500), so you need to insert your own part dimensions in relations for height, width and length.


Be aware, that ITOS function converts integer to string and therefore cuts away the numbers right of the decimal point, so when you have length of 500.3, the LENGTH shown in DIMENSION parameter will be equal to 500.
 
smiley32.gif
Skraba





i learned something new today "itos"





smiley32.gif
 
Another way is to create a note in the model. You can mix real numbers and text this way and not have to create relations.
 
I am trying something similar but I'm not sure how.


I have an assembly which I need to see in different positions.


I want to assign a parameter to a dimension so that I don't always have to go into that sub assembly and edit the dimension.


How do I assing a parameter to a dimension.


I tried to create the parameter HEIGHT and then giving the same name to the dimension, but proe tell me that I can't use the same value.


Sorry for my ignorance
 

Sponsor

Back
Top