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: 

Trigger Custom Add-Ins Button through iLogic

4 REPLIES 4
Reply
Message 1 of 5
mehatfie
846 Views, 4 Replies

Trigger Custom Add-Ins Button through iLogic

Hi all,

 

I'm also trying to find a way to trigger an "Add-Ins" button that we have customized, and have it pop up on the closing of a form.

 

Please Advise.

 

Thanks

Mitch

4 REPLIES 4
Message 2 of 5

Hi mhatfield,

 

I don't think you can access the button, instead I think you'll want to use AddReference to call the .dll for the addin as in the example below. In this example a .dll for a dialog box is being called.

 

I'm not sure how much that helps, but you might find more information on this by searching the Inventor Customization forum: 

http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120

 

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

 

 

AddReference "myAddin.dll"

  Using dlg As New myAddin.myAddin_Dialog1
  dlg.d0 = d0
  Dim i As Integer = dlg.ShowDialog()
  if i <> vbOK then return
  d0 =  dlg.d0
 End Using
 iLogicVb.UpdateWhenDone = True

 

Message 3 of 5

Thank you for your help Curtis, I will look into seeing if this works and follow the link you provided for further assistance if needed.

 

Thanks

Mitch

Message 4 of 5
mehatfie
in reply to: mehatfie

Hi Curtis,

 

I'm not sure that I actually want to access the button per say, but instead launch the dialog box. I'm not sure if this differs your answer in any way, but I searched the customization forum and found little information.

 

I found out the name off the .dll for the link, and placed it in the AddReference location which pretty well destroyed all of the rest of my code. So I tried applying the project name in which case an error appeared saying that inventor could not find the library.

 

Please advise if anyone can provide further assistance.

 

Thanks

Mitch

Message 5 of 5

Hi Hi mhatfield,

 

I'm not sure I have a much more to offer, but you might create a post on the customization forum asking about this. I'm guessing somone who watches that fourm more, might have a better idea of how to go about this.

 

 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