Skip to main content
1-Visitor
April 16, 2013
Question

Allowable dimension values?

  • April 16, 2013
  • 1 reply
  • 2077 views

Hi folks,

I'm stumped on a question from a co-worker.

Is there a way to limit a dimension value to increments of 1, e.g., 5.62, 6.62, 7.62..., etc.?

User wants to select a drag handle and it snaps to the next available dimension value.

 

-Josh


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

1 reply

17-Peridot
April 16, 2013

There are a few ways to limit values. The method is application dependent.

The 1st that comes to mind is dragging components that have assembly constraints. These will have degrees of freedom within their specified constraint limits.

Second is the ability to use "if" statements in relations where you can have set allowable or ranges of valid values.

If you have an "if/then" type of evaluation, you can use a graph feature drive your relation. If X=n then Y=value of graph.

If you have a better idea of exactly your coworker is trying to accomplish, we can dive deeper into any of these.

JoshH1-VisitorAuthor
1-Visitor
April 17, 2013

The application is a simple part extrusion.

This is basically what I'm after, but don't know how to write the logic without Creo spitting it back.

IF(D367>=9) AND IF(D367<=10)
D367=9.84
ENDIF

IF(D367>=10) AND IF(D367<=11)

D367=10.84
ENDIF

17-Peridot
April 17, 2013

if statements are nested.

if d367<=9

if d367>=10

d367=9.84

endif

endif

... then the same for the second test.

You also need an else statement if neither work.

I am not at the system at the moment or I would get the exact syntax