Jump to content
Developer Wiki and Function Reference Links ×

Simple access to document color table?

Recommended Posts

We frequently need to access the document color table. Atm we do 


VCOMPtr<VectorWorks::IDocumentColorTable>    doccol( VectorWorks::IID_DocumentColorTable );


But that seems to be time-consuming so it would be great to get a handle/pointer to the current document's color table without having to create a new VCOM ptr each time.


Is this possible?


Thanks for any ideas,


Stefan Bender



Link to comment

Thanks Joshua, I had already thought about something  like that, but I'm not sure if the pointer and the data remain valid if the user switches to another document during the session. So I would prefer something that returns the "current" color table of the active document.

Link to comment

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.

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.

  • Create New...