Skip to main content
1-Visitor
July 15, 2015
Solved

Set flexible dimension in a range

  • July 15, 2015
  • 2 replies
  • 2178 views

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.
Best answer by StephenW

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

2 replies

StephenW
StephenW23-Emerald IIIAnswer
23-Emerald III
July 15, 2015

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

msauthier1-VisitorAuthor
1-Visitor
July 15, 2015

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 !