<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="metricconverter"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Webdings;
        panose-1:5 3 1 2 1 5 9 6 7 3;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:Arial;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.E-postmall18
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.E-postmall19
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.E-postmall20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=SV link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>Hello all,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>Not really sure that I have a problem with win32 Extensions here but
anyway..<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>(Please also note that I&#8217;m not very well versed with win32 nor
COM, I merely use it when<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>I develop Python apps that use COM objects.)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>I try to call a method on the Solid Edge API, which provides a COM
interface.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>In general, things work nicely, Thanks Mark for supplying win32
Extensions :o)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>The specific call expects two parameters by reference and these
parameters<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>shall, upon return, contain the sought data.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>Usually, I get the data as a returned tuple but this specific call
instead raise an exception(!)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div style='border-top:solid windowtext 1.0pt;border-left:none;border-bottom:
solid windowtext 1.0pt;border-right:none;padding:1.0pt 0cm 1.0pt 0cm'>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>&gt;&gt;&gt; first = 1.0<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>&gt;&gt;&gt; scnd = 1.0<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>&gt;&gt;&gt;
se.ActiveDocument.Sheets(3).ComplexStrings2d(10).GetCentroid(x=first, y=scnd)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>Traceback (most recent call last):<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>&nbsp; File &quot;&lt;pyshell#7&gt;&quot;, line <st1:metricconverter
ProductID="1, in" w:st="on">1, in</st1:metricconverter> &lt;module&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>&nbsp;&nbsp;&nbsp;
se.ActiveDocument.Sheets(3).ComplexStrings2d(10).GetCentroid(x=first, y=scnd)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>&nbsp; File
&quot;C:\Python25\lib\site-packages\win32com\gen_py\943AC5C6-F4DB-11D1-BE00-080036B4D502x0x1x0.py&quot;,
line <st1:metricconverter ProductID="3088, in" w:st="on">3088, in</st1:metricconverter>
GetCentroid<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>&nbsp;&nbsp;&nbsp; , y)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>&nbsp; File
&quot;C:\Python25\lib\site-packages\win32com\client\__init__.py&quot;, line <st1:metricconverter
ProductID="448, in" w:st="on">448, in</st1:metricconverter> _ApplyTypes_<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>&nbsp;&nbsp;&nbsp; dispid, 0, wFlags, retType, argTypes, *args),<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>com_error: (-2147417851, 'The server threw an exception.', None, None)<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>Question: Where should I really look? Is it win32 Extensions or is it
Solid Edge?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-AU
style='font-size:10.0pt;color:navy'>Thought: The COM error states that the *<b><span
style='font-weight:bold'>server</span></b>* threw exception so look there BUT
the call works from VB..<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>Using Python 2.5.1, pywin32-210, SolidEdge v18<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>PS.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>In case someone out there happens to know about Solid Edge, the call is
object.GetCentroid(x, y) which is expected to return coordinates<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>for the object. The VB call looks like <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
11.0pt'>Dim dblx As Double<br>
Dim dbly As Double<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
11.0pt'>Call objCompStrn1.GetCentroid(x:=dblx, y:=dbly)</span></font><font
size=2><span lang=EN-AU style='font-size:10.0pt'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'>DS.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p><font size=3 color=blue face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt;color:blue'>Maria&nbsp;Reinhammar<br>
Software Engineer<o:p></o:p></span></font></p>

<p><u1:place u2:st="on"><u1:City u2:st="on"><st1:place w:st="on"><st1:City
 w:st="on"><font size=3 color=blue face="Times New Roman"><span lang=EN-GB
  style='font-size:12.0pt;color:blue'>Swisslog-Accalon</span></font></st1:City><font
 color=blue><span lang=EN-GB style='color:blue'></u1:City> <u1:State u2:st="on"><st1:State
 w:st="on">AB</u1:State></st1:State></span></font></st1:place></st1:place><font
color=blue><span lang=EN-GB style='color:blue'><o:p></o:p></span></font></p>

<p><u1:address u2:st="on"><u1:Street u2:st="on"><st1:address w:st="on"><st1:address
 w:st="on"><st1:Street w:st="on"><font size=3 color=blue face="Times New Roman"><span
   lang=EN-GB style='font-size:12.0pt;color:blue'>Box</span></font></st1:Street></st1:address><font
 color=blue><span lang=EN-GB style='color:blue'></u1:Street> 135</span></font></st1:address></st1:address><font
color=blue><span lang=EN-GB style='color:blue'>&nbsp;<br>
SE590 10 Boxholm <o:p></o:p></span></font></p>

<p><u1:country-region u2:st="on"><u1:place u2:st="on"><st1:place w:st="on"><st1:country-region
 w:st="on"><font size=3 color=blue face="Times New Roman"><span lang=EN-GB
  style='font-size:12.0pt;color:blue'>Sweden</span></font></st1:country-region></st1:place></u1:place></u1:country-region><font
color=blue><span lang=EN-GB style='color:blue'><o:p></o:p></span></font></p>

<p><font size=4 color=blue face=Webdings><span style='font-size:13.5pt;
font-family:Webdings;color:blue'>&Eacute;</span></font><font size=2 color=blue><span
lang=EN-GB style='font-size:10.0pt;color:blue'> Phone:&nbsp;&nbsp; +46
(0)142&nbsp;555 00 <br>
</span></font><font size=4 color=blue face=Webdings><span style='font-size:
13.5pt;font-family:Webdings;color:blue'>&Eacute;</span></font><font size=2
color=blue><span style='font-size:10.0pt;color:blue'> <span lang=EN-GB>Direct:&nbsp;&nbsp;&nbsp;
+46 (0)142&nbsp;556 08<br>
</span></span></font><font size=4 color=blue face=Webdings><span
style='font-size:13.5pt;font-family:Webdings;color:blue'>&Ecirc;</span></font><font
size=2 color=blue><span lang=EN-GB style='font-size:10.0pt;color:blue'>
Fax:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +46 (0)142&nbsp;555 55 <br>
</span></font><font size=4 color=blue face=Webdings><span style='font-size:
13.5pt;font-family:Webdings;color:blue'>&Egrave;</span></font><font size=2
color=blue><span style='font-size:10.0pt;color:blue'> </span></font><font
size=2 color=blue><span lang=EN-GB style='font-size:10.0pt;color:blue'><u1:City u2:st="on"><u1:place u2:st="on">Mobile</u1:place></u1:City>:&nbsp;&nbsp;
+46 (0)703 99 84 65&nbsp;<br>
</span></font><font size=4 color=blue face=Wingdings><span style='font-size:
13.5pt;font-family:Wingdings;color:blue'>y</span></font><font size=2
color=blue><span lang=EN-GB style='font-size:10.0pt;color:blue'>
Email:&nbsp;&nbsp;&nbsp; </span></font><font size=2 color=blue><span
style='font-size:10.0pt;color:blue'><a
href="BLOCKED::mailto:Maria.Reinhammar@swisslog-accalon.com"
title="mailto:Maria.Reinhammar@swisslog-accalon.com"><span lang=EN-GB>Maria.Reinhammar@swisslog-accalon.com</span></a></span></font><font
size=2 color=blue><span lang=EN-GB style='font-size:10.0pt;color:blue'> <br>
</span></font><font size=4 color=blue face=Webdings><span style='font-size:
13.5pt;font-family:Webdings;color:blue'>&uuml;</span></font><font size=2
color=blue><span lang=EN-GB style='font-size:10.0pt;color:blue'>
Web:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<u> </u></span></font><a
href="BLOCKED::http://www.swisslog-accalon.com"
title="http://www.swisslog-accalon.com"><font size=2
title="http://www.swisslog-accalon.com"><span
title="http://www.swisslog-accalon.com"><span lang=EN-GB style='font-size:10.0pt'>http://www.swisslog-accalon.com</span></span></font></a><u><font
size=2 color=blue><span style='font-size:10.0pt;color:blue'> </span></font></u><font
size=2 color=blue><span lang=EN-GB style='font-size:10.0pt;color:blue'><br>
</span></font><font size=4 color=blue face=Webdings><span style='font-size:
13.5pt;font-family:Webdings;color:blue'>&sup2;</span></font><font size=2
color=blue><span lang=EN-GB style='font-size:10.0pt;color:blue'>Skype:&nbsp;&nbsp;&nbsp;
accalonmar<o:p></o:p></span></font></p>

<p><font size=3 color=blue face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt;color:blue'>************************************************************************************************<o:p></o:p></span></font></p>

<p><font size=3 color=blue face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt;color:blue'>CONFIDENTIALITY AND DISCLAIMER<o:p></o:p></span></font></p>

<p><font size=3 color=blue face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt;color:blue'>This e-mail and its attachments are
intended for the above named addressee(s) only and may be confidential. If the
mail has come to you in error please reply to this e-mail and highlight the
error. In addition, we kindly ask you to destroy the Mail. <br>
<br>
Please be aware that we disclaim all liability for the integrity or for the
accuracy of this Mail, as transmissions via Internet are not error free
communications medium.&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-AU style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>