ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
BGBrendan Greenbury10/01/2012

Hey,

I'm trying to suppress a feature and a Part in an assembly using equations (not in the the same equation), and i keep getting errors.

I've followed the format shown in the Solidworks Help : "pin<2>" = iif ( "overall length"<40, "suppressed" , "unsuppressed"  )

(I've replaced actual part names with "part<1>" for simplicity)

I have another Equation Called "Mullions".  The Equation is:

"part<1>" = iif ("Mullions" = 1,  "unsuppressed" , "suppressed" )

It keeps giving me the error that the equation entered is invalid.


Similarly, when trying to suppress another feature related to this variable but on another part:

"feature@part<1>" = iif ("Mullions" = 1,  "unsuppressed" , "suppressed" )

Gives the error "The Syntax of this equation is incorrect"

I've tried replacing "part<1>" with "part.part" or "part.sldprt", however this gives the same error.

Firstly, is it possible to supress particular features of parts in an assembly based off variables within that assembly?  Other than that, am I missing something important here that is preventing this from working?  I feel like I've looked over it a thousand times and can't see what I'm doing wrong.