<?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: safe arrays in com automation in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/safe-arrays-in-com-automation/m-p/884548#M76360</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;IMG src="https://community.intel.com/file/6745" /&gt; &lt;STRONG&gt;Les_Neilson:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;IMG src="https://community.intel.com/file/6745" /&gt; &lt;STRONG&gt;kooka:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt; 
&lt;P&gt;do icol=0,2&lt;BR /&gt;IRET=safearrayputelement(pStartPointSA,0,loc(bcoordinate))&lt;BR /&gt;end do&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;In the loop should the ",0,loc" be ",icol,loc" ?&lt;/P&gt;
&lt;P&gt;Les&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;yes, another transcription error, the original code was&lt;/P&gt;
&lt;P&gt;do icol=0,2&lt;BR /&gt;IRET=safearrayputelement(pStartPointSA,icol,loc(bcoordinate))&lt;BR /&gt;end do&lt;/P&gt;
&lt;P&gt;I sould pos again, sorry&lt;/P&gt;</description>
    <pubDate>Thu, 18 Sep 2008 15:37:01 GMT</pubDate>
    <dc:creator>kooka</dc:creator>
    <dc:date>2008-09-18T15:37:01Z</dc:date>
    <item>
      <title>safe arrays in com automation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/safe-arrays-in-com-automation/m-p/884545#M76357</link>
      <description>&lt;P&gt;Hi, im a newby in this topic of com automation, im trying to make a draw in Autocad via a third program. I'm able to connect with autocad and also draw a line, the point is thati don't draw the line iwant. I need two 3d real*8 points ie. p1=(/0.0,0.0,0.0/), p2= (/100.100,0.0,0.0/)representing the start and end of a line. I make that pionts via safearraycreate. But when i send the command to autocad, i only can create a supersmall line, of distance=0. I think the points are not being well created in safearray but i dont know how to view the array values because is a pointer, Do anybody knows?.&lt;/P&gt;
&lt;P&gt;Thanks!!!&lt;/P&gt;
&lt;P&gt;This is the code&lt;/P&gt;
&lt;P&gt;sabounds%lbound=0&lt;/P&gt;
&lt;P&gt;sabounds%extent=2&lt;/P&gt;
&lt;P&gt;pstartpointSA= safearraycreate(vt_r8,nDimCON,saBounds)&lt;/P&gt;
&lt;P&gt;pendpointSA= safearraycreate(vt_r8,nDimCON,saBounds)&lt;/P&gt;
&lt;P&gt;bcoordinate=0.0&lt;/P&gt;
&lt;P&gt;do icol=0,2&lt;/P&gt;
&lt;P&gt;IRET=safearrayputelement(pStartPointSA,0,loc(bcoordinate))&lt;/P&gt;
&lt;P&gt;end do&lt;/P&gt;
&lt;P&gt;bcoordinate=100.0&lt;/P&gt;
&lt;P&gt;IRET=safearrayputelement(pEndPointSA,0,loc(bcoordinate))&lt;/P&gt;
&lt;P&gt;bcoordinate=100.0&lt;/P&gt;
&lt;P&gt;IRET=safearrayputelement(pEndPointSA,1,loc(bcoordinate))&lt;/P&gt;
&lt;P&gt;bcoordinate=0.0&lt;/P&gt;
&lt;P&gt;IRET=safearrayputelement(pEndPointSA,2,loc(bcoordinate))&lt;/P&gt;
&lt;P&gt;! 5 indidcates real*8 nubers for autocad internal conversion to variant types&lt;/P&gt;
&lt;P&gt;istatus= $iacadUtility_createtypedarray(putil,startpoint,5,pstartpointSA)&lt;/P&gt;
&lt;P&gt;istatus= $iacadUtility_createtypedarray(putil,endpoint,5,pendpointSA)&lt;/P&gt;
&lt;P&gt;istatus= $iacadblock_addline(pMspace, Startpoint,endpoint, pline)&lt;/P&gt;
&lt;P&gt;iret=safearraydestroy(pstartpointSA)&lt;/P&gt;
&lt;P&gt;iret=safearraydestroy(pendpointSA)&lt;/P&gt;
&lt;P&gt;.......&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2008 19:46:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/safe-arrays-in-com-automation/m-p/884545#M76357</guid>
      <dc:creator>kooka</dc:creator>
      <dc:date>2008-09-17T19:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: safe arrays in com automation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/safe-arrays-in-com-automation/m-p/884546#M76358</link>
      <description>&lt;P&gt;oh, i made a mistake, in this line:&lt;/P&gt;
&lt;P&gt;sabounds%extent=2&lt;/P&gt;
&lt;P&gt;i mean&lt;/P&gt;
&lt;P&gt;sabounds%extent=3&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2008 21:12:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/safe-arrays-in-com-automation/m-p/884546#M76358</guid>
      <dc:creator>kooka</dc:creator>
      <dc:date>2008-09-17T21:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: safe arrays in com automation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/safe-arrays-in-com-automation/m-p/884547#M76359</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;IMG src="https://community.intel.com/file/6745" /&gt; &lt;STRONG&gt;kooka:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;
&lt;P&gt;do icol=0,2&lt;BR /&gt;IRET=safearrayputelement(pStartPointSA,0,loc(bcoordinate))&lt;BR /&gt;end do&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;In the loop should the ",0,loc" be ",icol,loc" ?&lt;/P&gt;
&lt;P&gt;Les&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2008 08:11:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/safe-arrays-in-com-automation/m-p/884547#M76359</guid>
      <dc:creator>Les_Neilson</dc:creator>
      <dc:date>2008-09-18T08:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: safe arrays in com automation</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/safe-arrays-in-com-automation/m-p/884548#M76360</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;IMG src="https://community.intel.com/file/6745" /&gt; &lt;STRONG&gt;Les_Neilson:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;IMG src="https://community.intel.com/file/6745" /&gt; &lt;STRONG&gt;kooka:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt; 
&lt;P&gt;do icol=0,2&lt;BR /&gt;IRET=safearrayputelement(pStartPointSA,0,loc(bcoordinate))&lt;BR /&gt;end do&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;In the loop should the ",0,loc" be ",icol,loc" ?&lt;/P&gt;
&lt;P&gt;Les&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;yes, another transcription error, the original code was&lt;/P&gt;
&lt;P&gt;do icol=0,2&lt;BR /&gt;IRET=safearrayputelement(pStartPointSA,icol,loc(bcoordinate))&lt;BR /&gt;end do&lt;/P&gt;
&lt;P&gt;I sould pos again, sorry&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2008 15:37:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/safe-arrays-in-com-automation/m-p/884548#M76360</guid>
      <dc:creator>kooka</dc:creator>
      <dc:date>2008-09-18T15:37:01Z</dc:date>
    </item>
  </channel>
</rss>

