Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

%{(variable}/@n} Problem

Status
Not open for further replies.

m4rc

Mechanical
Jan 25, 2005
112
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
 
Replies continue below

Recommended for you

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

 
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
 
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
 
Damn, I guess I'll submit it as a feature request then...

M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor