iLogic Code to flip hole direction in an assembly

iLogic Code to flip hole direction in an assembly

BromanSillito
Advocate Advocate
1,115 Views
5 Replies
Message 1 of 6

iLogic Code to flip hole direction in an assembly

BromanSillito
Advocate
Advocate

I"m creating an assembly that has pipe nozzles that have holes thru one wall. I would like to be able to use iLogic to create a rule that flips the hole direction. For example, the user might have a multi-value parameter box in a form where they could choose "0 deg" or "180 deg". Depending on which one they chose, it would flip the direction of the hole. Can anybody help me out? Here are some pics:

 

HoleFlip1.JPG

 

HoleFlip2.JPG

0 Likes
Accepted solutions (1)
1,116 Views
5 Replies
Replies (5)
Message 2 of 6

mdavis22569
Mentor
Mentor

I could see this as being more a time isssue then.

 


What happens if you have more than 1 hole and only want to rotate 1 or 2 of the holes, not all. It would need a pick option then.

 

Also what if the person models the hole on the outside tangent vs from the center out?

 

You'll also need to do it in part level, unless it's a weldment, and that starts another search and find of the hole for ilogic I would think

 

 

 

 

 

If it's a single hole only. ..not more. Why not make a rotate 180 of the part. Just a suggestion.   

 

 

 


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

0 Likes
Message 3 of 6

BromanSillito
Advocate
Advocate

Thank you for the reply! I only want to flip the 1 hole, and the hole is modeled from the center out. This actually is a weldment. I can't do it on the part level, because it's a content center part & we want to use raw content center parts in the top-level (company policy, I can't change it). My constraint scheme makes it difficult to put the angle mate on this part & flip it 180 degrees. Is there a way to flip the hole in a weldment using some ilogic or vb code?

0 Likes
Message 4 of 6

Anonymous
Not applicable

So if I understand correctly, the standard content centre part has no holes in it & you want to choose which side to add the hole in your weldment assembly?

 

If so, I would model two different holes at assembly level (Hole1 & Hole2) and use the following code to suppress either hole depending on what multivalue param is chosen.

 

If multivalue parameter = "Left" (or whatever you want to call it)

Feature.IsActive("Hole1")= True
Feature.IsActive("Hole2")= False

 

ElseIf multivalue parameter = "Right" (or whatever you want to call it)

Feature.IsActive("Hole1")= False
Feature.IsActive("Hole2")= True

 

End If

0 Likes
Message 5 of 6

BromanSillito
Advocate
Advocate

Thanks! This is actually what I did originally. However, I need to repeat this feature in other places & wanted to reduce the number of features as much as possible. However, if no other option is available I may go with this.

0 Likes
Message 6 of 6

BromanSillito
Advocate
Advocate
Accepted solution

I ended up just creating a hole that could be rotated 360 degrees using a parameter. Easy to change from 0 to 180 degress.

0 Likes