<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: VectorWorks to ArchiCAD Conversion in Modeling</title>
    <link>https://community.graphisoft.com/t5/Modeling/VectorWorks-to-ArchiCAD-Conversion/m-p/90287#M47145</link>
    <description>Tom,&lt;BR /&gt;
&lt;BR /&gt;
I came across this discussion.  It looks like VectorWorks can be scripted.  I have never done an Automator or Apple Script file.  Should be interesting.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Memento Mori,&lt;BR /&gt;
&lt;BR /&gt;
Know need to apologize as you won't find that capability in Automator yet. You have already guessed the work around which is to use AppleScript. &lt;BR /&gt;
&lt;BR /&gt;
I am not sure whether VectorWorks CAD has an AppleScript dictionary but even if it doesn't it should be possible. If you prefer an Automator workflow then a "Run AppleScript" action could be created such as below.&lt;BR /&gt;
&lt;BR /&gt;
As I don't have access to VectorWorks CAD I am guessing on the name of the application and whether a delay of 2 seconds between each sending of return is enough on your machine. You need to copy this text to a "Run AppleScript" action in Automator. Note that you must replace all of the text and not just that labelled (* Your script goes here *).&lt;BR /&gt;
&lt;BR /&gt;
click here to open this script in your editor&lt;BR /&gt;
on run {input, parameters}&lt;BR /&gt;
	&lt;BR /&gt;
	tell application "System Events"&lt;BR /&gt;
	tell process "VectorWorks CAD"&lt;BR /&gt;
	set frontmost to true&lt;BR /&gt;
	keystroke return&lt;BR /&gt;
	delay 2&lt;BR /&gt;
	keystroke return&lt;BR /&gt;
	delay 2&lt;BR /&gt;
	keystroke return &lt;BR /&gt;
	delay 2&lt;BR /&gt;
	&lt;BR /&gt;
	return input&lt;BR /&gt;
end run&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
PowerBook 12"   Mac OS X (10.4.6)  &lt;BR /&gt;
	&lt;BR /&gt;
Memento Mori &lt;BR /&gt;
&lt;BR /&gt;
Posts: 2 &lt;BR /&gt;
From: Perth, Western Australia&lt;BR /&gt;
Registered: May 23, 2006&lt;BR /&gt;
Re: I feel stupid for asking this, but… &lt;BR /&gt;
Posted: May 30, 2006 12:21 AM     in response to: lc55	  	&lt;BR /&gt;
 		Reply		Email&lt;BR /&gt;
&lt;BR /&gt;
I'm sorry for taking so long to respond, lc55. Thank you for clarifying that an AppleScript is most likely the way to go, but when I tried to use the script you supplied (after changing "VectorWorks CAD" to the application's real name, which is just "VectorWorks"), running my workflow resulted in a "Syntax error":&lt;BR /&gt;
&lt;BR /&gt;
"Expected 'tell', etc. but found command name."&lt;BR /&gt;
&lt;BR /&gt;
It had highlighted the final word in your script, the "run" in "end run".&lt;BR /&gt;
&lt;BR /&gt;
It's not particularly urgent anymore, as while I was waiting for a reply I figured I may as well go ahead and plod through it. So the task itself is done now; by all means feel free either to try again to solve the theory or to leave it and move on. And thanks again for responding. &lt;BR /&gt;
&lt;BR /&gt;
PowerBook G4 (12-inch)   Mac OS X (10.4.6)   256 MB RAM, 867 MHz&lt;BR /&gt;
	&lt;BR /&gt;
lc55 &lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
Posts: 114 &lt;BR /&gt;
From: Burnaby, BC Canada&lt;BR /&gt;
Registered: Mar 12, 2006&lt;BR /&gt;
Re: I feel stupid for asking this, but… &lt;BR /&gt;
Posted: May 30, 2006 7:33 PM     in response to: Memento Mori	  	&lt;BR /&gt;
 		Reply		Email&lt;BR /&gt;
&lt;BR /&gt;
I must have been tired and in a hurry to answer this one as that is a very basic syntax error.&lt;BR /&gt;
&lt;BR /&gt;
Might as well try and finish the solution as you could need it at some point in the future.&lt;BR /&gt;
&lt;BR /&gt;
What needs to be added is two "end tell" statements just before the "return input" statement.&lt;BR /&gt;
&lt;BR /&gt;
Try it if you like with a small test case and, as I mentioned before, you might have to adjust the "delay 2" statement which just delays the execution of the following statement by 2 seconds. If the script runs too fast to get all three returns in then just increase the 2 to something higher until they all appear.</description>
    <pubDate>Thu, 08 Jun 2006 19:08:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-06-08T19:08:54Z</dc:date>
    <item>
      <title>VectorWorks to ArchiCAD Conversion</title>
      <link>https://community.graphisoft.com/t5/Modeling/VectorWorks-to-ArchiCAD-Conversion/m-p/90284#M47142</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Does anyone know of a automated method to:&lt;BR /&gt;
&lt;BR /&gt;
a) Export a large number of Drawings out of VectorWorks to the dxf format?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I am working on MAC OSX - will a scripting program like Automator help?&lt;BR /&gt;
&lt;BR /&gt;
Thanks, &lt;BR /&gt;
&lt;BR /&gt;
Mark&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Jun 2006 17:53:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/VectorWorks-to-ArchiCAD-Conversion/m-p/90284#M47142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-06T17:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: VectorWorks to ArchiCAD Conversion</title>
      <link>https://community.graphisoft.com/t5/Modeling/VectorWorks-to-ArchiCAD-Conversion/m-p/90285#M47143</link>
      <description>I don't know... is Vectorworks scriptable? If so, then Automator would work.&lt;BR /&gt;
&lt;BR /&gt;
I've been looking for a reason to play with my copy of VW... maybe this is it! I'll have a look at it tonight if I get a few minutes.</description>
      <pubDate>Tue, 06 Jun 2006 18:44:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/VectorWorks-to-ArchiCAD-Conversion/m-p/90285#M47143</guid>
      <dc:creator>TomWaltz</dc:creator>
      <dc:date>2006-06-06T18:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: VectorWorks to ArchiCAD Conversion</title>
      <link>https://community.graphisoft.com/t5/Modeling/VectorWorks-to-ArchiCAD-Conversion/m-p/90286#M47144</link>
      <description>Tom,  thanks.  The office is making the switch completely from VectorWorks 11 to AC 9.  I appreciate any heads up from others who have done the same.&lt;BR /&gt;
&lt;BR /&gt;
So far going well, dwg out with mapping of lines to colors seems to work.  I lose fills, but working on it.  The big time crunch is the manual loading and exporting in VectorWorks.  If anyone can advise on that it would be a major time saver.  I have also looked for batch conversion programs which support VectorWorks and dwg.... but to no avail. &lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Thu, 08 Jun 2006 17:25:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/VectorWorks-to-ArchiCAD-Conversion/m-p/90286#M47144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-08T17:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: VectorWorks to ArchiCAD Conversion</title>
      <link>https://community.graphisoft.com/t5/Modeling/VectorWorks-to-ArchiCAD-Conversion/m-p/90287#M47145</link>
      <description>Tom,&lt;BR /&gt;
&lt;BR /&gt;
I came across this discussion.  It looks like VectorWorks can be scripted.  I have never done an Automator or Apple Script file.  Should be interesting.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Memento Mori,&lt;BR /&gt;
&lt;BR /&gt;
Know need to apologize as you won't find that capability in Automator yet. You have already guessed the work around which is to use AppleScript. &lt;BR /&gt;
&lt;BR /&gt;
I am not sure whether VectorWorks CAD has an AppleScript dictionary but even if it doesn't it should be possible. If you prefer an Automator workflow then a "Run AppleScript" action could be created such as below.&lt;BR /&gt;
&lt;BR /&gt;
As I don't have access to VectorWorks CAD I am guessing on the name of the application and whether a delay of 2 seconds between each sending of return is enough on your machine. You need to copy this text to a "Run AppleScript" action in Automator. Note that you must replace all of the text and not just that labelled (* Your script goes here *).&lt;BR /&gt;
&lt;BR /&gt;
click here to open this script in your editor&lt;BR /&gt;
on run {input, parameters}&lt;BR /&gt;
	&lt;BR /&gt;
	tell application "System Events"&lt;BR /&gt;
	tell process "VectorWorks CAD"&lt;BR /&gt;
	set frontmost to true&lt;BR /&gt;
	keystroke return&lt;BR /&gt;
	delay 2&lt;BR /&gt;
	keystroke return&lt;BR /&gt;
	delay 2&lt;BR /&gt;
	keystroke return &lt;BR /&gt;
	delay 2&lt;BR /&gt;
	&lt;BR /&gt;
	return input&lt;BR /&gt;
end run&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
PowerBook 12"   Mac OS X (10.4.6)  &lt;BR /&gt;
	&lt;BR /&gt;
Memento Mori &lt;BR /&gt;
&lt;BR /&gt;
Posts: 2 &lt;BR /&gt;
From: Perth, Western Australia&lt;BR /&gt;
Registered: May 23, 2006&lt;BR /&gt;
Re: I feel stupid for asking this, but… &lt;BR /&gt;
Posted: May 30, 2006 12:21 AM     in response to: lc55	  	&lt;BR /&gt;
 		Reply		Email&lt;BR /&gt;
&lt;BR /&gt;
I'm sorry for taking so long to respond, lc55. Thank you for clarifying that an AppleScript is most likely the way to go, but when I tried to use the script you supplied (after changing "VectorWorks CAD" to the application's real name, which is just "VectorWorks"), running my workflow resulted in a "Syntax error":&lt;BR /&gt;
&lt;BR /&gt;
"Expected 'tell', etc. but found command name."&lt;BR /&gt;
&lt;BR /&gt;
It had highlighted the final word in your script, the "run" in "end run".&lt;BR /&gt;
&lt;BR /&gt;
It's not particularly urgent anymore, as while I was waiting for a reply I figured I may as well go ahead and plod through it. So the task itself is done now; by all means feel free either to try again to solve the theory or to leave it and move on. And thanks again for responding. &lt;BR /&gt;
&lt;BR /&gt;
PowerBook G4 (12-inch)   Mac OS X (10.4.6)   256 MB RAM, 867 MHz&lt;BR /&gt;
	&lt;BR /&gt;
lc55 &lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
Posts: 114 &lt;BR /&gt;
From: Burnaby, BC Canada&lt;BR /&gt;
Registered: Mar 12, 2006&lt;BR /&gt;
Re: I feel stupid for asking this, but… &lt;BR /&gt;
Posted: May 30, 2006 7:33 PM     in response to: Memento Mori	  	&lt;BR /&gt;
 		Reply		Email&lt;BR /&gt;
&lt;BR /&gt;
I must have been tired and in a hurry to answer this one as that is a very basic syntax error.&lt;BR /&gt;
&lt;BR /&gt;
Might as well try and finish the solution as you could need it at some point in the future.&lt;BR /&gt;
&lt;BR /&gt;
What needs to be added is two "end tell" statements just before the "return input" statement.&lt;BR /&gt;
&lt;BR /&gt;
Try it if you like with a small test case and, as I mentioned before, you might have to adjust the "delay 2" statement which just delays the execution of the following statement by 2 seconds. If the script runs too fast to get all three returns in then just increase the 2 to something higher until they all appear.</description>
      <pubDate>Thu, 08 Jun 2006 19:08:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/VectorWorks-to-ArchiCAD-Conversion/m-p/90287#M47145</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-08T19:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: VectorWorks to ArchiCAD Conversion</title>
      <link>https://community.graphisoft.com/t5/Modeling/VectorWorks-to-ArchiCAD-Conversion/m-p/90288#M47146</link>
      <description>Not to hijack the thread (well, maybe), but I'm curious for your reason for switching from Vectorworks...  &lt;BR /&gt;
&lt;BR /&gt;
I'm always interested in hearing people's reason for major changes.</description>
      <pubDate>Thu, 08 Jun 2006 20:35:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/VectorWorks-to-ArchiCAD-Conversion/m-p/90288#M47146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-08T20:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: VectorWorks to ArchiCAD Conversion</title>
      <link>https://community.graphisoft.com/t5/Modeling/VectorWorks-to-ArchiCAD-Conversion/m-p/90289#M47147</link>
      <description>The firm wants to make the move.&lt;BR /&gt;
&lt;BR /&gt;
I want to show them they best way to make the switch withou losing any work.  Then I want to show them how to increase the work flow.</description>
      <pubDate>Thu, 08 Jun 2006 21:09:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/VectorWorks-to-ArchiCAD-Conversion/m-p/90289#M47147</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-08T21:09:33Z</dc:date>
    </item>
  </channel>
</rss>

