%{(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
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
Try changing those and also try just overriding the feature dimension you are exposing.
--Scott
http://wertel.eng.pro
RE: %{(variable}/@n} Problem
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
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
M