<?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: Wrong rendering in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/wrong-rendering/m-p/11101684#M2601</link>
    <description>&lt;P&gt;P.S.&lt;/P&gt;&lt;P&gt;why can't I add video directly to post?&lt;/P&gt;&lt;P&gt;I tried to add video from my screencast selection (below message box) but trying to save get this error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DonatasAzaravicius_0-1649788121899.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1054068iA7B618875FB7D153/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DonatasAzaravicius_0-1649788121899.png" alt="DonatasAzaravicius_0-1649788121899.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2022 18:29:01 GMT</pubDate>
    <dc:creator>DonatasAzaravicius</dc:creator>
    <dc:date>2022-04-12T18:29:01Z</dc:date>
    <item>
      <title>Wrong rendering</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/wrong-rendering/m-p/11101671#M2600</link>
      <description>&lt;P&gt;Hi, I made 3 custom entities. Lets call them "A", "B" and "C".&lt;/P&gt;&lt;P&gt;"B" have embedded AcDbText entity and "C" have AcDb3dSolid entity. AcDbText and&amp;nbsp;AcDb3dSolid are not saved to drawing. All of them have exaggerate property, but only "A" save it to drawing, other two don't save it. They get it from "A" entity if exaggerate property change.&lt;/P&gt;&lt;P&gt;"A" have AcDbObjectId of "B" entities it governs. "B" Entities have AcDbObjectId of "C" entities they govern.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I change exaggerate property everything works, but&amp;nbsp;AcDbText and&amp;nbsp;AcDb3dSolid entities sometimes jump from exaggerated state to original state if I rotate, zoom or select them. All this entities are placed in one group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made video to show it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://autode.sk/3O6dUxF" target="_blank"&gt;https://autode.sk/3O6dUxF&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In this video here are one "A" entity. It have 3 "B" entities. All "B" entities have 5 "C" entities each. So, here are 19 entities. All of them place in same group.&lt;/P&gt;&lt;P&gt;I have overridden this methods:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;//*************************************************************************
    // Overridden methods from AcDbObject
    //*************************************************************************
    virtual Acad::ErrorStatus dwgInFields( AcDbDwgFiler * ) override;
    virtual Acad::ErrorStatus dwgOutFields( AcDbDwgFiler * ) const override;
    virtual Acad::ErrorStatus dxfInFields( AcDbDxfFiler * ) override;
    virtual Acad::ErrorStatus dxfOutFields( AcDbDxfFiler * ) const override;

    //*************************************************************************
    // Overridden methods from AcDbEntity
    //*************************************************************************
    Adesk::Boolean subWorldDraw( AcGiWorldDraw * pWd );
    virtual Acad::ErrorStatus subGetOsnapPoints(
        AcDb::OsnapMode       osnapMode,
        Adesk::GsMarker       gsSelectionMark,
        const AcGePoint3d &amp;amp; pickPoint,
        const AcGePoint3d &amp;amp; lastPoint,
        const AcGeMatrix3d &amp;amp; viewXform,
        AcGePoint3dArray &amp;amp; snapPoints,
        AcDbIntArray &amp;amp;         /*geomIds*/ ) const override;
    virtual Acad::ErrorStatus subGetGripPoints( AcGePoint3dArray &amp;amp; gripPoints,
        AcDbIntArray &amp;amp; osnapMasks, AcDbIntArray &amp;amp; geomIds ) const override;
    virtual Acad::ErrorStatus subMoveGripPointsAt( const AcDbIntArray &amp;amp; indices, const AcGeVector3d &amp;amp; offset ) override;
    virtual Acad::ErrorStatus subGetTransformedCopy( const AcGeMatrix3d &amp;amp; xform, AcDbEntity *&amp;amp; ent ) const override;
    virtual Acad::ErrorStatus subTransformBy( const AcGeMatrix3d &amp;amp; xform ) override;
    virtual Acad::ErrorStatus subGetGeomExtents( AcDbExtents &amp;amp; extents ) const override;
    virtual Acad::ErrorStatus subExplode( AcDbVoidPtrArray &amp;amp; entitySet ) const override;
    virtual Acad::ErrorStatus subDeepClone( AcDbObject * pOwnerObject,
        AcDbObject *&amp;amp; pClonedObject,
        AcDbIdMapping &amp;amp; idMap,
        Adesk::Boolean isPrimary = true ) const;

    virtual Acad::ErrorStatus subWblockClone( AcRxObject * pOwnerObject,
        AcDbObject *&amp;amp; pClonedObject,
        AcDbIdMapping &amp;amp; idMap,
        Adesk::Boolean isPrimary = true ) const;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;subGetGripPoints,&amp;nbsp;subMoveGripPointsAt,&amp;nbsp;subGetTransformedCopy,&amp;nbsp;subTransformBy,&amp;nbsp;subExplode,&amp;nbsp;subDeepClone and&amp;nbsp;subWblockClone just return&amp;nbsp;Acad::eOk or&amp;nbsp;Acad::eNotApplicable because I don't want to let user copy them or move them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 18:24:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/wrong-rendering/m-p/11101671#M2600</guid>
      <dc:creator>DonatasAzaravicius</dc:creator>
      <dc:date>2022-04-12T18:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong rendering</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/wrong-rendering/m-p/11101684#M2601</link>
      <description>&lt;P&gt;P.S.&lt;/P&gt;&lt;P&gt;why can't I add video directly to post?&lt;/P&gt;&lt;P&gt;I tried to add video from my screencast selection (below message box) but trying to save get this error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DonatasAzaravicius_0-1649788121899.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1054068iA7B618875FB7D153/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DonatasAzaravicius_0-1649788121899.png" alt="DonatasAzaravicius_0-1649788121899.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 18:29:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/wrong-rendering/m-p/11101684#M2601</guid>
      <dc:creator>DonatasAzaravicius</dc:creator>
      <dc:date>2022-04-12T18:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong rendering</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/wrong-rendering/m-p/11103918#M2602</link>
      <description>&lt;P&gt;It is hard to tell what might go wrong without knowing how your custom entities worldDraw() is implemented and what your SETDHPROJECTEXAGGERATE command actually does. Can you provide a buildable sample plus the DWG from the screencast?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could it be that you have unbalanced &lt;FONT face="courier new,courier"&gt;AcGiGeometry::pushModelTransform()/popModelTransform()&lt;/FONT&gt; calls?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Videos should be attached as screencast links as you did. So people can view them without downloading. Besides that a screencast can show what you are typing and clicking during recording which might be important.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 15:52:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/wrong-rendering/m-p/11103918#M2602</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2022-04-13T15:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong rendering</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/wrong-rendering/m-p/11103964#M2603</link>
      <description>&lt;P&gt;My subWorldDraw have just 3 lines.&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Adesk::Boolean DATB::Stratum::subWorldDraw( AcGiWorldDraw * pWd )
{
    assertReadEnabled();
    pWd-&amp;gt;geometry().draw( &amp;amp;mSolid );
    return Adesk::kTrue;
}&lt;/LI-CODE&gt;&lt;P&gt;My solid is created with this function&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;void DATB::Stratum::createSolid()
{
    AcGeMatrix3d matTrans;
    matTrans.setToTranslation( AcGeVector3d( mInsertion.x, mInsertion.y, mInsertion.z * mExag ) );

    mSolid.createFrustum( (mDepthTo - mDepthFrom) * mExag, 1.0, 1.0, 1.0 );
    mSolid.transformBy( matTrans );
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SETDHPROJECTEXAGGERATE just sets mExag variable using method&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Acad::ErrorStatus DATB::Stratum::setExaggerate( double exag )
{
    assertWriteEnabled();
    mExag = exag;
    this-&amp;gt;createSolid();
    return Acad::eOk;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DWG is just empty dwg. I have used lisp and hard coded entity creation for testing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just need to draw cylinder, so I started to wander if I could drop&amp;nbsp;AcDb3dSolid from my code and just draw it using&amp;nbsp;AcGiWorldDraw. It would be easy to draw Wireframe view as it only needs 2 circles and 4 vertical lines, but how should I draw round cylinder like&amp;nbsp;AcDb3dSolid in Conceptual view?&lt;/P&gt;&lt;P&gt;I have replaced AcDbText with&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;pWd-&amp;gt;geometry().text( origin, normal, direction, 2.5, 1.0, 0.0, mCode.kwszPtr() );&lt;/LI-CODE&gt;&lt;P&gt;And it works better because I can rotate text if view direction change.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 16:15:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/wrong-rendering/m-p/11103964#M2603</guid>
      <dc:creator>DonatasAzaravicius</dc:creator>
      <dc:date>2022-04-13T16:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong rendering</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/wrong-rendering/m-p/11103990#M2604</link>
      <description>&lt;P&gt;P.S.&lt;/P&gt;&lt;P&gt;I think AutoCAD saves graphics at creation and use it letter to draw entity if I change view direction. I wan playing with my text.&lt;/P&gt;&lt;P&gt;I have create it with normal(0.0, 0.0, 1.0) direction(1.0, 0.0, 0.0)&lt;/P&gt;&lt;P&gt;If I rotated view text would use this values, after I exit view change command text would be flat on screen. If I enter view change command and rotate view text again would be on xy plane. But at some point text was at some different plane and not on original xy plane. I think AutoCAD saved dwg to temp files and started to use new saved graphics than I rotate view direction. This may be problem in my video too.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 16:33:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/wrong-rendering/m-p/11103990#M2604</guid>
      <dc:creator>DonatasAzaravicius</dc:creator>
      <dc:date>2022-04-13T16:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong rendering</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/wrong-rendering/m-p/11116057#M2605</link>
      <description>&lt;DIV id="areafixed" class="Element710" style="width: 2160px;"&gt;
&lt;DIV class="Element92"&gt;
&lt;DIV class="Element5"&gt;It looks like the graphic system caches the graphics of&amp;nbsp;&lt;FONT face="courier new,courier"&gt;mSolid&lt;/FONT&gt; for different shademodes.&lt;/DIV&gt;
&lt;DIV class="Element5"&gt;Try to call &lt;FONT face="courier new,courier"&gt;mSolid.recordGraphicsModified()&lt;/FONT&gt; in &lt;FONT face="courier new,courier"&gt;DATB::Stratum::createSolid()&lt;/FONT&gt;.&lt;/DIV&gt;
&lt;DIV class="Element5"&gt;Maybe this will invalidate the cache for &lt;FONT face="courier new,courier"&gt;mSolid&lt;/FONT&gt;.&lt;/DIV&gt;
&lt;DIV class="Element5"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="Element5"&gt;Or change the type of &lt;FONT face="courier new,courier"&gt;mSolid&lt;/FONT&gt; from &lt;FONT face="courier new,courier"&gt;AcDb3dSolid&lt;/FONT&gt; to a&amp;nbsp;&lt;FONT face="courier new,courier"&gt;AcDb3dSolid&lt;/FONT&gt;* pointer and (re)create&lt;/DIV&gt;
&lt;DIV class="Element5"&gt;a new&amp;nbsp;&lt;FONT face="courier new,courier"&gt;AcDb3dSolid&lt;/FONT&gt; in &lt;FONT face="courier new,courier"&gt;createSolid()&lt;/FONT&gt;.&lt;/DIV&gt;
&lt;DIV class="Element5"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="Element5"&gt;Also have a look at &lt;A title="Always redraw in shade mode " href="https://forums.autodesk.com/t5/objectarx/always-redraw-in-shade-mode/m-p/327813" target="_blank" rel="noopener"&gt;this posting&lt;/A&gt;.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Apr 2022 07:57:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/wrong-rendering/m-p/11116057#M2605</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2022-04-20T07:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong rendering</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/wrong-rendering/m-p/11116066#M2606</link>
      <description>&lt;P&gt;Thanks for reply.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 08:00:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/wrong-rendering/m-p/11116066#M2606</guid>
      <dc:creator>DonatasAzaravicius</dc:creator>
      <dc:date>2022-04-20T08:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong rendering</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/wrong-rendering/m-p/13722641#M44082</link>
      <description>&lt;P&gt;very nice dbx entity;&amp;nbsp;&lt;BR /&gt;and&amp;nbsp; how to&amp;nbsp; solved the display issue?&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jul 2025 01:51:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/wrong-rendering/m-p/13722641#M44082</guid>
      <dc:creator>ChengboZhang</dc:creator>
      <dc:date>2025-07-13T01:51:08Z</dc:date>
    </item>
  </channel>
</rss>

