J. Miller Posted June 22, 2017 Share Posted June 22, 2017 Is there a way to open a standard "open file " window to allow a use to select a file to be used as a resource list. I am in the process of a large symbol data update. i want to be able to open a "before update" file and have the user update the file with the newer symbol data base on a resource list created from a selected file. I don't see the need to create a resource list from all the file in the favorites folder, just one selected by the user. I could hard code this, but would prefer an file choice just in case this project goes beyond the one set of symbols (which it probably will). I just cant seem to find an open document procedure/ function anywhere. Thanks, Jeff Quote Link to comment
JBenghiat Posted June 22, 2017 Share Posted June 22, 2017 Hi Jeff, GetFileN() will present a dialog for choosing a file and return the path. http://developer.vectorworks.net/index.php/VS:GetFileN You don't have to actually open the file -- use BuildResourceListN() or BuildResourceListN2() to build a resource list from the returned file path. -Josh Quote Link to comment
J. Miller Posted June 22, 2017 Author Share Posted June 22, 2017 I just found that, was hung up with the mask filter, but it's working now "You don't have to actually open the file -- use BuildResourceListN() " - that was my plan Thanks Jeff 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.