Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I'm creating an addin in c#.
I want to create a program that creates a ribbon button and runs iLogic when it is clicked.
This is my source.
_buttonDefinition.OnExecute += delegate(NameValueMap context)
{
var addin = m_inventorApplication.ApplicationAddIns.get_ItemById(AddInClientID);
iLogicAutomation logic = addin.Automation as iLogicAutomation;
logic.RunRule(m_inventorApplication.ActiveDocument, "Hello");
};
In the above source code, addin.Automation is null in line 4.
"Hello" iLogic exists in the document.
Help me!!
Is my method wrong or is there a different way to access iLogic in Inventor 2024?
Solved! Go to Solution.