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 Rule to change custom iproperty

1 REPLY 1
SOLVED
Reply
Message 1 of 2
dclunie
2544 Views, 1 Reply

Ilogic Rule to change custom iproperty

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
 
Tags (1)
1 REPLY 1
Message 2 of 2
Curtis_Waguespack
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

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

Post to forums  

Autodesk Design & Make Report