Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to call InvalidOperationException()

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
ngnam1988
163 Views, 2 Replies

How to call InvalidOperationException()

Dears,

Could you help me how to call this box with API?

ngnam1988_0-1705998739039.png

I'm trying with this code, but didn't get the result.

Throw New InvalidOperationException("")

 Thanks!

Tags (2)
2 REPLIES 2
Message 2 of 3
JelteDeJong
in reply to: ngnam1988

try this:

Dim errorManager = ThisApplication.ErrorManager
errorManager.AddMessage("message here", True)
errorManager.Show("Your title here", False, False)

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

Message 3 of 3
ngnam1988
in reply to: ngnam1988

Thanks @JelteDeJong 
I got it!

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

Post to forums  

Autodesk Design & Make Report