Issues with programming functional YesNo message box - ilogic

Issues with programming functional YesNo message box - ilogic

Anonymous
Not applicable
1,041 Views
2 Replies
Message 1 of 3

Issues with programming functional YesNo message box - ilogic

Anonymous
Not applicable

Hello!

i'm trying to program a message box that activates a second rule if  "yes" i selected, and disregards the rule if "No" is selected. so far i have this, but no matter what button i press, it generates the PDF.. what exactly am i missing ?

 

SyntaxEditor Code Snippet

i = MessageBox.Show("Save current drawing as PDF?", "Save as", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1)
If vbYes Then iLogicVb.RunRule("auto pdf") 
If vbno 
End If

 

0 Likes
1,042 Views
2 Replies
Replies (2)
Message 2 of 3

Mark.Lancaster
Consultant
Consultant

@Anonymous

 

When dealing with programming, iLogic for Inventor, you should be posting in the Inventor Customization forum for best results.  I will have the moderator relocate your posting there..

 

https://forums.autodesk.com/t5/inventor-customization/bd-p/120

Mark Lancaster


  &  Autodesk Services MarketPlace Provider


Autodesk Inventor Certified Professional & not an Autodesk Employee


Likes is much appreciated if the information I have shared is helpful to you and/or others


Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

0 Likes
Message 3 of 3

GeorgK
Advisor
Advisor


Select Case MsgBox("Save current drawing as PDF?", vbYesNo, "Test")
Case vbYes
    ' Ja
Case vbNo
    ' Nein
End Select

0 Likes