Jump to content

Recommended Posts

Posted

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()

Posted

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.

Posted

New to this Inventor and 360. So I think I set up a link correctly?

Give it a go. Thanks for looking!

 

oh and you probably want to know the name of the project. Ipart_test.iam

 

 

http://a360.co/1NZQtEP

Posted

I have the files, but I won't have time to look at them until after lunch today. I'll get back to you.

Posted

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

Posted

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.

Posted

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?

Posted

It depends on the application and design intent you are going after. Each has their benefits.

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...