Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic error

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
200 Views, 3 Replies

iLogic error

I have used iLogic programming in one of my sub-assemblies. Once I delete any of the parts, the rule shows an error. Is there any method by which I can bypass these errors ?

 

Ankit

3 REPLIES 3
Message 2 of 4
mrattray
in reply to: Anonymous

We need more information than this to help you. Can you post the code form your rule and an explanation of what it does?
Mike (not Matt) Rattray

Message 3 of 4
Anonymous
in reply to: Anonymous

Below mentioned is sample code:

 

Parameter("3842509175_45X45XL1 Al_Profile_45x45-T1-L1:1", "Profile_Length") = Enclosure_Height-20   /assigns length based on height

Parameter("3842509175_45X45XL2 Al_Profile_45x45-T1-L2:1", "Profile_Length") = Enclosure_Width-90    /assigns length based on width

Parameter("3842509175_45X45XL3 Al_Profile_45x45-T1-L3:1", "Profile_Length") = Enclosure_Depth-90    /assigns length based on depth

Parameter("3842509178_30X30XL1 Al_Profile_30x30-T1-L1:1", "Profile_Length")=(Enclosure_Height-50-11-2)

Parameter("3842509178_30X30XL2 Al_Profile_30x30-T1-L2:1", "Profile_Length") = ((Parameter("3842509175_45X45XL3 Al_Profile_45x45-T1-L3:1", "Profile_Length"))/2)-60-7.5

 

The above code assigns length parameters based on height, width and depth entered by user. So here once the user deletes any of the part, say '3842509175_45X45XL1 Al_Profile_45x45-T1-L1:1' this part, it shows an error everytime the rule runs. Any solution for this ?

Message 4 of 4
pcrawley
in reply to: Anonymous

Not quite sure what you are expecting it to do.  Take a look at the first line:

 

Parameter("3842509175_45X45XL1 Al_Profile_45x45-T1-L1:1", "Profile_Length") = Enclosure_Height-20   /assigns length based on height

 

It specifically refers to 3842509175_45X45XL1 Al_Profile_45x45-T1-L1:1 which is the first instance of a part in your assembly.  If you delete this part, what do you want this line of code to do?  

 

After deleting the part and running the code, it's going to try and do something with a parameter in a part that doesn't exist.  

It's going to let you know that you've done something to upset it 😉

 

Maybe you can provide some more detail about the code and what you are trying to achieve?  That might help someone suggest an alternative method.

Peter

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report