- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hello, everyone,
I used the controlDefinition("AppProjectGeometryWrapperCmd") to mimic the UI project geometry command to project some sketch entities from sketch A in part component A to sketch B in part component B in an assembly.
the program ran very well. however, at the end of the program after I used the following fragment to exit editing status of sketch B and part component B, Inventor still stayed in the input status of UI project geometry, asking me to “select edge,vertex, work geometry, part face oor sketch geometry to project”.
when I moved the cursor or tried to select something, Inventor crashed. But if I did not select anything with the cursor and just pressed “ESC” to exit, then everything was ok.
ThisApplication.CommandManager.ControlDefinitions.Item("AppProjectGeometryWrapperCmd").Execute
oSketch2Proxy.ExitEdit
oAsmCompDef.ActiveOccurrence.ExitEdit(kExitToPrevious)
it seems that I was missing some instructions to “completely exit editing status”. But what was I missing?
any ideas?
thanks in advance
thanks in advance.
Solved! Go to Solution.