Jack_1983 Posted June 8, 2011 Share Posted June 8, 2011 Hi all, First of all, I apologize for opening this topic which is very similar (in terms of context) to my other one opened in the Vectorworks SDK section. So, here's my objective: I want to export a 3ds file by using VS. I know there is nothing like a "Export3ds" function in VS, but I was wondering if there is a way to tell VS to execute the "Export 3ds (3D only)..." menu item found in the "Export" menu of vectorworks. Any help or hint will be very very appreciated. Jack Quote Link to comment
Miguel Barrera Posted June 8, 2011 Share Posted June 8, 2011 PROCEDURE DoMenuTextByName(subMenu:STRING; index:INTEGER); submenu = Menu command name index = 0 for single commands; 1-n for menu groups (chunks) More complete description at: DoMenuTextByName Quote Link to comment
Jack_1983 Posted June 9, 2011 Author Share Posted June 9, 2011 (edited) Thanks Miguel, but unfortunately, I already tried this procedure and it doesn't seem to work. I'm sorry I forgot to mention it in my post. Here's some calls that I tried, maybe I'm missing something and some of you could help me: DoMenutTextByName('Export 3DS (3D Only)...',0); {exact name of the menu item} DoMenuTextByName('Export 3DS',0); DoMenuTextByName('Export',14); {try calling it by referencing with the submenu...} And even more combinations that seemed to me just like wasted prayers... Did anyone of you actually make it work? Thanks again Jack EDIT: I just found the solution (Google was my friend, again, and redirected me just on this very board... ) So, to make it work, you need to use the file name found in the Plug-ins directory of Vectorworks, just like this: DoMenuTextByName('3DS Export',0); Edited June 9, 2011 by Jack_1983 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.