×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Determine Units inside a rule

Determine Units inside a rule

Determine Units inside a rule

(OP)
been working with catia about six months.  just getting started into creating rules and i have a need to know what the current units are within the rule.  is there a way to find out what the current units (mm or in) is?  I need to format a catalog value with only mm values

RE: Determine Units inside a rule

Which sort of rules do you mean? rules from KWA or the rules which you can get with the fog-icon?

Regards,

CEROG

RE: Determine Units inside a rule

If I recollect right, if you don't have a unit to numerical value it will be counted in meters and parameters of length, angle.. type will be according to setting

RE: Determine Units inside a rule

(OP)
it is from the kwa side of things.

if the user's units for length is set to mm then all is well; if they select dia= change it then the current rule looks at the value converts it to a string and changes the catalog entry from say D40 L300 to D30 L300 but if it is set to inches then it ends up looking like D1 L300

I haven't found the functions/procedures or whatever you call them in Catia

i would think that something like IsMetric() would exist but don't know where to really look

 

RE: Determine Units inside a rule

(OP)
After experimenting with the string options it turns out that when you convert a parameter to a string it also includes the units.  so i was able to check the string for the units and then format the required string based on the test.

However, if there is an easier way i would still like to know about it.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources