Jump to content
Sign in to follow this  

"Basic" file operation

Recommended Posts

Help - This seems to be a very simple task ... but I have not been able to figure this out by myself confused.gif

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 ????

Share this post

Link to post

That "sucks" confused.gif

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) ... wink.gif

Share this post

Link to post

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

Share this post

Link to post

Maybee you can jump start me here

I did try the following Appple script


tell application "VectorWorks"


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


doesn?t understand the select message.

Share this post

Link to post

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).

Share this post

Link to post

Any chance of getting this Apple script to work ?? smirk.gif

- 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 ...

Share this post

Link to post

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.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

  • Create New...