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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Set flexible dimension in a range

msauthier
8-Gravel

Set flexible dimension in a range

Hi everyone,

 

I'm facing an issue regarding an expectation from designers of my team.

 

They would like to set a range for flexible dimension.

 

For instance, I insert a spring in my assembly. I set it as a flexible component, thus the spring's length changes according the assembly position.

 

In the case of a lenght higher than the maximum theorical spring lenght, I would get a regeneration error or an error message ....

 

Does anyone has an idea  ?..

 

Thanks


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.
ACCEPTED SOLUTION

Accepted Solutions
StephenW
23-Emerald III
(To:msauthier)

Yes, it's actually not that hard. This particular one limits the part to between 96 and 108.

/* DIMENSION NAMED LENGTH
length=D44

/* generate error message
LENGTH >= 96
LENGTH <= 108

/* makes overall length dimension back to max for this dash number
IF D44 < 96
    D44 = 96
endif
IF D44 > 108
    D44 = 108
ENDIF

View solution in original post

2 REPLIES 2
StephenW
23-Emerald III
(To:msauthier)

Yes, it's actually not that hard. This particular one limits the part to between 96 and 108.

/* DIMENSION NAMED LENGTH
length=D44

/* generate error message
LENGTH >= 96
LENGTH <= 108

/* makes overall length dimension back to max for this dash number
IF D44 < 96
    D44 = 96
endif
IF D44 > 108
    D44 = 108
ENDIF

I was not sure that the flexible dimension could be used as flexible when this one is used in the relation. Actually it works.

Thank you !

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags