Jump to content
Developer Wiki and Function Reference Links ×

"Basic" file operation


Jorgeusa

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

Link to comment

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

Link to comment

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

Link to comment

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.

Link to comment

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.

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

×
×
  • Create New...