×
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

%{(variable}/@n} Problem

%{(variable}/@n} Problem

%{(variable}/@n} Problem

(OP)
I guess if you understand the title then you might be able to help me...

My aim is to produce the following:

'8 - Ø10 EQUI-SPACED ON 135.0 P.C.D.'

From the following:

%{NUMBER|GP} - %DI%HS EQUI-SPACED ON %{PCD|GP} P.C.D.

Where, 'NUMBER' and 'PCD' are values that are exposed in the part file. These relate to number of holes in the array and the PCD(!)

Currently I get:

8.000 - Ø10 EQUI-SPACED ON 135.00mm P.C.D.

So comparing that with what I want, I need to remove the three decimal places after the 8, and the two decimal place + mm after the 135.

I've tried this:
%{NUMBER/@0|GP} - %DI%HS EQUI-SPACED ON %{PCD/@1/NU|GP} P.C.D.

But I've read somewhere on here that these variables cannot be controlled via /NU and /@n... is there a work around? I don't mind creating a new exposed value that references the two values, or even some other method, I've just run out of ideas myself.

Cheers,

M

RE: %{(variable}/@n} Problem

What is the decimal precision in your part and draft file?  And of the dimension styles in each?

Try changing those and also try just overriding the feature dimension you are exposing.

--Scott

http://wertel.eng.pro

RE: %{(variable}/@n} Problem

(OP)
Hi,

I don't want to change the decimal precision in the part or draft file as there will be a time when I require 1,2 or 3 d.p.

How do you override the feature dimension I'm exposing?

Cheers,

M

RE: %{(variable}/@n} Problem

Hi,

I think you're screwed. The operator /NU and /@n can only be
applied to numeric variables. An exposed variable is always
of type text. AFAIK there is no solution other then setting
the precision to 1 (global setting)

dy

RE: %{(variable}/@n} Problem

(OP)
Damn, I guess I'll submit it as a feature request then...

M

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