Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SSS148 on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Feature by expression 1

Status
Not open for further replies.

AJMemphis

Mechanical
Aug 22, 2013
32
Hi All!

I am currently doing a few parts and wanting to control them all by a single expression, so far i am managing but i have come across a problem i cant solve.

I have part that when over 60mm it has four holes that are threaded 25mm, when under 60mm it the threaded holes just go straight through. This means that depending on the size there is either 2 or 4 holes, is there an expression anything like this

If ( 'part' >= 60 )
Then ( 25 )
Else if (p4 < 60 )
Then (DO NOT DO IT!)

I assumed the word 'false' would work but thats a 'syntax error'

Any help appreciated,

Thanks
 
Replies continue below

Recommended for you

Have you looked at Feature Suppress By Expression ?
It will do just what you need.
After you check it out then come back here and ask more questions if you have them.
 
Thanks jerry1432 but not sure how to use that, what expressions do i use? it basically needs to say under 60 then supress the feature, over 60 then allow the feature to be active, but what are the correct words to use?
 
Scrap that, last comment, was me just being daft, using greater than rather than less than and wondering why it didnt work! that has worked brilliantly!

Thanks very much jerry1432
 
I am not at work right now so I will just make a short comment
Suppress by expression creates an expression where it is either 1 or 0. 1 can turn the feature on and 0 can turn it off, or it can be the other way around.
Suppress by expression will create an expression, usually last in your expression list, that will be either a 1 or 9 . . . more later
 
wait a minute . . . I misread above.
I will try to make a sample part similar to what you described above.
It really isn't too bad.
 
is 60mm the thickess of the part ?
is 25mm the depth of the tap ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor