<?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: worldDraw() question in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/worlddraw-question/m-p/2471033#M17715</link>
    <description>AutoCAD knows nothing about private members of&lt;BR /&gt;
your custom object's class, so the worldDraw() of&lt;BR /&gt;
those instances will not be called. You would have&lt;BR /&gt;
to do it explicitly the worldDraw() of the containing&lt;BR /&gt;
database-resident entity.&lt;BR /&gt;
&lt;BR /&gt;
AFAIK, there's no hatch() function that draws hatching&lt;BR /&gt;
geometry, so you would either have to calculate the&lt;BR /&gt;
hatch geometry yourself, or create and use a hatch&lt;BR /&gt;
entity in your worldDraw().&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;ALEX_B&gt; wrote in message news:6165420@discussion.autodesk.com...&lt;BR /&gt;
Hi&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I have a few questions regarding worldDraw():&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
1. please consider:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
class A : public AcDbEntity { };//custom class&lt;BR /&gt;
&lt;BR /&gt;
class B : public AcDbEntity { };//custom class&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
class C : public AcDbEntity {&lt;BR /&gt;
&lt;BR /&gt;
A a;&lt;BR /&gt;
&lt;BR /&gt;
B b;&lt;BR /&gt;
&lt;BR /&gt;
public: double f;&lt;BR /&gt;
&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Does acad call a.worldDraw() or does C::worldDraw() have to (optionally) do &lt;BR /&gt;
it? The same question for dwgIn/OutFields().&lt;BR /&gt;
&lt;BR /&gt;
Does b.worldDraw() have access to f?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
2. To display a hatch inside a.worldDraw(), is there a hatch() function &lt;BR /&gt;
callable from there, or do I have to embed an AcDbHatch object inside my &lt;BR /&gt;
custom object?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
alex&lt;/ALEX_B&gt;</description>
    <pubDate>Sun, 19 Apr 2009 19:37:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-04-19T19:37:23Z</dc:date>
    <item>
      <title>worldDraw() question</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/worlddraw-question/m-p/2471032#M17714</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have a few questions regarding worldDraw():&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1. please consider:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;class A : public AcDbEntity { };//custom class&lt;BR /&gt;&lt;BR /&gt;class B : public AcDbEntity { };//custom class&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;class C : public AcDbEntity {&lt;BR /&gt;&lt;BR /&gt;A a;&lt;BR /&gt;&lt;BR /&gt;B b;&lt;BR /&gt;&lt;BR /&gt;public: double f;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Does acad call a.worldDraw() or does C::worldDraw() have to (optionally) do it? The same question for dwgIn/OutFields().&lt;BR /&gt;&lt;BR /&gt;Does b.worldDraw() have access to f?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2. To display a hatch inside a.worldDraw(), is there a hatch() function callable from there, or do I have to embed an AcDbHatch object inside my custom object?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;alex</description>
      <pubDate>Sun, 19 Apr 2009 18:39:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/worlddraw-question/m-p/2471032#M17714</guid>
      <dc:creator>alex_b</dc:creator>
      <dc:date>2009-04-19T18:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: worldDraw() question</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/worlddraw-question/m-p/2471033#M17715</link>
      <description>AutoCAD knows nothing about private members of&lt;BR /&gt;
your custom object's class, so the worldDraw() of&lt;BR /&gt;
those instances will not be called. You would have&lt;BR /&gt;
to do it explicitly the worldDraw() of the containing&lt;BR /&gt;
database-resident entity.&lt;BR /&gt;
&lt;BR /&gt;
AFAIK, there's no hatch() function that draws hatching&lt;BR /&gt;
geometry, so you would either have to calculate the&lt;BR /&gt;
hatch geometry yourself, or create and use a hatch&lt;BR /&gt;
entity in your worldDraw().&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;ALEX_B&gt; wrote in message news:6165420@discussion.autodesk.com...&lt;BR /&gt;
Hi&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I have a few questions regarding worldDraw():&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
1. please consider:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
class A : public AcDbEntity { };//custom class&lt;BR /&gt;
&lt;BR /&gt;
class B : public AcDbEntity { };//custom class&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
class C : public AcDbEntity {&lt;BR /&gt;
&lt;BR /&gt;
A a;&lt;BR /&gt;
&lt;BR /&gt;
B b;&lt;BR /&gt;
&lt;BR /&gt;
public: double f;&lt;BR /&gt;
&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Does acad call a.worldDraw() or does C::worldDraw() have to (optionally) do &lt;BR /&gt;
it? The same question for dwgIn/OutFields().&lt;BR /&gt;
&lt;BR /&gt;
Does b.worldDraw() have access to f?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
2. To display a hatch inside a.worldDraw(), is there a hatch() function &lt;BR /&gt;
callable from there, or do I have to embed an AcDbHatch object inside my &lt;BR /&gt;
custom object?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
alex&lt;/ALEX_B&gt;</description>
      <pubDate>Sun, 19 Apr 2009 19:37:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/worlddraw-question/m-p/2471033#M17715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-19T19:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: worldDraw() question</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/worlddraw-question/m-p/2471034#M17716</link>
      <description>Thanks, Tony.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;The same question for dwgIn/OutFields().&lt;BR /&gt;&lt;BR /&gt;The same answer?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;Does b.worldDraw() have access to f?&lt;BR /&gt;&lt;BR /&gt;Its not really OARX, but I can't figure it out.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;AFAIK...&lt;BR /&gt;&lt;BR /&gt;I meant solid hatch. I can't calculate it, and embedding a hatch object just to access its worldDraw() seems inefficient to me.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;alex</description>
      <pubDate>Sun, 19 Apr 2009 20:00:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/worlddraw-question/m-p/2471034#M17716</guid>
      <dc:creator>alex_b</dc:creator>
      <dc:date>2009-04-19T20:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: worldDraw() question</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/worlddraw-question/m-p/2471035#M17717</link>
      <description>Yes, same answer.&lt;BR /&gt;
&lt;BR /&gt;
AutoCAD does not know anything about custom objects&lt;BR /&gt;
that are not database-resident, so don't expect it to call&lt;BR /&gt;
any of there members.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;&amp;gt;Does b.worldDraw() have access to f?&lt;BR /&gt;
&lt;BR /&gt;
No.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;ALEX_B&gt; wrote in message news:6165431@discussion.autodesk.com...&lt;BR /&gt;
Thanks, Tony.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;&amp;gt;The same question for dwgIn/OutFields().&lt;BR /&gt;
&lt;BR /&gt;
The same answer?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;&amp;gt;Does b.worldDraw() have access to f?&lt;BR /&gt;
&lt;BR /&gt;
Its not really OARX, but I can't figure it out.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;AFAIK...&lt;BR /&gt;
&lt;BR /&gt;
I meant solid hatch. I can't calculate it, and embedding a hatch object just&lt;BR /&gt;
to access its worldDraw() seems inefficient to me.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
alex&lt;/ALEX_B&gt;</description>
      <pubDate>Sun, 19 Apr 2009 20:14:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/worlddraw-question/m-p/2471035#M17717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-19T20:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: worldDraw() question</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/worlddraw-question/m-p/2471036#M17718</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;OK.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;One more question: can a custom object 'know' the reason its worldDraw() method was called?&lt;BR /&gt;&lt;BR /&gt;I mean w/o resorting to checking the current command.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;alex&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Apr 2009 06:14:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/worlddraw-question/m-p/2471036#M17718</guid>
      <dc:creator>alex_b</dc:creator>
      <dc:date>2009-04-20T06:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: worldDraw() question</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/worlddraw-question/m-p/2471037#M17719</link>
      <description>Look at the context() member of the parameter to worldDraw(),&lt;BR /&gt;
and the AcGiContext type it returns.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;ALEX_B&gt; wrote in message news:6165492@discussion.autodesk.com...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
OK.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
One more question: can a custom object 'know' the reason its worldDraw() &lt;BR /&gt;
method was called?&lt;BR /&gt;
&lt;BR /&gt;
I mean w/o resorting to checking the current command.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
alex&lt;/ALEX_B&gt;</description>
      <pubDate>Mon, 20 Apr 2009 12:54:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/worlddraw-question/m-p/2471037#M17719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-20T12:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: worldDraw() question</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/worlddraw-question/m-p/2471038#M17720</link>
      <description>Tony:&lt;BR /&gt;&lt;BR /&gt;Context(() worked for me.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;alex</description>
      <pubDate>Sat, 02 May 2009 11:52:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/worlddraw-question/m-p/2471038#M17720</guid>
      <dc:creator>alex_b</dc:creator>
      <dc:date>2009-05-02T11:52:15Z</dc:date>
    </item>
  </channel>
</rss>

