<?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: Getting Entity dxf group 0 in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/getting-entity-dxf-group-0/m-p/316540#M37549</link>
    <description>The simplest way is to use an AcDbLine pointer as the first argument to&lt;BR /&gt;
acdbOpenObject() without casting the pointer to anything else.&lt;BR /&gt;
&lt;BR /&gt;
    AcDbLine *pLine;&lt;BR /&gt;
    acdbOpenObject(pLine, eId, AcDb::kForRead);&lt;BR /&gt;
&lt;BR /&gt;
  That way you'll end up using a version of acdbOpenObject that's&lt;BR /&gt;
specifically for AcDbLines and won't open anything else (it will return&lt;BR /&gt;
Acad::eNotThatKindOfClass if the object is not an AcDbLine).&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"emdepaola" &lt;EMDEPAOLA&gt; wrote in message&lt;BR /&gt;
news:D9E23CFA860F938FA05F14D892300EC0@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Sorry for such a basic question but I'm just beginning with the&lt;BR /&gt;
ObjectARX -&lt;BR /&gt;
&amp;gt; everything I've been doing so far is with LISP.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Here is the element (along with it's xdata) I'm selecting:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ((-1 . &lt;ENTITY ="" 40075510=""&gt;) (0 . "LINE") (330 . &lt;ENTITY =""&gt;&lt;BR /&gt;
4006c558&amp;gt;)&lt;BR /&gt;
&amp;gt; (5&lt;BR /&gt;
&amp;gt; . "988A") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "BEAM") (100&lt;BR /&gt;
.&lt;BR /&gt;
&amp;gt; "AcDbLine") (10 1272.0 -207.0 0.0) (11 1272.0 -207.0 180.0) (210 0.0 0.0&lt;BR /&gt;
&amp;gt; 1.0)&lt;BR /&gt;
&amp;gt; (-3 ("EMD72120xA-34" (1002 . "{") (1000 . "COL") (1040 . -41.0464) (1040 .&lt;BR /&gt;
&amp;gt; 22.4) (1070&lt;BR /&gt;
&amp;gt; . 7) (1070 . 12) (1040 . 485.0) (1040 . 485.0) (1040 . 777.0) (1070 . 1)&lt;BR /&gt;
&amp;gt; (1040&lt;BR /&gt;
&amp;gt; . 0.0) (1040 . 0.989204) (1040 . 0.0) (1040 . 0.0) (1040 . 0.0) (1040 .&lt;BR /&gt;
0.0)&lt;BR /&gt;
&amp;gt; (1040 . -0.989204) (1040 . 0.0) (1040 . -14.8381) (1040 . 0.0) (1040 .&lt;BR /&gt;
0.0)&lt;BR /&gt;
&amp;gt; (1002 . "}"))))&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I figured out how to get the handle (5), startpoint (10), endpoint (11),&lt;BR /&gt;
&amp;gt; layer (8) and all of the xdata that I've attached to it but I can't figure&lt;BR /&gt;
&amp;gt; out how to get the (0 . "LINE") .  I want to check before I use&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; acedEntSel("\nSelect an Entity:  ", en, pt);&lt;BR /&gt;
&amp;gt; acdbGetObjectId(eId, en);&lt;BR /&gt;
&amp;gt; acdbOpenObject(pEntity, eId, AcDb::kForRead);&lt;BR /&gt;
&amp;gt; //...here I get the layer, the color and the handle and then close&lt;BR /&gt;
&amp;gt; pEntity...&lt;BR /&gt;
&amp;gt; acdbOpenObject((AcDbObject*&amp;amp;)pLine, eId, AcDb::kForRead);&lt;BR /&gt;
&amp;gt; //...here I get the startpoint and endpoint and then close pLine...&lt;BR /&gt;
&amp;gt; acdbOpenObject(obj, eId, AcDb::kForRead);&lt;BR /&gt;
&amp;gt; //...here I get the xdata&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Everything works fine but I must check that the user has selected a "Line"&lt;BR /&gt;
&amp;gt; element before I get the startpoint, endpoint and xdata.  If a circle is&lt;BR /&gt;
&amp;gt; selected, startpoint &amp;amp; endpoint have no meaning and the xdata I use is&lt;BR /&gt;
&amp;gt; different.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks in advance,&lt;BR /&gt;
&amp;gt; Ed&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/ENTITY&gt;&lt;/ENTITY&gt;&lt;/EMDEPAOLA&gt;</description>
    <pubDate>Mon, 17 Feb 2003 11:59:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-02-17T11:59:36Z</dc:date>
    <item>
      <title>Getting Entity dxf group 0</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getting-entity-dxf-group-0/m-p/316539#M37548</link>
      <description>Sorry for such a basic question but I'm just beginning with the ObjectARX -&lt;BR /&gt;
everything I've been doing so far is with LISP.&lt;BR /&gt;
&lt;BR /&gt;
Here is the element (along with it's xdata) I'm selecting:&lt;BR /&gt;
&lt;BR /&gt;
((-1 . &lt;ENTITY ="" 40075510=""&gt;) (0 . "LINE") (330 . &lt;ENTITY ="" 4006c558=""&gt;)&lt;BR /&gt;
(5&lt;BR /&gt;
. "988A") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "BEAM") (100 .&lt;BR /&gt;
"AcDbLine") (10 1272.0 -207.0 0.0) (11 1272.0 -207.0 180.0) (210 0.0 0.0&lt;BR /&gt;
1.0)&lt;BR /&gt;
(-3 ("EMD72120xA-34" (1002 . "{") (1000 . "COL") (1040 . -41.0464) (1040 .&lt;BR /&gt;
22.4) (1070&lt;BR /&gt;
. 7) (1070 . 12) (1040 . 485.0) (1040 . 485.0) (1040 . 777.0) (1070 . 1)&lt;BR /&gt;
(1040&lt;BR /&gt;
. 0.0) (1040 . 0.989204) (1040 . 0.0) (1040 . 0.0) (1040 . 0.0) (1040 . 0.0)&lt;BR /&gt;
(1040 . -0.989204) (1040 . 0.0) (1040 . -14.8381) (1040 . 0.0) (1040 . 0.0)&lt;BR /&gt;
(1002 . "}"))))&lt;BR /&gt;
&lt;BR /&gt;
I figured out how to get the handle (5), startpoint (10), endpoint (11),&lt;BR /&gt;
layer (8) and all of the xdata that I've attached to it but I can't figure&lt;BR /&gt;
out how to get the (0 . "LINE") .  I want to check before I use&lt;BR /&gt;
&lt;BR /&gt;
acedEntSel("\nSelect an Entity:  ", en, pt);&lt;BR /&gt;
acdbGetObjectId(eId, en);&lt;BR /&gt;
acdbOpenObject(pEntity, eId, AcDb::kForRead);&lt;BR /&gt;
//...here I get the layer, the color and the handle and then close&lt;BR /&gt;
pEntity...&lt;BR /&gt;
acdbOpenObject((AcDbObject*&amp;amp;)pLine, eId, AcDb::kForRead);&lt;BR /&gt;
//...here I get the startpoint and endpoint and then close pLine...&lt;BR /&gt;
acdbOpenObject(obj, eId, AcDb::kForRead);&lt;BR /&gt;
//...here I get the xdata&lt;BR /&gt;
&lt;BR /&gt;
Everything works fine but I must check that the user has selected a "Line"&lt;BR /&gt;
element before I get the startpoint, endpoint and xdata.  If a circle is&lt;BR /&gt;
selected, startpoint &amp;amp; endpoint have no meaning and the xdata I use is&lt;BR /&gt;
different.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance,&lt;BR /&gt;
Ed&lt;/ENTITY&gt;&lt;/ENTITY&gt;</description>
      <pubDate>Mon, 17 Feb 2003 11:38:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getting-entity-dxf-group-0/m-p/316539#M37548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-02-17T11:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Entity dxf group 0</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getting-entity-dxf-group-0/m-p/316540#M37549</link>
      <description>The simplest way is to use an AcDbLine pointer as the first argument to&lt;BR /&gt;
acdbOpenObject() without casting the pointer to anything else.&lt;BR /&gt;
&lt;BR /&gt;
    AcDbLine *pLine;&lt;BR /&gt;
    acdbOpenObject(pLine, eId, AcDb::kForRead);&lt;BR /&gt;
&lt;BR /&gt;
  That way you'll end up using a version of acdbOpenObject that's&lt;BR /&gt;
specifically for AcDbLines and won't open anything else (it will return&lt;BR /&gt;
Acad::eNotThatKindOfClass if the object is not an AcDbLine).&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"emdepaola" &lt;EMDEPAOLA&gt; wrote in message&lt;BR /&gt;
news:D9E23CFA860F938FA05F14D892300EC0@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Sorry for such a basic question but I'm just beginning with the&lt;BR /&gt;
ObjectARX -&lt;BR /&gt;
&amp;gt; everything I've been doing so far is with LISP.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Here is the element (along with it's xdata) I'm selecting:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ((-1 . &lt;ENTITY ="" 40075510=""&gt;) (0 . "LINE") (330 . &lt;ENTITY =""&gt;&lt;BR /&gt;
4006c558&amp;gt;)&lt;BR /&gt;
&amp;gt; (5&lt;BR /&gt;
&amp;gt; . "988A") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "BEAM") (100&lt;BR /&gt;
.&lt;BR /&gt;
&amp;gt; "AcDbLine") (10 1272.0 -207.0 0.0) (11 1272.0 -207.0 180.0) (210 0.0 0.0&lt;BR /&gt;
&amp;gt; 1.0)&lt;BR /&gt;
&amp;gt; (-3 ("EMD72120xA-34" (1002 . "{") (1000 . "COL") (1040 . -41.0464) (1040 .&lt;BR /&gt;
&amp;gt; 22.4) (1070&lt;BR /&gt;
&amp;gt; . 7) (1070 . 12) (1040 . 485.0) (1040 . 485.0) (1040 . 777.0) (1070 . 1)&lt;BR /&gt;
&amp;gt; (1040&lt;BR /&gt;
&amp;gt; . 0.0) (1040 . 0.989204) (1040 . 0.0) (1040 . 0.0) (1040 . 0.0) (1040 .&lt;BR /&gt;
0.0)&lt;BR /&gt;
&amp;gt; (1040 . -0.989204) (1040 . 0.0) (1040 . -14.8381) (1040 . 0.0) (1040 .&lt;BR /&gt;
0.0)&lt;BR /&gt;
&amp;gt; (1002 . "}"))))&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I figured out how to get the handle (5), startpoint (10), endpoint (11),&lt;BR /&gt;
&amp;gt; layer (8) and all of the xdata that I've attached to it but I can't figure&lt;BR /&gt;
&amp;gt; out how to get the (0 . "LINE") .  I want to check before I use&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; acedEntSel("\nSelect an Entity:  ", en, pt);&lt;BR /&gt;
&amp;gt; acdbGetObjectId(eId, en);&lt;BR /&gt;
&amp;gt; acdbOpenObject(pEntity, eId, AcDb::kForRead);&lt;BR /&gt;
&amp;gt; //...here I get the layer, the color and the handle and then close&lt;BR /&gt;
&amp;gt; pEntity...&lt;BR /&gt;
&amp;gt; acdbOpenObject((AcDbObject*&amp;amp;)pLine, eId, AcDb::kForRead);&lt;BR /&gt;
&amp;gt; //...here I get the startpoint and endpoint and then close pLine...&lt;BR /&gt;
&amp;gt; acdbOpenObject(obj, eId, AcDb::kForRead);&lt;BR /&gt;
&amp;gt; //...here I get the xdata&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Everything works fine but I must check that the user has selected a "Line"&lt;BR /&gt;
&amp;gt; element before I get the startpoint, endpoint and xdata.  If a circle is&lt;BR /&gt;
&amp;gt; selected, startpoint &amp;amp; endpoint have no meaning and the xdata I use is&lt;BR /&gt;
&amp;gt; different.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks in advance,&lt;BR /&gt;
&amp;gt; Ed&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/ENTITY&gt;&lt;/ENTITY&gt;&lt;/EMDEPAOLA&gt;</description>
      <pubDate>Mon, 17 Feb 2003 11:59:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getting-entity-dxf-group-0/m-p/316540#M37549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-02-17T11:59:36Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getting-entity-dxf-group-0/m-p/316541#M37550</link>
      <description>Art,&lt;BR /&gt;
&lt;BR /&gt;
Thanks, it worked fine.  I used the following code and it returns 46&lt;BR /&gt;
(eNotThatKindOfClass) if I don't select a line element:&lt;BR /&gt;
&lt;BR /&gt;
  Acad::ErrorStatus retStat;&lt;BR /&gt;
  if((retStat = acdbOpenObject(pLine, eId, AcDb::kForRead)) != Acad::eOk) {&lt;BR /&gt;
      acutPrintf("\nSelected entity is not a line.  Error code is %d",&lt;BR /&gt;
retStat);&lt;BR /&gt;
      return NULL;&lt;BR /&gt;
 }&lt;BR /&gt;
&lt;BR /&gt;
I have tens of thousands of lines of code (about 75% LISP&amp;amp; DCL and the rest&lt;BR /&gt;
in ADS) and I'm trying to upgrade everything to ObjectARX including all of&lt;BR /&gt;
my dialog boxes (hundreds!!!).  Although I have some experience with ADS, I&lt;BR /&gt;
don't want to use the old looping through a resbuf for the information when&lt;BR /&gt;
Object ARX seems to be much simpler.&lt;BR /&gt;
&lt;BR /&gt;
I've downloaded the Object ARX development kit from the autodesk site and&lt;BR /&gt;
installed the wizards.  I'm having trouble with the documents (e.g.&lt;BR /&gt;
"arxref.chm", which simply shut down when I try to use the "Index" or&lt;BR /&gt;
"Search" tabs.  Any ideas?&lt;BR /&gt;
&lt;BR /&gt;
I bought "Programming AutoCAD 2000 Using Object ARX", Charles McAuley from&lt;BR /&gt;
Autodesk Press.  Can you recommend any other books, downloads or websites?&lt;BR /&gt;
&lt;BR /&gt;
Thanks again,&lt;BR /&gt;
Ed&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Art Cooney" &lt;ARTC&gt; wrote in message&lt;BR /&gt;
news:E3CA952CB453DDE51ED9905D46D5B894@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; The simplest way is to use an AcDbLine pointer as the first argument to&lt;BR /&gt;
&amp;gt; acdbOpenObject() without casting the pointer to anything else.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     AcDbLine *pLine;&lt;BR /&gt;
&amp;gt;     acdbOpenObject(pLine, eId, AcDb::kForRead);&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;   That way you'll end up using a version of acdbOpenObject that's&lt;BR /&gt;
&amp;gt; specifically for AcDbLines and won't open anything else (it will return&lt;BR /&gt;
&amp;gt; Acad::eNotThatKindOfClass if the object is not an AcDbLine).&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "emdepaola" &lt;EMDEPAOLA&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:D9E23CFA860F938FA05F14D892300EC0@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Sorry for such a basic question but I'm just beginning with the&lt;BR /&gt;
&amp;gt; ObjectARX -&lt;BR /&gt;
&amp;gt; &amp;gt; everything I've been doing so far is with LISP.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Here is the element (along with it's xdata) I'm selecting:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; ((-1 . &lt;ENTITY ="" 40075510=""&gt;) (0 . "LINE") (330 . &lt;ENTITY =""&gt;&lt;BR /&gt;
&amp;gt; 4006c558&amp;gt;)&lt;BR /&gt;
&amp;gt; &amp;gt; (5&lt;BR /&gt;
&amp;gt; &amp;gt; . "988A") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "BEAM")&lt;BR /&gt;
(100&lt;BR /&gt;
&amp;gt; .&lt;BR /&gt;
&amp;gt; &amp;gt; "AcDbLine") (10 1272.0 -207.0 0.0) (11 1272.0 -207.0 180.0) (210 0.0 0.0&lt;BR /&gt;
&amp;gt; &amp;gt; 1.0)&lt;BR /&gt;
&amp;gt; &amp;gt; (-3 ("EMD72120xA-34" (1002 . "{") (1000 . "COL") (1040 . -41.0464) (1040&lt;BR /&gt;
.&lt;BR /&gt;
&amp;gt; &amp;gt; 22.4) (1070&lt;BR /&gt;
&amp;gt; &amp;gt; . 7) (1070 . 12) (1040 . 485.0) (1040 . 485.0) (1040 . 777.0) (1070 . 1)&lt;BR /&gt;
&amp;gt; &amp;gt; (1040&lt;BR /&gt;
&amp;gt; &amp;gt; . 0.0) (1040 . 0.989204) (1040 . 0.0) (1040 . 0.0) (1040 . 0.0) (1040 .&lt;BR /&gt;
&amp;gt; 0.0)&lt;BR /&gt;
&amp;gt; &amp;gt; (1040 . -0.989204) (1040 . 0.0) (1040 . -14.8381) (1040 . 0.0) (1040 .&lt;BR /&gt;
&amp;gt; 0.0)&lt;BR /&gt;
&amp;gt; &amp;gt; (1002 . "}"))))&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I figured out how to get the handle (5), startpoint (10), endpoint (11),&lt;BR /&gt;
&amp;gt; &amp;gt; layer (8) and all of the xdata that I've attached to it but I can't&lt;BR /&gt;
figure&lt;BR /&gt;
&amp;gt; &amp;gt; out how to get the (0 . "LINE") .  I want to check before I use&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; acedEntSel("\nSelect an Entity:  ", en, pt);&lt;BR /&gt;
&amp;gt; &amp;gt; acdbGetObjectId(eId, en);&lt;BR /&gt;
&amp;gt; &amp;gt; acdbOpenObject(pEntity, eId, AcDb::kForRead);&lt;BR /&gt;
&amp;gt; &amp;gt; //...here I get the layer, the color and the handle and then close&lt;BR /&gt;
&amp;gt; &amp;gt; pEntity...&lt;BR /&gt;
&amp;gt; &amp;gt; acdbOpenObject((AcDbObject*&amp;amp;)pLine, eId, AcDb::kForRead);&lt;BR /&gt;
&amp;gt; &amp;gt; //...here I get the startpoint and endpoint and then close pLine...&lt;BR /&gt;
&amp;gt; &amp;gt; acdbOpenObject(obj, eId, AcDb::kForRead);&lt;BR /&gt;
&amp;gt; &amp;gt; //...here I get the xdata&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Everything works fine but I must check that the user has selected a&lt;BR /&gt;
"Line"&lt;BR /&gt;
&amp;gt; &amp;gt; element before I get the startpoint, endpoint and xdata.  If a circle is&lt;BR /&gt;
&amp;gt; &amp;gt; selected, startpoint &amp;amp; endpoint have no meaning and the xdata I use is&lt;BR /&gt;
&amp;gt; &amp;gt; different.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks in advance,&lt;BR /&gt;
&amp;gt; &amp;gt; Ed&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/ENTITY&gt;&lt;/ENTITY&gt;&lt;/EMDEPAOLA&gt;&lt;/ARTC&gt;</description>
      <pubDate>Mon, 17 Feb 2003 12:28:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getting-entity-dxf-group-0/m-p/316541#M37550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-02-17T12:28:39Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getting-entity-dxf-group-0/m-p/316542#M37551</link>
      <description>I've never seen a chm file (arx or otherwise) shut down when trying to use&lt;BR /&gt;
the index or search tabs.  Do you have any other chm files that have nothing&lt;BR /&gt;
to do with AutoCAD that you can try to see if they work ok?  Maybe someone&lt;BR /&gt;
else has some ideas.&lt;BR /&gt;
&lt;BR /&gt;
I don't know anything about what books are available these days, but I know&lt;BR /&gt;
that there are others here in the newsgroup who can help you out with this.&lt;BR /&gt;
:)&lt;BR /&gt;
&lt;BR /&gt;
"emdepaola" &lt;EMDEPAOLA&gt; wrote in message&lt;BR /&gt;
news:5175F2728CBD30400E61A2404ED7EB16@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Art,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks, it worked fine.  I used the following code and it returns 46&lt;BR /&gt;
&amp;gt; (eNotThatKindOfClass) if I don't select a line element:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;   Acad::ErrorStatus retStat;&lt;BR /&gt;
&amp;gt;   if((retStat = acdbOpenObject(pLine, eId, AcDb::kForRead)) != Acad::eOk)&lt;BR /&gt;
{&lt;BR /&gt;
&amp;gt;       acutPrintf("\nSelected entity is not a line.  Error code is %d",&lt;BR /&gt;
&amp;gt; retStat);&lt;BR /&gt;
&amp;gt;       return NULL;&lt;BR /&gt;
&amp;gt;  }&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I have tens of thousands of lines of code (about 75% LISP&amp;amp; DCL and the&lt;BR /&gt;
rest&lt;BR /&gt;
&amp;gt; in ADS) and I'm trying to upgrade everything to ObjectARX including all of&lt;BR /&gt;
&amp;gt; my dialog boxes (hundreds!!!).  Although I have some experience with ADS,&lt;BR /&gt;
I&lt;BR /&gt;
&amp;gt; don't want to use the old looping through a resbuf for the information&lt;BR /&gt;
when&lt;BR /&gt;
&amp;gt; Object ARX seems to be much simpler.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I've downloaded the Object ARX development kit from the autodesk site and&lt;BR /&gt;
&amp;gt; installed the wizards.  I'm having trouble with the documents (e.g.&lt;BR /&gt;
&amp;gt; "arxref.chm", which simply shut down when I try to use the "Index" or&lt;BR /&gt;
&amp;gt; "Search" tabs.  Any ideas?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I bought "Programming AutoCAD 2000 Using Object ARX", Charles McAuley from&lt;BR /&gt;
&amp;gt; Autodesk Press.  Can you recommend any other books, downloads or websites?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks again,&lt;BR /&gt;
&amp;gt; Ed&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Art Cooney" &lt;ARTC&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:E3CA952CB453DDE51ED9905D46D5B894@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; The simplest way is to use an AcDbLine pointer as the first argument to&lt;BR /&gt;
&amp;gt; &amp;gt; acdbOpenObject() without casting the pointer to anything else.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;     AcDbLine *pLine;&lt;BR /&gt;
&amp;gt; &amp;gt;     acdbOpenObject(pLine, eId, AcDb::kForRead);&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;   That way you'll end up using a version of acdbOpenObject that's&lt;BR /&gt;
&amp;gt; &amp;gt; specifically for AcDbLines and won't open anything else (it will return&lt;BR /&gt;
&amp;gt; &amp;gt; Acad::eNotThatKindOfClass if the object is not an AcDbLine).&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "emdepaola" &lt;EMDEPAOLA&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:D9E23CFA860F938FA05F14D892300EC0@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Sorry for such a basic question but I'm just beginning with the&lt;BR /&gt;
&amp;gt; &amp;gt; ObjectARX -&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; everything I've been doing so far is with LISP.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Here is the element (along with it's xdata) I'm selecting:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; ((-1 . &lt;ENTITY ="" 40075510=""&gt;) (0 . "LINE") (330 . &lt;ENTITY =""&gt;&lt;BR /&gt;
&amp;gt; &amp;gt; 4006c558&amp;gt;)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (5&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; . "988A") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "BEAM")&lt;BR /&gt;
&amp;gt; (100&lt;BR /&gt;
&amp;gt; &amp;gt; .&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; "AcDbLine") (10 1272.0 -207.0 0.0) (11 1272.0 -207.0 180.0) (210 0.0&lt;BR /&gt;
0.0&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; 1.0)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (-3 ("EMD72120xA-34" (1002 . "{") (1000 . "COL") (1040 . -41.0464)&lt;BR /&gt;
(1040&lt;BR /&gt;
&amp;gt; .&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; 22.4) (1070&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; . 7) (1070 . 12) (1040 . 485.0) (1040 . 485.0) (1040 . 777.0) (1070 .&lt;BR /&gt;
1)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (1040&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; . 0.0) (1040 . 0.989204) (1040 . 0.0) (1040 . 0.0) (1040 . 0.0) (1040&lt;BR /&gt;
.&lt;BR /&gt;
&amp;gt; &amp;gt; 0.0)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (1040 . -0.989204) (1040 . 0.0) (1040 . -14.8381) (1040 . 0.0) (1040 .&lt;BR /&gt;
&amp;gt; &amp;gt; 0.0)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (1002 . "}"))))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; I figured out how to get the handle (5), startpoint (10), endpoint&lt;BR /&gt;
(11),&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; layer (8) and all of the xdata that I've attached to it but I can't&lt;BR /&gt;
&amp;gt; figure&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; out how to get the (0 . "LINE") .  I want to check before I use&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; acedEntSel("\nSelect an Entity:  ", en, pt);&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; acdbGetObjectId(eId, en);&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; acdbOpenObject(pEntity, eId, AcDb::kForRead);&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; //...here I get the layer, the color and the handle and then close&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; pEntity...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; acdbOpenObject((AcDbObject*&amp;amp;)pLine, eId, AcDb::kForRead);&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; //...here I get the startpoint and endpoint and then close pLine...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; acdbOpenObject(obj, eId, AcDb::kForRead);&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; //...here I get the xdata&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Everything works fine but I must check that the user has selected a&lt;BR /&gt;
&amp;gt; "Line"&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; element before I get the startpoint, endpoint and xdata.  If a circle&lt;BR /&gt;
is&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; selected, startpoint &amp;amp; endpoint have no meaning and the xdata I use is&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; different.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Thanks in advance,&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Ed&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/ENTITY&gt;&lt;/ENTITY&gt;&lt;/EMDEPAOLA&gt;&lt;/ARTC&gt;&lt;/EMDEPAOLA&gt;</description>
      <pubDate>Mon, 17 Feb 2003 13:51:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getting-entity-dxf-group-0/m-p/316542#M37551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-02-17T13:51:23Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getting-entity-dxf-group-0/m-p/316543#M37552</link>
      <description>&amp;gt;&amp;gt;Can you recommend any other books, downloads or websites?&lt;BR /&gt;
&lt;BR /&gt;
www.autodesk.com/developautocad is a good starting point for resources&lt;BR /&gt;
(although you've probably found most of them already).&lt;BR /&gt;
&lt;BR /&gt;
You might consider joining the Autodesk Developer Network&lt;BR /&gt;
(www.autodesk.com/adn) or attending one of our ObjectARX training classes&lt;BR /&gt;
(www.autodesk.com/apitraining). And there are a couple of books listed on&lt;BR /&gt;
amazon (including Charles' one).&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
&lt;BR /&gt;
Stephen Preston&lt;BR /&gt;
Developer Technical Services&lt;BR /&gt;
Autodesk&lt;BR /&gt;
http://adn.autodesk.com</description>
      <pubDate>Mon, 17 Feb 2003 14:25:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getting-entity-dxf-group-0/m-p/316543#M37552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-02-17T14:25:29Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getting-entity-dxf-group-0/m-p/316544#M37553</link>
      <description>Stephen,&lt;BR /&gt;
&lt;BR /&gt;
Thanks, I"ll look into everything you've suggested.  The training is&lt;BR /&gt;
difficult because it's always in Californnia (I'm in NYC).  Any chance of&lt;BR /&gt;
classes on the East Coast?&lt;BR /&gt;
&lt;BR /&gt;
Thanks again,&lt;BR /&gt;
Ed&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Stephen Preston" &lt;DISCUSSION&gt; wrote in message&lt;BR /&gt;
news:7A1829F8FA2B51E4F3BE07A865388761@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt;&amp;gt;Can you recommend any other books, downloads or websites?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; www.autodesk.com/developautocad is a good starting point for resources&lt;BR /&gt;
&amp;gt; (although you've probably found most of them already).&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; You might consider joining the Autodesk Developer Network&lt;BR /&gt;
&amp;gt; (www.autodesk.com/adn) or attending one of our ObjectARX training classes&lt;BR /&gt;
&amp;gt; (www.autodesk.com/apitraining). And there are a couple of books listed on&lt;BR /&gt;
&amp;gt; amazon (including Charles' one).&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Cheers,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Stephen Preston&lt;BR /&gt;
&amp;gt; Developer Technical Services&lt;BR /&gt;
&amp;gt; Autodesk&lt;BR /&gt;
&amp;gt; http://adn.autodesk.com&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/DISCUSSION&gt;</description>
      <pubDate>Mon, 17 Feb 2003 14:38:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getting-entity-dxf-group-0/m-p/316544#M37553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-02-17T14:38:04Z</dc:date>
    </item>
  </channel>
</rss>

