I'm trying to do the exact same thing but I'm using Inventor Professional 2014 so following these instructions aren't working for me since its been so many years. Or maybe I'm just doing it wrong. When I go to Tools both Macro and VBA Editor are there. Not Macro then VBA Editor under it. So I'm not sure the order. I can create the macro and run it and my message box pops up only when I tell it to run but I can't get it to pop-up automatically when I open the .ipt file. I'm very unfamiliar with macros and VBA.
Thanks!
V
@Anonymous wrote:I'm trying to do the exact same thing but I'm using Inventor Professional 2014 so following these instructions aren't working for me since its been so many years. Or maybe I'm just doing it wrong. When I go to Tools both Macro and VBA Editor are there. Not Macro then VBA Editor under it. So I'm not sure the order. I can create the macro and run it and my message box pops up only when I tell it to run but I can't get it to pop-up automatically when I open the .ipt file. I'm very unfamiliar with macros and VBA.
Thanks!
V
Hi Guys,
i want to implemet something like this in Invetor 2022. I need when I create a new IDW to have a fenster that will pop up and say something like: " Please create this drawing accordin to the protocoll" . I didn't find out until know how to do this with Inventor 2022, maybe you can help me?
Thanks,
Victor
@v.ibanescu wrote:
Hi Guys,
i want to implemet something like this in Invetor 2022. I need when I create a new IDW to have a fenster that will pop up and say something like: " Please create this drawing accordin to the protocoll" . I didn't find out until know how to do this with Inventor 2022, maybe you can help me?
Thanks,
Victor
@v.ibanescu.. You can easily do this with ilogic now.
1-In your drawing click on the + next to the "model" tab of the model browser and select "ilogic" to open that browser..
2-On the "Rules" tab of the ilogic browser right click in the open area below and select "Add Rule" and give your rule a name.
3- Paste the following into the right hand section.
MessageBox.Show("Please create this drawing according to the protocol.", "Protocol Alert")
4-Select "Save and Run" to save it and see what will happen.
5-Go to the "Manage" ribbon and in the "iLogic" section press the "Event Triggers" button.
6-Switch to the "Drawings" tab of that dialog box and drag your rule from the left hand column right below the "After Open Document" event and press OK.
7-Now anytime you open a drawing your rule should run automatically and show that message.
Can't find what you're looking for? Ask the community or share your knowledge.