<?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 ObjectARX: DWGPROPS (SOLVED) in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883025#M156385</link>
    <description>For anyone still reading this thread, the solution to manipulating the&lt;BR /&gt;
DWGPROPS dictionary is to be sure that ACSIOBJ.ARX is loaded *before*&lt;BR /&gt;
calling acdbGetSummaryInfo. That's it. Nice of Autodesk of to leave that&lt;BR /&gt;
little tidbit out of the documentation,  huh?&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Attitudes are contagious. Is yours worth catching?&lt;BR /&gt;
http://www.acadx.com&lt;BR /&gt;
&lt;BR /&gt;
Frank Oquendo &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:AA2AEF6A2B01CD4EE32223F1A9013177@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Manipulating the drawing properties is simple enough in ARX but I've&lt;BR /&gt;
&amp;gt; discovered that unless the DWGPROPS command has been run at least once,&lt;BR /&gt;
you&lt;BR /&gt;
&amp;gt; cannot post any properties to the drawing. After much searching, I have&lt;BR /&gt;
not&lt;BR /&gt;
&amp;gt; found a way to initialize the drawing properties. Any ideas?&lt;/FRANKO&gt;</description>
    <pubDate>Thu, 24 Aug 2000 02:20:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-08-24T02:20:29Z</dc:date>
    <item>
      <title>ObjectARX: DWGPROPS</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883017#M156377</link>
      <description>Manipulating the drawing properties is simple enough in ARX but I've&lt;BR /&gt;
discovered that unless the DWGPROPS command has been run at least once, you&lt;BR /&gt;
cannot post any properties to the drawing. After much searching, I have not&lt;BR /&gt;
found a way to initialize the drawing properties. Any ideas?&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Attitudes are contagious. Is yours worth catching?&lt;BR /&gt;
http://www.acadx.com</description>
      <pubDate>Wed, 23 Aug 2000 04:09:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883017#M156377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-23T04:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectARX: DWGPROPS</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883018#M156378</link>
      <description>Frank:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; After much searching, I have not found a way to initialize the&lt;BR /&gt;
&amp;gt; drawing properties. Any ideas?&lt;BR /&gt;
&lt;BR /&gt;
  Have you tried acrxLoadApp? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
-- &lt;BR /&gt;
Owen Wengerd&lt;BR /&gt;
President, ManuSoft ==&amp;gt; http://www.manusoft.com&lt;BR /&gt;
VP Americas, CADLock, Inc. ==&amp;gt; http://www.cadlock.com</description>
      <pubDate>Wed, 23 Aug 2000 06:04:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883018#M156378</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-23T06:04:33Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883019#M156379</link>
      <description>It seems a bit trickier than that. Unless the DWGPROPS dictionary already&lt;BR /&gt;
exists, any attempt to update the summary info crashes AutoCAD even with&lt;BR /&gt;
ACSIOBJ.ARX loaded. I thought about creating the dictionary myself but I&lt;BR /&gt;
don't know how to attach an xrecord directly to the dictionary itself rather&lt;BR /&gt;
than as an entry.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Attitudes are contagious. Is yours worth catching?&lt;BR /&gt;
http://www.acadx.com&lt;BR /&gt;
&lt;BR /&gt;
"Owen Wengerd" &lt;OWENW&gt; wrote in message&lt;BR /&gt;
news:D387C6EBAFB879F07B0C783226D8BE69@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt;   Have you tried acrxLoadApp? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/OWENW&gt;</description>
      <pubDate>Wed, 23 Aug 2000 13:43:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883019#M156379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-23T13:43:53Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883020#M156380</link>
      <description>Hi Frank,&lt;BR /&gt;
&lt;BR /&gt;
I had the same problem with props that had never been used with a VBA&lt;BR /&gt;
program. I cheated and used "sendcommand" to load some lisp to create it if&lt;BR /&gt;
VBA returned an error. Its posted below if you don't mind hacking it like I&lt;BR /&gt;
did.&lt;BR /&gt;
&lt;BR /&gt;
(setq xlist&lt;BR /&gt;
 (list&lt;BR /&gt;
      '(0 . "XRECORD")&lt;BR /&gt;
      '(100 . "AcDbXrecord")&lt;BR /&gt;
  '(1 . "DWGPROPS COOKIE")&lt;BR /&gt;
 (cons 2 "IPETitle")&lt;BR /&gt;
 (cons 3 "IPESubject")&lt;BR /&gt;
 (cons 4 "IPEAuthor")&lt;BR /&gt;
 (cons 6 "IPEComments")&lt;BR /&gt;
 (cons 7 "IPEKeywords")&lt;BR /&gt;
 (cons 8 (getvar "loginname"))&lt;BR /&gt;
 (cons 9 "IPERevNo")&lt;BR /&gt;
 (cons 300 "IPE Custom 1=Ftype")&lt;BR /&gt;
 (cons 301 "IPE Custom 2=A")&lt;BR /&gt;
 (cons 302 "IPE Custom 3=B")&lt;BR /&gt;
 (cons 303 "IPE Custom 4=C")&lt;BR /&gt;
 (cons 304 "IPE Custom 5=D")&lt;BR /&gt;
 (cons 305 "IPE Custom 6=E")&lt;BR /&gt;
 (cons 306 "IPE Custom 7=F")&lt;BR /&gt;
 (cons 307 "IPE Custom 8=G")&lt;BR /&gt;
 (cons 308 "IPE Custom 9=H")&lt;BR /&gt;
 (cons 309 "IPE Custom 10=J")&lt;BR /&gt;
 (cons 40 (getvar "TDINDWG"))&lt;BR /&gt;
 (cons 41 (getvar "TDCREATE"))&lt;BR /&gt;
 (cons 42 (getvar "TDUPDATE"))&lt;BR /&gt;
 )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
(dictadd (namedobjdict) "DWGPROPS" (entmakex xlist))&lt;BR /&gt;
(setq xlist nil)&lt;BR /&gt;
&lt;BR /&gt;
Gary</description>
      <pubDate>Wed, 23 Aug 2000 14:30:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883020#M156380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-23T14:30:14Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883021#M156381</link>
      <description>I came across a post from Frank Whaley that explained the same thing so I&lt;BR /&gt;
tried to translate it to ARX. I'm having limited success. For some reason,&lt;BR /&gt;
the call the acdbDictAdd always fails. To make things even more interesting,&lt;BR /&gt;
ERRNO gets set to 1083. The highest value listed in ol_errno.h is 105. Go&lt;BR /&gt;
figure. Here's the code I'm using (I'm usre the word wrapping will be simply&lt;BR /&gt;
hideous). Lots of code omitted for brevity:&lt;BR /&gt;
&lt;BR /&gt;
 if (pDict-&amp;gt;getAt("DWGPROPS", (AcDbObject*&amp;amp;) pDict, AcDb::kForRead) ==&lt;BR /&gt;
Acad::eKeyNotFound)&lt;BR /&gt;
 {&lt;BR /&gt;
  struct resbuf* pRbList = NULL;&lt;BR /&gt;
  struct resbuf* pRbEdit = NULL;&lt;BR /&gt;
  struct resbuf* pRbCreated = NULL;&lt;BR /&gt;
  struct resbuf* pRbSaved = NULL;&lt;BR /&gt;
  ads_name xname, maindict;&lt;BR /&gt;
  char* dictName = "DWGPROPS";&lt;BR /&gt;
&lt;BR /&gt;
  pRbEdit    = acutNewRb(AcDb::kDxfReal);&lt;BR /&gt;
  pRbCreated = acutNewRb(AcDb::kDxfReal);&lt;BR /&gt;
  pRbSaved   = acutNewRb(AcDb::kDxfReal);&lt;BR /&gt;
&lt;BR /&gt;
  if (acdbGetAdsName(maindict, pDict-&amp;gt;objectId()) != Acad::eOk)&lt;BR /&gt;
   return E_FAIL;&lt;BR /&gt;
&lt;BR /&gt;
  acedGetVar("TDINDWG", pRbEdit);&lt;BR /&gt;
  acedGetVar("TDCREATE", pRbCreated);&lt;BR /&gt;
  acedGetVar("TDUPDATE", pRbSaved);&lt;BR /&gt;
  pRbList = acutBuildList(RTDXF0 , "XRECORD",&lt;BR /&gt;
                       100, "AcDbXrecord",&lt;BR /&gt;
           1, "DWGPROPS COOKIE",&lt;BR /&gt;
           2, "",&lt;BR /&gt;
           3, "",&lt;BR /&gt;
           4, "",&lt;BR /&gt;
           5, "",&lt;BR /&gt;
           6, "",&lt;BR /&gt;
           7, "",&lt;BR /&gt;
           8, "",&lt;BR /&gt;
           9, "",&lt;BR /&gt;
           300, "=",&lt;BR /&gt;
           301, "=",&lt;BR /&gt;
           302, "=",&lt;BR /&gt;
           303, "=",&lt;BR /&gt;
           304, "=",&lt;BR /&gt;
             305, "=",&lt;BR /&gt;
           306, "=",&lt;BR /&gt;
           307, "=",&lt;BR /&gt;
           308, "=",&lt;BR /&gt;
           309, "=",&lt;BR /&gt;
           40, pRbEdit-&amp;gt;resval.rreal,&lt;BR /&gt;
           41, pRbCreated-&amp;gt;resval.rreal,&lt;BR /&gt;
           42, pRbSaved-&amp;gt;resval.rreal,&lt;BR /&gt;
           RTNONE);&lt;BR /&gt;
&lt;BR /&gt;
  if (acdbEntMakeX(pRbList, xname) != RTNORM)&lt;BR /&gt;
   return E_FAIL&lt;BR /&gt;
// This fails every time.&lt;BR /&gt;
  if (acdbDictAdd(maindict, dictName, xname) != RTNORM)&lt;BR /&gt;
    return E_FAIL;&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Attitudes are contagious. Is yours worth catching?&lt;BR /&gt;
http://www.acadx.com&lt;BR /&gt;
&lt;BR /&gt;
"Gary McMaster" &lt;GMCMASTER&gt; wrote in message&lt;BR /&gt;
news:7948AFB114BD198A7EB28F5B98798322@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Hi Frank,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I had the same problem with props that had never been used with a VBA&lt;BR /&gt;
&amp;gt; program. I cheated and used "sendcommand" to load some lisp to create it&lt;BR /&gt;
if&lt;BR /&gt;
&amp;gt; VBA returned an error. Its posted below if you don't mind hacking it like&lt;BR /&gt;
I&lt;BR /&gt;
&amp;gt; did.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (setq xlist&lt;BR /&gt;
&amp;gt;  (list&lt;BR /&gt;
&amp;gt;       '(0 . "XRECORD")&lt;BR /&gt;
&amp;gt;       '(100 . "AcDbXrecord")&lt;BR /&gt;
&amp;gt;   '(1 . "DWGPROPS COOKIE")&lt;BR /&gt;
&amp;gt;  (cons 2 "IPETitle")&lt;BR /&gt;
&amp;gt;  (cons 3 "IPESubject")&lt;BR /&gt;
&amp;gt;  (cons 4 "IPEAuthor")&lt;BR /&gt;
&amp;gt;  (cons 6 "IPEComments")&lt;BR /&gt;
&amp;gt;  (cons 7 "IPEKeywords")&lt;BR /&gt;
&amp;gt;  (cons 8 (getvar "loginname"))&lt;BR /&gt;
&amp;gt;  (cons 9 "IPERevNo")&lt;BR /&gt;
&amp;gt;  (cons 300 "IPE Custom 1=Ftype")&lt;BR /&gt;
&amp;gt;  (cons 301 "IPE Custom 2=A")&lt;BR /&gt;
&amp;gt;  (cons 302 "IPE Custom 3=B")&lt;BR /&gt;
&amp;gt;  (cons 303 "IPE Custom 4=C")&lt;BR /&gt;
&amp;gt;  (cons 304 "IPE Custom 5=D")&lt;BR /&gt;
&amp;gt;  (cons 305 "IPE Custom 6=E")&lt;BR /&gt;
&amp;gt;  (cons 306 "IPE Custom 7=F")&lt;BR /&gt;
&amp;gt;  (cons 307 "IPE Custom 8=G")&lt;BR /&gt;
&amp;gt;  (cons 308 "IPE Custom 9=H")&lt;BR /&gt;
&amp;gt;  (cons 309 "IPE Custom 10=J")&lt;BR /&gt;
&amp;gt;  (cons 40 (getvar "TDINDWG"))&lt;BR /&gt;
&amp;gt;  (cons 41 (getvar "TDCREATE"))&lt;BR /&gt;
&amp;gt;  (cons 42 (getvar "TDUPDATE"))&lt;BR /&gt;
&amp;gt;  )&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (dictadd (namedobjdict) "DWGPROPS" (entmakex xlist))&lt;BR /&gt;
&amp;gt; (setq xlist nil)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Gary&lt;BR /&gt;
&amp;gt;&lt;/GMCMASTER&gt;</description>
      <pubDate>Wed, 23 Aug 2000 15:42:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883021#M156381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-23T15:42:57Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883022#M156382</link>
      <description>That stuff came to me from Frank via Kent Keller. I thought I was doing&lt;BR /&gt;
something wrong when I was unable to create the props from VBA. I hate using&lt;BR /&gt;
"sendcommand" but its the only thing I could get to work.&lt;BR /&gt;
&lt;BR /&gt;
Gary</description>
      <pubDate>Wed, 23 Aug 2000 16:58:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883022#M156382</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-23T16:58:52Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883023#M156383</link>
      <description>Ok, I give up. After spotting some flaws in my original code, I went back&lt;BR /&gt;
and performed what I believe to be an exact LISP to ARX translation of a&lt;BR /&gt;
post from Frank Whaley. I simply cannot create the DWGPROPS dictionary.&lt;BR /&gt;
Here's the code. Can anyone tell where I'm going wrong? acdbDictAdd fails&lt;BR /&gt;
every time and sets ERRNO to 1083.&lt;BR /&gt;
&lt;BR /&gt;
 AcApDocument* pDoc = NULL;&lt;BR /&gt;
 pDoc = acDocManager-&amp;gt;mdiActiveDocument();&lt;BR /&gt;
 AcDbObjectPointer&lt;ACDBDICTIONARY&gt;&lt;BR /&gt;
pDict(pDoc-&amp;gt;database()-&amp;gt;namedObjectsDictionaryId(), AcDb::kForRead);&lt;BR /&gt;
&lt;BR /&gt;
  if (pDict.openStatus() != Acad::eOk)&lt;BR /&gt;
  return E_FAIL;&lt;BR /&gt;
&lt;BR /&gt;
 struct resbuf* pDwgProps = NULL;&lt;BR /&gt;
 ads_name namedObj;&lt;BR /&gt;
&lt;BR /&gt;
 acdbNamedObjDict(namedObj);&lt;BR /&gt;
 pDwgProps = acdbDictSearch(namedObj, "DWGPROPS", 0);&lt;BR /&gt;
&lt;BR /&gt;
 if (pDwgProps == NULL)&lt;BR /&gt;
 {&lt;BR /&gt;
  if (acDocManager-&amp;gt;lockDocument(pDoc, AcAp::kAutoWrite) != Acad::eOk)&lt;BR /&gt;
  return E_FAIL;&lt;BR /&gt;
  pDict-&amp;gt;upgradeOpen();&lt;BR /&gt;
&lt;BR /&gt;
  struct resbuf* pRbEdit = NULL;&lt;BR /&gt;
  struct resbuf* pRbCreated = NULL;&lt;BR /&gt;
  struct resbuf* pRbSaved = NULL;&lt;BR /&gt;
  ads_name dictName;&lt;BR /&gt;
&lt;BR /&gt;
  pRbEdit    = acutNewRb(AcDb::kDxfReal);&lt;BR /&gt;
  pRbCreated = acutNewRb(AcDb::kDxfReal);&lt;BR /&gt;
  pRbSaved   = acutNewRb(AcDb::kDxfReal);&lt;BR /&gt;
  acedGetVar("TDINDWG",  pRbEdit);&lt;BR /&gt;
  acedGetVar("TDCREATE", pRbCreated);&lt;BR /&gt;
  acedGetVar("TDUPDATE", pRbSaved);&lt;BR /&gt;
  pDwgProps = acutBuildList(RTDXF0 , "XRECORD",&lt;BR /&gt;
                         100, "AcDbXrecord",&lt;BR /&gt;
             1, "DWGPROPS COOKIE",&lt;BR /&gt;
             2, "",&lt;BR /&gt;
             3, "",&lt;BR /&gt;
             4, "",&lt;BR /&gt;
             5, "",&lt;BR /&gt;
             6, "",&lt;BR /&gt;
             7, "",&lt;BR /&gt;
             8, "",&lt;BR /&gt;
             9, "",&lt;BR /&gt;
             300, "=",&lt;BR /&gt;
             301, "=",&lt;BR /&gt;
             302, "=",&lt;BR /&gt;
             303, "=",&lt;BR /&gt;
             304, "=",&lt;BR /&gt;
               305, "=",&lt;BR /&gt;
             306, "=",&lt;BR /&gt;
             307, "=",&lt;BR /&gt;
             308, "=",&lt;BR /&gt;
             309, "=",&lt;BR /&gt;
             40, pRbEdit-&amp;gt;resval.rreal,&lt;BR /&gt;
             41, pRbCreated-&amp;gt;resval.rreal,&lt;BR /&gt;
             42, pRbSaved-&amp;gt;resval.rreal,&lt;BR /&gt;
          1, "",&lt;BR /&gt;
             RTNONE);&lt;BR /&gt;
&lt;BR /&gt;
  acdbEntMakeX(pDwgProps, dictName);&lt;BR /&gt;
  acutRelRb(pDwgProps);&lt;BR /&gt;
  acutRelRb(pRbEdit);&lt;BR /&gt;
  acutRelRb(pRbCreated);&lt;BR /&gt;
  acutRelRb(pRbSaved);&lt;BR /&gt;
&lt;BR /&gt;
  if (acdbDictAdd(namedObj, "DWGPROPS", dictName) != RTNORM)&lt;BR /&gt;
   return E_FAIL;&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Attitudes are contagious. Is yours worth catching?&lt;BR /&gt;
http://www.acadx.com&lt;/ACDBDICTIONARY&gt;</description>
      <pubDate>Wed, 23 Aug 2000 18:44:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883023#M156383</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-23T18:44:02Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883024#M156384</link>
      <description>Got it! Among other things (like my including a bogus group code 5), I've&lt;BR /&gt;
discovered that acdbDictAdd fails if the object is already open. The&lt;BR /&gt;
solution is to simply close the namedObjectDictionary pointer before calling&lt;BR /&gt;
acdbDictAdd.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Attitudes are contagious. Is yours worth catching?&lt;BR /&gt;
http://www.acadx.com&lt;BR /&gt;
&lt;BR /&gt;
"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:96E4F296DFF80CF7626F599C3525C601@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Ok, I give up. After spotting some flaws in my original code, I went back&lt;BR /&gt;
&amp;gt; and performed what I believe to be an exact LISP to ARX translation of a&lt;BR /&gt;
&amp;gt; post from Frank Whaley. I simply cannot create the DWGPROPS dictionary.&lt;BR /&gt;
&amp;gt; Here's the code. Can anyone tell where I'm going wrong? acdbDictAdd fails&lt;BR /&gt;
&amp;gt; every time and sets ERRNO to 1083.&lt;/FRANKO&gt;</description>
      <pubDate>Wed, 23 Aug 2000 20:11:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883024#M156384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-23T20:11:48Z</dc:date>
    </item>
    <item>
      <title>ObjectARX: DWGPROPS (SOLVED)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883025#M156385</link>
      <description>For anyone still reading this thread, the solution to manipulating the&lt;BR /&gt;
DWGPROPS dictionary is to be sure that ACSIOBJ.ARX is loaded *before*&lt;BR /&gt;
calling acdbGetSummaryInfo. That's it. Nice of Autodesk of to leave that&lt;BR /&gt;
little tidbit out of the documentation,  huh?&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Attitudes are contagious. Is yours worth catching?&lt;BR /&gt;
http://www.acadx.com&lt;BR /&gt;
&lt;BR /&gt;
Frank Oquendo &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:AA2AEF6A2B01CD4EE32223F1A9013177@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Manipulating the drawing properties is simple enough in ARX but I've&lt;BR /&gt;
&amp;gt; discovered that unless the DWGPROPS command has been run at least once,&lt;BR /&gt;
you&lt;BR /&gt;
&amp;gt; cannot post any properties to the drawing. After much searching, I have&lt;BR /&gt;
not&lt;BR /&gt;
&amp;gt; found a way to initialize the drawing properties. Any ideas?&lt;/FRANKO&gt;</description>
      <pubDate>Thu, 24 Aug 2000 02:20:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883025#M156385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-24T02:20:29Z</dc:date>
    </item>
    <item>
      <title>ObjectARX: DWGPROPS (SOLVED)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883026#M156386</link>
      <description>Frank,&lt;BR /&gt;
&lt;BR /&gt;
You left me in the dust with the arx stuff. Do your findings indicate that&lt;BR /&gt;
it should be possible to perform the initialization from VBA?&lt;BR /&gt;
&lt;BR /&gt;
Gary</description>
      <pubDate>Thu, 24 Aug 2000 11:28:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883026#M156386</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-24T11:28:53Z</dc:date>
    </item>
    <item>
      <title>ObjectARX: DWGPROPS (SOLVED)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883027#M156387</link>
      <description>I honestly don't know. It appears that ACSIOBJ.ARX's only job is to support&lt;BR /&gt;
the acdbDatabaseSummaryInfo object. Since this object doesn't appear to be&lt;BR /&gt;
available to VB, I don't think loading it would help. The real puzzle is how&lt;BR /&gt;
do you attach an xrecord to, and read it directly from, a Dictionary object&lt;BR /&gt;
in VB. All the methods are aimed at manipulating entries rather than the&lt;BR /&gt;
dictionary itself.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Attitudes are contagious. Is yours worth catching?&lt;BR /&gt;
http://www.acadx.com&lt;BR /&gt;
&lt;BR /&gt;
"Gary McMaster" &lt;GMCMASTER&gt; wrote in message&lt;BR /&gt;
news:4EE39C1719AA679C6A8E08B868A58736@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Frank,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; You left me in the dust with the arx stuff. Do your findings indicate that&lt;BR /&gt;
&amp;gt; it should be possible to perform the initialization from VBA?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Gary&lt;BR /&gt;
&amp;gt;&lt;/GMCMASTER&gt;</description>
      <pubDate>Thu, 24 Aug 2000 13:58:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883027#M156387</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-24T13:58:12Z</dc:date>
    </item>
    <item>
      <title>ObjectARX: DWGPROPS (SOLVED)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883028#M156388</link>
      <description>Thanks Frank. I have it working, but don't like the way I had to do it.&lt;BR /&gt;
&lt;BR /&gt;
Gary</description>
      <pubDate>Thu, 24 Aug 2000 14:18:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883028#M156388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-24T14:18:22Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883029#M156389</link>
      <description>Frank Oquendo wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; I came across a post from Frank Whaley that explained the same thing so I&lt;BR /&gt;
&amp;gt; tried to translate it to ARX.&lt;BR /&gt;
&lt;BR /&gt;
In ARX, I do it a little differently:&lt;BR /&gt;
&lt;BR /&gt;
    //  build resbuf chain&lt;BR /&gt;
    resbuf *rb = acutBuildList(&lt;BR /&gt;
        1, "DWGPROPS COOKIE",&lt;BR /&gt;
        ...&lt;BR /&gt;
        RTNONE);&lt;BR /&gt;
    if ( rb == NULL )&lt;BR /&gt;
        return false;&lt;BR /&gt;
&lt;BR /&gt;
    //  create Xrecord and attach resbuf chain&lt;BR /&gt;
    AcDbXrecord *props = new AcDbXrecord;&lt;BR /&gt;
    bool isOk;&lt;BR /&gt;
    if ( props != NULL )&lt;BR /&gt;
        isOk = EOK(props-&amp;gt;setFromRbChain(*rb));&lt;BR /&gt;
    acutRelRb(rb);&lt;BR /&gt;
&lt;BR /&gt;
    //  quit now if error&lt;BR /&gt;
    if ( !isOk )&lt;BR /&gt;
    {&lt;BR /&gt;
        delete props;&lt;BR /&gt;
        return false;&lt;BR /&gt;
    }&lt;BR /&gt;
&lt;BR /&gt;
    //  add to Named Object Dictionary&lt;BR /&gt;
    AcDbDictionary *nod;&lt;BR /&gt;
    AcDbObjectId id;&lt;BR /&gt;
&lt;BR /&gt;
    isOk = false;&lt;BR /&gt;
    if ( EOK(acdbCurDwg()-&amp;gt;getNamedObjectsDictionary(nod, AcDb::kForWrite)) )&lt;BR /&gt;
    {&lt;BR /&gt;
        if ( EOK(nod-&amp;gt;setAt("DWGPROPS", props, id)) )&lt;BR /&gt;
            isOk = true;&lt;BR /&gt;
        nod-&amp;gt;close();&lt;BR /&gt;
    }&lt;BR /&gt;
&lt;BR /&gt;
    props-&amp;gt;close();&lt;BR /&gt;
    return isOk;&lt;BR /&gt;
&lt;BR /&gt;
The 'EOK()' function used above looks like:&lt;BR /&gt;
&lt;BR /&gt;
  inline int EOK(Acad::ErrorStatus arg)&lt;BR /&gt;
    { return arg == Acad::eOk; }&lt;BR /&gt;
--&lt;BR /&gt;
Frank Whaley&lt;BR /&gt;
Autodesk, Inc.</description>
      <pubDate>Fri, 25 Aug 2000 16:43:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883029#M156389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-25T16:43:06Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883030#M156390</link>
      <description>Actually, it turns out that none of that is necessary so long as ACSIOBJ.ARX&lt;BR /&gt;
is loaded prior to calling acdbGetSummaryInfo. The ensuing call to&lt;BR /&gt;
acdbPutSummaryInfo will create the dictionary if it doesn't exist. In fact,&lt;BR /&gt;
if you use the AcDbDatabaseSummaryInfo object at all, loading acsiobj is not&lt;BR /&gt;
optional as attempting to update the drawing properties will crash AutoCAD&lt;BR /&gt;
without it.&lt;BR /&gt;
&lt;BR /&gt;
Of course, if I ever decide to handle the drawing properties manually, you&lt;BR /&gt;
can bet I'll be referring to this post. Thanks for the input.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Attitudes are contagious. Is yours worth catching?&lt;BR /&gt;
http://www.acadx.com&lt;BR /&gt;
&lt;BR /&gt;
"Frank Whaley" &lt;FRANK.WHALEY&gt; wrote in message&lt;BR /&gt;
news:39A6A21A.F601BB70@autodesk.com...&lt;BR /&gt;
&amp;gt; Frank Oquendo wrote:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I came across a post from Frank Whaley that explained the same thing so&lt;BR /&gt;
I&lt;BR /&gt;
&amp;gt; &amp;gt; tried to translate it to ARX.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; In ARX, I do it a little differently:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     //  build resbuf chain&lt;BR /&gt;
&amp;gt;     resbuf *rb = acutBuildList(&lt;BR /&gt;
&amp;gt;         1, "DWGPROPS COOKIE",&lt;BR /&gt;
&amp;gt;         ...&lt;BR /&gt;
&amp;gt;         RTNONE);&lt;BR /&gt;
&amp;gt;     if ( rb == NULL )&lt;BR /&gt;
&amp;gt;         return false;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     //  create Xrecord and attach resbuf chain&lt;BR /&gt;
&amp;gt;     AcDbXrecord *props = new AcDbXrecord;&lt;BR /&gt;
&amp;gt;     bool isOk;&lt;BR /&gt;
&amp;gt;     if ( props != NULL )&lt;BR /&gt;
&amp;gt;         isOk = EOK(props-&amp;gt;setFromRbChain(*rb));&lt;BR /&gt;
&amp;gt;     acutRelRb(rb);&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     //  quit now if error&lt;BR /&gt;
&amp;gt;     if ( !isOk )&lt;BR /&gt;
&amp;gt;     {&lt;BR /&gt;
&amp;gt;         delete props;&lt;BR /&gt;
&amp;gt;         return false;&lt;BR /&gt;
&amp;gt;     }&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     //  add to Named Object Dictionary&lt;BR /&gt;
&amp;gt;     AcDbDictionary *nod;&lt;BR /&gt;
&amp;gt;     AcDbObjectId id;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     isOk = false;&lt;BR /&gt;
&amp;gt;     if ( EOK(acdbCurDwg()-&amp;gt;getNamedObjectsDictionary(nod,&lt;BR /&gt;
AcDb::kForWrite)) )&lt;BR /&gt;
&amp;gt;     {&lt;BR /&gt;
&amp;gt;         if ( EOK(nod-&amp;gt;setAt("DWGPROPS", props, id)) )&lt;BR /&gt;
&amp;gt;             isOk = true;&lt;BR /&gt;
&amp;gt;         nod-&amp;gt;close();&lt;BR /&gt;
&amp;gt;     }&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     props-&amp;gt;close();&lt;BR /&gt;
&amp;gt;     return isOk;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The 'EOK()' function used above looks like:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;   inline int EOK(Acad::ErrorStatus arg)&lt;BR /&gt;
&amp;gt;     { return arg == Acad::eOk; }&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Frank Whaley&lt;BR /&gt;
&amp;gt; Autodesk, Inc.&lt;BR /&gt;
&amp;gt;&lt;/FRANK.WHALEY&gt;</description>
      <pubDate>Fri, 25 Aug 2000 16:43:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/objectarx-dwgprops/m-p/883030#M156390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-25T16:43:06Z</dc:date>
    </item>
  </channel>
</rss>

