Jorgeusa Posted January 18, 2007 Share Posted January 18, 2007 Help - This seems to be a very simple task ... but I have not been able to figure this out by myself I'm trying to "force" vectorworks 12.5 to open/import dxf files automatically in a script ...but at this point, I can not even open a specific file in VectorScript - What's the command to open a specific file with VectorScript ?? . Realizing that there is no way to open dxf direct, the idea was to: A) open a new (empty) file B) force VectorWorks to import a spcified dxf file automatically into the newly created file / window... Any Ideas ???? Quote Link to comment
Jorgeusa Posted January 18, 2007 Author Share Posted January 18, 2007 That "sucks" Is there any way of starting a "batch" conversion dxf to VW drawing automatically without user intervetion ?? The issue is not to keep the file name ... I just need to be able to automatically open the (dxf) file out of Filemaker to be able to look at it... Therfore Copying the file into temp folder (Apple script)- converting it with temp name (VW) - open as VW drawing with temp name would work just fine (Apple Script) ... Quote Link to comment
islandmon Posted January 18, 2007 Share Posted January 18, 2007 Yes ... VW will open both '.dxf' and '.dwg' natively. Therefore, using Applescript "open" with VW , then close v : close an object close reference : The object to close [saving yes/no/ask] : specifies whether or not changes should be saved before closing [saving in alias] : the file in which to save the object ___ DoScript v : Execute a MiniPascal command. Any command that can be executed from the command palette can be sent as a script. DoScript anything : The script to execute Quote Link to comment
Jorgeusa Posted January 18, 2007 Author Share Posted January 18, 2007 Maybee you can jump start me here I did try the following Appple script **** tell application "VectorWorks" activate select file "FilePath" open selection end tell ***** where Filepath = "Kohler:CadDrawings:Drawings:5500:100-5542.dxf" this returns the following "apple script error" VextorWorks got an Error: file "Kohler:CadDrawings:Drawings:5500:100-5542.dxf" doesn?t understand the select message. Quote Link to comment
Petri Posted January 18, 2007 Share Posted January 18, 2007 Is there any way of starting a "batch" conversion dxf to VW drawing automatically without user intervetion ?? Yes, if the files are in one folder (including subfolders). Quote Link to comment
Petri Posted January 18, 2007 Share Posted January 18, 2007 Yes ... Really? You can pass the name into the dialog? Quote Link to comment
Jorgeusa Posted January 18, 2007 Author Share Posted January 18, 2007 Any chance of getting this Apple script to work ?? - If VW native can open DXF (would be a surprise , because it doesn?t let you select .dxf in the open file dialog) then this would be the most elegant way of getting it done ... 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.