×
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

Is there a way to force My_Value to be a number in Properties ?

Is there a way to force My_Value to be a number in Properties ?

Is there a way to force My_Value to be a number in Properties ?

(OP)
When I try to have in Part Properties My_value as Number and try to assign to it say Volume (which after all, IS a number) I get an error message: "Invalid value entered for type Number" - the only thing it would let me have is Volume as Text.

Am I trying to do something impossible ?

SW2006 SP5.0

RE: Is there a way to force My_Value to be a number in Properties ?

I'm really not sure what your issue is here.  Why do you want it to be "Number"?

RE: Is there a way to force My_Value to be a number in Properties ?

(OP)

Quote:

Why do you want it to be "Number"?

So I could use it later in the calculations/equations  in "General Table" in the *.SLDDRW

RE: Is there a way to force My_Value to be a number in Properties ?

Quote (SW Help):


You can perform mathematical expressions with text strings if the custom property has a numerical value.

From "Equations in Tables"

RE: Is there a way to force My_Value to be a number in Properties ?

(OP)

Quote:

You can perform mathematical expressions with text strings if the custom property has a numerical value.

Yeah, I read that - the problem is either it does not work for me or (more probably) I am doing something stupid ... sad  sad

RE: Is there a way to force My_Value to be a number in Properties ?

I think the problem is that general tables (from what I can tell) don't link to the part referenced by the drawing - just to the drawing.  In order to have the general table display the volume of the part, I think you'll have to link the custom property "Volume" of the drawing to the volume of the part.  To do this, edit the custom properties of your drawing and add a custom prop named "Volume," and type "Text."  In the "Value/Text Expression" box, type "SW-Volume@Part1.SLDPRT".  Of course, change "Part1" to whatever the name of your part is.  Then "Volume" will be available as a custom property in the equation entry box for the general table.

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