Paolo Posted February 25, 2020 Share Posted February 25, 2020 I am trying to use this function FindFile(whichPath, relFilePath; VAR outPath) I am searching for a specific file in Libraries/Defaults, but I want it to be found either in program folder or user folder or any workgroups folder, so the code is: resultBoolean := FindFile(14, 'MoouldingsLib.vwx', outPath); I have tried it in a document script and it works perfectly, but, while transposing this script in an include file (.vss), where I need it to be, it crashes Vectorworks. Any suggestion? Are there alternative work arounds to get the full path of a file inside Libraries/Defaults, independently if this is in a workgroup or user or program folder? Thank you for the help. Quote Link to comment
Paolo Posted February 26, 2020 Author Share Posted February 26, 2020 I should have solved it. I declared outPath as string, while it HAS to be DYNARRAY[] OF CHAR 🙄 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.