Is there a way in .NET to get access to CommandStack?
I was able to grab them through ObjectARX but was wondering if there was a way in .NET.
AcEdCommandStack* pCmdStack = AcEdCommandStack::cast(acrxSysRegistry()->at(ACRX_COMMAND_DOCK));
AcEdCommandIterator *pcmdIter = pCmdStack->iterator();
ofstream commandTxtfile (L"C:\\Testing\\commands.txt");
if (commandTxtfile.is_open())
{
while (!pcmdIter->done())
{
const ACHAR* commandName = pcmdIter->command()->localName();
acutPrintf(L"\n%s", commandName);
wstring ws(commandName);
commandTxtfile.write((char *)ws.c_str(), ws.length() *sizeof(wchar_t));
commandTxtfile << "\n";
pcmdIter->next();
}
delete pcmdIter;
}
commandTxtfile.close();
In case you are intrested attached were the registered commands and I am not sure how safe it is to try all them and besides the couple of MYCOMMANDLOCAL , MYDOCUMENTSPREFIX, etc.... that the arxWizard created & all the Lisp commands(prefixed with C:) that are Express Tools commands, I believe the rest are out of the box.