- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good morning everyone,
i'm rewriting in c# some of my very old tools written years ago in vba.
(Doing that using Inventor 2017 and visual studio 2015 )
I'm going quite well with the rewriting but i'm locked with inserting an ipt into an assembly giving to the user the opportunity to choose the displacing point.
(I can add component by adding it to the assembly document ComponentOccurrences, but no user interaction)
In Vba, the way that i used was calling Command manager like this:
Call ThisApplication.CommandManager.PostPrivateEvent(kFileNameEvent, sFile)
Call ThisApplication.CommandManager.StartCommand(kPlaceComponentCommand)
now i'm doing this:
m_InventorApplication.CommandManager.PostPrivateEvent(PrivateEventTypeEnum.kFileNameEvent, sFile);
I can't find in CommandManager something that can replace the StartCommand.
I see in the api doc that there is a CreateDragContext as CommandManager method
I want to ask if:
-anybody knows if however is the right way to give to the user the control of where to place the new component in the assembly
-anybody knows how to do that in c#
thank you in advance
Christian
Solved! Go to Solution.