iLogic rule to change parameter to a driven dimension

iLogic rule to change parameter to a driven dimension

Anonymous
Not applicable
578 Views
2 Replies
Message 1 of 3

iLogic rule to change parameter to a driven dimension

Anonymous
Not applicable

Hi everyone,

 

I'd like to create what seems to be a fairly straightforward rule. Here is my code so far:

 

If hinge = 0 Then
d380 = 235mm AND "is a driving dimension"
d430 "is a driven dimension" ElseIf hinge = 1 Then
d380 "is a driven dimension"
d430 = 235mm AND "is a driving dimension"

End If  

See below image for some additional info. I basically want the hole to move to the left side of the part when hinge=1 & the right side of the part when hinge=0iLogic driven dimension.JPG

 

Regards,

Craig

0 Likes
Accepted solutions (1)
579 Views
2 Replies
Replies (2)
Message 2 of 3

BrandonBG
Collaborator
Collaborator
Accepted solution

Why not just draw both holes and suppress one when hinge=1 and suppress the other when hinge=0?

 

You don't need to write a rule for this. Right-click on the hole feature in the browser and you can set up suppress/unsuppress based on the value of hinge.

 

BrandonBG

0 Likes
Message 3 of 3

Anonymous
Not applicable

Thanks Brandon, that's a lot simpler Smiley Happy

0 Likes