Jump to content
twk

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.

 

Cheers,

Tui

Share this post


Link to post

VW is very oriented on the current opened file.

 

From what I know, you can only import and export from/to another document.

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.

 

image.thumb.png.92eefa395e3830cc3bd592748ca46d74.png

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.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

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.

×