<?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: AcDbRegion::createFromCurves error aEs = eInvalidInput (3) in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/acdbregion-createfromcurves-error-aes-einvalidinput-3/m-p/8642317#M5664</link>
    <description>&lt;P&gt;&lt;SPAN&gt;The problem was that the straight lines did not lie in the same plane. I had to break the surface that forms these lines into triangles and connect the vertices of ACGePoint3D with a closed polyline. Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2019 09:46:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-07T09:46:25Z</dc:date>
    <item>
      <title>AcDbRegion::createFromCurves error aEs = eInvalidInput (3)</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbregion-createfromcurves-error-aes-einvalidinput-3/m-p/8629847#M5662</link>
      <description>&lt;P&gt;Hello, I have problem at function: AcDbRegion::createFromCurves.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When trying to build a region formed by three lines, I get the error eInvalidInput (3) . Perhaps the order of adding these lines to the AcDbVoidPtrArray curveArray is important; or maybe it depends on the direction of the normal? What conditions must be met for this function to generate a region?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 10:22:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbregion-createfromcurves-error-aes-einvalidinput-3/m-p/8629847#M5662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-01T10:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: AcDbRegion::createFromCurves error aEs = eInvalidInput (3)</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbregion-createfromcurves-error-aes-einvalidinput-3/m-p/8637321#M5663</link>
      <description>&lt;P&gt;Can you post your code or a DWG with the lines you are use?&lt;/P&gt;
&lt;P&gt;What kind of "lines" do you use? They must be derived from &lt;FONT face="courier new,courier"&gt;AcDbEntity&lt;/FONT&gt;. So &lt;FONT face="courier new,courier"&gt;AcDbLine&lt;/FONT&gt; is ok, but not &lt;FONT face="courier new,courier"&gt;AcGeLine2d&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;All curves must be in the same plane. I always use curves within the XY-plane with Z=0.&lt;/P&gt;
&lt;P&gt;The curves must not intersect. Their endpoints must match.&lt;/P&gt;
&lt;P&gt;If you try to create a region from three lines with startpoints sp1,sp2,sp3 and endpoints ep1,ep2,ep3 than try to make sure that: &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[ep1 = sp2]----[ep2=sp3]----[ep3=sp1]&amp;nbsp; and not for example&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[ep1 = ep2]----[2p2=sp3]----[ep3=sp1]. So all curves run in the same order. But I'm not sure whether this is required.&lt;/P&gt;
&lt;P&gt;It could help to set the lines normals to the plane normal&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; norm=(l1-&amp;gt;endPoint()-l1(startPoint()).crossProduct(l2-&amp;gt;endPoint()-l2(startPoint());&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Maybe it is easier to create the region from a closed &lt;FONT face="courier new,courier"&gt;AcDbPolyline&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;If the curves are DB resident, they must be opened for read &lt;U&gt;only&lt;/U&gt;, not for write.&lt;/P&gt;
&lt;P&gt;It is also possible to create a region from non-DB-resident curves.&lt;/P&gt;
&lt;P&gt;The docs say that a return value !=eOk does NOT imply a "total failure" - the returned AcDbVoidPtrArray might be non-empty.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 14:14:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbregion-createfromcurves-error-aes-einvalidinput-3/m-p/8637321#M5663</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2019-03-05T14:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: AcDbRegion::createFromCurves error aEs = eInvalidInput (3)</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbregion-createfromcurves-error-aes-einvalidinput-3/m-p/8642317#M5664</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The problem was that the straight lines did not lie in the same plane. I had to break the surface that forms these lines into triangles and connect the vertices of ACGePoint3D with a closed polyline. Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 09:46:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbregion-createfromcurves-error-aes-einvalidinput-3/m-p/8642317#M5664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T09:46:25Z</dc:date>
    </item>
  </channel>
</rss>

