twk Posted January 18, 2019 Share Posted January 18, 2019 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 Quote Link to comment
Nicolas Goutte Posted January 18, 2019 Share Posted January 18, 2019 VW is very oriented on the current opened file. From what I know, you can only import and export from/to another document. Quote Link to comment
JBenghiat Posted January 21, 2019 Share Posted January 21, 2019 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). Quote Link to comment
twk Posted January 21, 2019 Author Share Posted January 21, 2019 (edited) 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 January 21, 2019 by twk Quote Link to comment
JBenghiat Posted January 21, 2019 Share Posted January 21, 2019 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. 1 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.