Jump to content

I logic Bunk!


jbaum

Recommended Posts

So... I am trying to get an ilogic assembly to function properly :reallymad:

I have the condenser working exactly the way I want it to. The Oil separator on the other hand, following the same path as the condenser mind you, will change according to the parameters, but then immediately reverts back to the original size. Annoying!

 

Or I thought I could attach the files, didn't work so the following are the codes i am using. Any help or ideas are helpful since look at something for 5 Hours and not see why one part works, and the other does not is completely vexing!

 

This first code is for the Oil Seperator does not work

If Charge_Req >= 3.0 lbforce And Charge_Req

Parameter("Oil Separatoripart:1", "Dia_Inlet") = 0.375 in

Parameter("Oil Separatoripart:1", "Dia_Outlet") = 0.375 in

Parameter("Oil Separatoripart:1", "Diameter") = 3.5 in

Parameter("Oil Separatoripart:1", "Height") = 8.0 in

 

 

Else If Charge_Req > 6.0 lbforce And Charge_Req

Parameter("Oil Separatoripart:1", "Dia_Inlet") = 0.5 in

Parameter("Oil Separatoripart:1", "Dia_Outlet") = 0.5 in

Parameter("Oil Separatoripart:1", "Diameter") = 4.5 in

Parameter("Oil Separatoripart:1", "Height") = 10.0 in

 

Else If Charge_Req > 9.0 lbforce And Charge_Req

Parameter("Oil Separatoripart:1", "Dia_Inlet") = 0.75 in

Parameter("Oil Separatoripart:1", "Dia_Outlet") = 0.75 in

Parameter("Oil Separatoripart:1", "Diameter") = 5.5 in

Parameter("Oil Separatoripart:1", "Height") = 14.0 in

 

End If

 

InventorVb.DocumentUpdate()

 

This code is for the Condenser and works fine

If gpm >= 0.5 gal And gpm

Parameter("Condenser_Wateripart:1", "Dia_Pipe") = 1.0 in

Parameter("Condenser_Wateripart:1", "R_Coil") = 4.0 in

Parameter("Condenser_Wateripart:1", "Rotation") = 2.53 in

 

 

Else If gpm > 1.5 gal And gpm

Parameter("Condenser_Wateripart:1", "Dia_Pipe") = 1.1 in

Parameter("Condenser_Wateripart:1", "R_Coil") = 4.5 in

Parameter("Condenser_Wateripart:1", "Rotation") = 2.78 in

 

 

Else If gpm > 3 gal And gpm

Parameter("Condenser_Wateripart:1", "Dia_Pipe") = 1.2 in

Parameter("Condenser_Wateripart:1", "R_Coil") = 5 in

Parameter("Condenser_Wateripart:1", "Rotation") = 3.03 in

 

End If

 

InventorVb.DocumentUpdate()

 

iLogicVb.RunRule("OIL SEP SIZE")

iLogicVb.RunRule("Warning")

 

InventorVb.DocumentUpdate()

Link to comment
Share on other sites

I would need to see the files to help you on this. Put them in Dropbox or Autodesk 360 and share them here since you cannot attach them.

Link to comment
Share on other sites

You have a rule in your component that is triggered off GPM, consider changing the gpm from the assembly as well so you don't have to code so much. I suppressed the rule in the part and everything seemed to work fine.

SyntaxEditor Code Sni

 

Parameter("Condenser_Wateripart:1", "gpm")=gpm

Link to comment
Share on other sites

Actually you don't even need that part of the code. Just suppress the code in the wateripart and you are good. Conversely you could just leave that code and tell the assembly to only change the gpm in the part file. That should accomplish the same goal.

Link to comment
Share on other sites

Suppressing worked great! Thanks. So a follow up question would be. Can I grab the rule from the part in an assembly? or should I only create the rules in an assembly?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...