cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

1-Newbie

## Creating Negative Relations

I have a dimension 'X' and I always want dimension 'Y' to be negative of
'X'. That is, when 'X' is 3 I want 'Y' to be -3, and when 'X' is -10 I
want 'Y' to be 10. I wrote the simple relation Y=-X. It seems to work
when 'X' is a positive number, but when 'X' is negative it gives me the
following error...
Line 67 part 326541_SKEL: Invalid attempt to assign negative value
-18.000000 to 'd164'.
Precede the symbol with '\$' to allow negative value.

When I precede with a \$ it still gives me the error. So I tried the
following relations which also fail, Y=-(X), Y=0-X, and Y=X*(-1) with the
same error.

Any suggestions? I'm stumped. Maybe I'm just not placing the \$ in the
right spot?

Britt Mott
Eaton Corporation
3 REPLIES 3
1-Newbie
(To:e0000241)
\$y=-x

Best regards,
Igor Varshavsky

>>> "Britt Mott" <-> 07/12/04 03:28pm >>>
I have a dimension 'X' and I always want dimension 'Y' to be negative
of
'X'. That is, when 'X' is 3 I want 'Y' to be -3, and when 'X' is -10
I
want 'Y' to be 10. I wrote the simple relation Y=-X. It seems to
work
when 'X' is a positive number, but when 'X' is negative it gives me
the
following error...
Line 67 part 326541_SKEL: Invalid attempt to assign negative value
-18.000000 to 'd164'.
Precede the symbol with '\$' to allow negative value.

When I precede with a \$ it still gives me the error. So I tried the
following relations which also fail, Y=-(X), Y=0-X, and Y=X*(-1) with
the
same error.

Any suggestions? I'm stumped. Maybe I'm just not placing the \$ in
the
right spot?

Britt Mott
Eaton Corporation

---
List name: -

You are currently subscribed to model as: igor@plasson.co.il.
To unsubscribe send a blank e-mail to
-.

For assistance, email us at - or find other
contacts at www.ptcuser.org/org/contacts.html.

PTC/USER and the PTC/USER logo are registered trademarks of PTC/USER,
Inc.
Pro/ENGINEER is a registered trademark of PTC.

Message authors are solely responsible for the content of their posts.

3-Visitor
(To:IGOR)

Am I not understnding the syntax for allowing negative values?

I get the following error

d22=asin(1.4607*sin(d21))
errorInvalid attempt to assign negative value -0.875425deg to 'D22'. Precede the symbol with '\$' to allow negative value.

but after adding \$, I get the following error

\$d22=asin(1.4607*sin(d21))
errorInvalid left side of assignment

23-Emerald IV
(To:dramirez)

Probably better off starting a new topic.  This one is almost 16 years old.

Your syntax is correct.  More than likely the value is not be valid, regardless of the fact that it is negative.  What happens if you remove the relation and manually try setting D22 to -0.875425 deg.  Does it fail?

Announcements
Attention: Creo 7.0 Customers