Stefan Bender Posted September 5, 2019 Share Posted September 5, 2019 Hi all, I'm trying to traverse the current workspace to collect information about the tools and menu items. Unfortunately, I have not yet found a way to do so. I tried using IWorkspaceFile interface, but all attempts failed. I tried VCOMPtr<VectorWorks::Workspaces::IWorkspaceFile> pwf(VectorWorks::Workspaces::IID_WorkspaceFile); TXString workspace_name; gSDK->GetCurrentWorkspaceFile(workspace_name); VCOMError e_open = pwf->Open(workspace_name,fsRdPerm); but e_open returned 1 and successive calls trying to access the menu bar also didn't work (null pointer returned by IWorkspaceFile::GetMenuBar). What mistake did I make? How can I get access to the current workspace? Thanks for any help, Stefan Bender Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.