When you want to obtain a pointer to the current front document (the one the user is editing) you could use
InterfacePtrbut when you are inside an action component it may not work, instead you should usedoc(Utils ()->GetFrontDocument(), UseDefaultIID());
InterfacePtrwhere ac is the IActiveContext* passed in the DoAction.doc(ac->GetContextDocument(), UseDefaultIID());
No comments:
Post a Comment