×
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

Controlling Catia Parameter Decimal Places

Controlling Catia Parameter Decimal Places

Controlling Catia Parameter Decimal Places

(OP)
thread560-305431: Controlling Decimal Places Of A Parameter Value Through A Formula

Needed to reduce the significant decimal places on a fabrication drawing, while maintaining four-decimal accuracy in the design model.

Ref'd thread has some clues, but nothing explicit.

Fiddled around with functions and came up with this truncation method, which is simplified by defining intermediate string parameters:

2-D Cut Size Example:
---------------------
Screen.Height.String = ToString(`Screen.Height`).Extract(0,ToString(`Screen.Height`).Length()-5)
Screen.Width.String = ToString(`Screen.Width`).Extract(0,ToString(`Screen.Width`).Length()-5)
Nomenclature = "GRAINGER #49N599, CUT SIZE = " + `Screen.Height.String` + " X " + `Screen.Width.String`
Product Description = WIRE SCREEN #12 AWG 1X1 BLK PVC CTD

Assumes that 5 insignificant characters "000in" remain after rounding to 1 decimal place for each value.

May not solve everyone's problem, but hey it works for me!

RE: Controlling Catia Parameter Decimal Places

(OP)
Improvement: Instead of lopping off the last 5 characters, more generally index decimal point and extract index+2 chars from start of string

1D Cut Length Example:
-----------------------
Cut.Length.String = ToString(`PartBody\Cut.Length\FirstLimit\Length`).Extract(0,ToString(`PartBody\Cut.Length\FirstLimit\Length`).Search(".")+2)
Nomenclature: "BOSCH-REXROTH #8981992026, CUT LENGTH = " + `Cut.Length.String`
Product Description: T-SLOT ALUM PROFILE 45 X 45 X 6000mm

Note: Cut.Length is a pad

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