<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Structured Authoring &#187; Arbrtext IsoDraw</title>
	<atom:link href="http://structuredauthoring.org/category/arbrtext-isodraw/feed/" rel="self" type="application/rss+xml" />
	<link>http://structuredauthoring.org</link>
	<description>Learning Structured Authoring - Tools and Processes</description>
	<lastBuildDate>Tue, 17 Aug 2010 15:03:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Running a Perl Script in Arbortext IsoDraw</title>
		<link>http://structuredauthoring.org/arbrtext-isodraw/running-a-perl-script-in-arbortext-isodraw/</link>
		<comments>http://structuredauthoring.org/arbrtext-isodraw/running-a-perl-script-in-arbortext-isodraw/#comments</comments>
		<pubDate>Mon, 25 May 2009 20:09:45 +0000</pubDate>
		<dc:creator>douglaspaulwade</dc:creator>
				<category><![CDATA[Arbrtext IsoDraw]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://structuredauthoring.org/?p=171</guid>
		<description><![CDATA[Running a Perl script from inside PTC&#8217;s Arbortext IsoDraw in a Window&#8217;s CMD shell. The example below is very simple but demonstrates what can be done with Perl. First you will need a Perl program. I will use Hello World printed to screen as an example. Place the following code  inside a file called &#8220;hello.pl&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Running a Perl script from inside PTC&#8217;s Arbortext IsoDraw in a Window&#8217;s CMD shell. The example below is very simple but demonstrates what can be done with Perl.</p>
<p>First you will need a Perl program. I will use <strong>Hello World</strong> printed to screen as an example. Place the following code  inside a file called &#8220;<strong>hello.pl</strong>&#8221; and save it at <strong>C:\hello.pl</strong>.</p>
<div class="dean_ch" style="white-space: wrap;"><a href="http://perldoc.perl.org/functions/print.html"><span class="kw3">print</span></a> <span class="st0">&quot;Hello World<span class="es0">\n</span>&quot;</span>;</div>
<p>Second, create a file called &#8220;<strong>hello.ism</strong>&#8220;:</p>
<div class="dean_ch" style="white-space: wrap;">MACRO hello<br />
Launch &quot;C:\WINDOWS\system32\cmd.exe&quot; &quot;/k c:\hello.pl&quot;<br />
END MACRO</div>
<p><span class="postbody">Here is the syntax: Use the keyword <strong>Launch </strong>and the path to Window&#8217;s command shell. The switch (option) <strong>/k</strong> keeps the command window open. You can use <strong>/c</strong> to close the command window, but since we are wanting to see the results printed, we will leave the CMD shell open. Enter the full pathname and Perl file name, (e.g., c:\hello.pl)</span></p>
<p><span class="postbody">Place the &#8220;<strong>hello.ism</strong>&#8221; inside the Macros folder. For example, my installation is: <strong>C:\Program Files\PTC\Arbortext IsoDraw 7.0\Program\Macros&#8221;. </strong></span></p>
<p><span class="postbody">Third, launch IsoDraw. <strong>Start &gt; Program Files &gt; PTC &gt; Arbortext IsoDraw 7.0 &gt; </strong></span><span class="postbody"><strong>Arbortext IsoDraw 7.0</strong></span><span class="postbody"><br />
</span></p>
<p><span class="postbody">To  launch a Perl script from a batch file</span><span class="postbody"> (.ism)</span><span class="postbody">, from the menu: <strong>Macros &gt; hello.</strong><br />
</span></p>
<div id="attachment_173" class="wp-caption alignnone" style="width: 172px"><img class="size-full wp-image-173" title="Hello Macro" src="http://structuredauthoring.org/wp-content/uploads/2009/05/id-hello.png" alt="Hello Macro" width="162" height="147" /><p class="wp-caption-text">Hello Macro</p></div>
<p><span class="postbody">The script will run and print the results in an open CMD shell and print &#8220;<strong>Hello World</strong>&#8220;.</span></p>
<div id="attachment_174" class="wp-caption alignnone" style="width: 309px"><img class="size-full wp-image-174" title="Hello World" src="http://structuredauthoring.org/wp-content/uploads/2009/05/id-cmd.png" alt="Hello World" width="299" height="99" /><p class="wp-caption-text">Perl Results. &quot;Hello World&quot;</p></div>
<p>Again, this is a simple example but it does show how to launch Perl from IsoDraw.</p>
]]></content:encoded>
			<wfw:commentRss>http://structuredauthoring.org/arbrtext-isodraw/running-a-perl-script-in-arbortext-isodraw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
