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