Jump to content
Stefan Bender

How to access current workspace?

Recommended Posts

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

Share this post


Link to post

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...