Jump to content

Accessing Object Data in another file

Recommended Posts

Greetings and happy new year all,


I was wondering if there was anyway to access plugin data from a file other than the active one?


Wanting to read in data from a plugin object that resides in another file.




Share this post

Link to post

You can extract data from a resource in another file, but not an object. If you create a reference to the other file and a referenced viewport, you should be able to read the data via the viewport. 


The only other option would be to have the file write data to an external data source (xml, text, sql, etc). 

Share this post

Link to post

Wondering how 2019 does it with titleblock data being able to read TB info from another file?


Could not find any related functions for opening one file in another file in the DevWiki or the SDK files.



Edited by twk

Share this post

Link to post

I don't know 100% the process, but a lot of the title block data gets written to a hidden record format, and I imagine this is what gets read.  (Essentially writing to the record format's defaults).  You can browse the file's resource list, import the record format, read the data, then delete.

  • Like 1

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.

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...