<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[PowerShell - Engr]]></title><description><![CDATA[Mechanical and Software Engineering]]></description><link>http://engr.io/</link><generator>Ghost 0.5</generator><lastBuildDate>Tue, 10 Mar 2026 09:41:38 GMT</lastBuildDate><atom:link href="http://engr.io/tag/powershell/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[PowerShell and Creo]]></title><description><![CDATA[<p>PowerShell can be used to talk to COM objects, here is a simple async connection example:</p>

<pre><code>PS C:\temp&gt; $async = New-Object -ComObject pfcls.pfcAsyncConnection
PS C:\temp&gt; $connection = $async.Connect($null,$null,$null,$null)
PS C:\temp&gt; $session = $connection.Session
PS C:\temp&gt; $session | Get-Member
PS C:\temp&gt; $session.CurrentModel.CommonName
</code></pre>

<p>And the output looks like this (a list of all the methods and properties on the session object):</p>

<p><img src="http://engr.io/content/images/2014/12/powershell.png" alt=""></p>

<p>These can then be accessed:</p>

<pre><code>PS C:\temp&gt; $session.CurrentModel.CommonName
prt0001.prt
</code></pre>

<p>This could be handy for automating repetitive tasks, it is quite powerful as it uses the COM object from the VB API. I will show more useful examples at a later date.</p>]]></description><link>http://engr.io/powershell-and-creo/</link><guid isPermaLink="false">ed9fda42-7fd8-4fd7-b340-2ffe84e00a75</guid><category><![CDATA[Creo]]></category><category><![CDATA[PowerShell]]></category><dc:creator><![CDATA[veggielane]]></dc:creator><pubDate>Mon, 08 Dec 2014 20:11:06 GMT</pubDate></item></channel></rss>