Inventor General Discussion

Inventor General Discussion

Reply
Valued Contributor
dclunie
Posts: 70
Registered: ‎03-26-2008
Message 1 of 2 (755 Views)
Accepted Solution

Ilogic Rule to change custom iproperty

755 Views, 1 Replies
12-11-2012 12:54 PM

Hi 

 

I am after help on writing part of rule for ilogic,i need the rule to fill out a custom property with information for me

 

I have a part that has 2 parameters

 

  1. parameter 1 = Frontplanangle
  2. parameter 2 = Endplanangle

Custom property

 

iProperties.Value("Custom", "DESC2") =

 

 

I need the rule to examine both parameters and if both angles = 0 then DESC2 = ""
And if any parameter >0 then

iProperties.Value("Custom", "DESC2") = bevel/


Regards

Dave
 

Hi dclunie,

 

Something along these lines should work:

 

If Frontplanangle = 0 And Endplanangle = 0 Then
iProperties.Value("Custom", "DESC2") = ""
ElseIf Frontplanangle > 0 Or Endplanangle > 0
iProperties.Value("Custom", "DESC2") ="bevel/"
End If
MessageBox.Show("DESC2 = " & iProperties.Value("Custom", "DESC2"), "iLogic")

 I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

*Expert Elite*
Curtis_Waguespack
Posts: 2,931
Registered: ‎03-08-2006
Message 2 of 2 (749 Views)

Re: Ilogic Rule to change custom iproperty

12-11-2012 01:17 PM in reply to: dclunie

Hi dclunie,

 

Something along these lines should work:

 

If Frontplanangle = 0 And Endplanangle = 0 Then
iProperties.Value("Custom", "DESC2") = ""
ElseIf Frontplanangle > 0 Or Endplanangle > 0 
iProperties.Value("Custom", "DESC2") ="bevel/"
End If
MessageBox.Show("DESC2 = " & iProperties.Value("Custom", "DESC2"), "iLogic")

 I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com



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





Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.