<?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: Problem in inheriting AcDbSurface in DBX project in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/problem-in-inheriting-acdbsurface-in-dbx-project/m-p/9691062#M4135</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I initially believe it is case in AutoCAD 2021,&lt;/P&gt;
&lt;P&gt;But going back to previous release,&amp;nbsp;deriving from AcDbSurface never possible, we didn't push the relevant libraries to public SDK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will get back to you on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Aug 2020 07:27:02 GMT</pubDate>
    <dc:creator>moogalm</dc:creator>
    <dc:date>2020-08-14T07:27:02Z</dc:date>
    <item>
      <title>Problem in inheriting AcDbSurface in DBX project</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/problem-in-inheriting-acdbsurface-in-dbx-project/m-p/9690802#M4132</link>
      <description>&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Cann't we inherit AcDbSurface to derive my custom object?&lt;/STRONG&gt;&lt;/FONT&gt; When my class inherit AcDbSurface or AcDbNurbsSurface, I got several&amp;nbsp;error LNK2001 messages, such as "AcDbSurface::createInterferenceObjects". After I tried linking every lib provided, I still cann't compile the project.&lt;/P&gt;&lt;P&gt;Then I tried to inherit AcDbEntity to derive a custom object, but when AcDbSurface/AcDbNurbsSurface is instantiated as a member variable, the error LNK2001 errors show up again. So the second question is, &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;is the AcDbSurface&amp;nbsp;unavailable in DBX project?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 03:48:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/problem-in-inheriting-acdbsurface-in-dbx-project/m-p/9690802#M4132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-14T03:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in inheriting AcDbSurface in DBX project</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/problem-in-inheriting-acdbsurface-in-dbx-project/m-p/9690815#M4133</link>
      <description>&lt;P&gt;Applications should not derive classes from the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;AcDbDimension&lt;/LI&gt;
&lt;LI&gt;AcDbSymbolTable, AcDbSymbolTableRecord, and all classes derived from them&lt;/LI&gt;
&lt;LI&gt;AcDbBlockBegin&lt;/LI&gt;
&lt;LI&gt;AcDbBlockEnd&lt;/LI&gt;
&lt;LI&gt;AcDbSequenceEnd&lt;/LI&gt;
&lt;LI&gt;AcDbSequenceEnd&lt;/LI&gt;
&lt;LI&gt;AcDb2dPolyline&lt;/LI&gt;
&lt;LI&gt;AcDb2dVertex&lt;/LI&gt;
&lt;LI&gt;AcDb3dPolyline&lt;/LI&gt;
&lt;LI&gt;AcDb3dPolylineVertex&lt;/LI&gt;
&lt;LI&gt;AcDbPolygonMesh&lt;/LI&gt;
&lt;LI&gt;AcDbPolygonMeshVertex&lt;/LI&gt;
&lt;LI&gt;AcDbPolyFaceMesh&lt;/LI&gt;
&lt;LI&gt;AcDbPolyFaceMeshVertex&lt;/LI&gt;
&lt;LI&gt;AcDbFaceRecord&lt;/LI&gt;
&lt;LI&gt;AcDbMInsertBlock&lt;/LI&gt;
&lt;LI&gt;AcDbVertex&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Apart from above list, deriving from AcDbSurface should be doable, these are some derived class&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;AcDbExtrudedSurface&lt;/LI&gt;
&lt;LI&gt;AcDbLoftedSurface&lt;/LI&gt;
&lt;LI&gt;AcDbPlaneSurface&lt;/LI&gt;
&lt;LI&gt;AcDbRevolvedSurface&lt;/LI&gt;
&lt;LI&gt;AcDbSweptSurface&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Which version of AutoCAD you are using ?, if it is AutoCAD 2021, you may need to link &lt;CODE&gt;acgeomEnt.lib&lt;/CODE&gt;, and also you need to load &lt;CODE&gt;AcGeomEntObj.dbx&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 04:10:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/problem-in-inheriting-acdbsurface-in-dbx-project/m-p/9690815#M4133</guid>
      <dc:creator>moogalm</dc:creator>
      <dc:date>2020-08-14T04:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in inheriting AcDbSurface in DBX project</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/problem-in-inheriting-acdbsurface-in-dbx-project/m-p/9690906#M4134</link>
      <description>&lt;P&gt;Thanks for your answering. Then how can I derive from the AcDbNurbSurface? I'm using ObjectArx 2021, and I created a DBX project using the arx wizard, and derived a custom object from AcDbEntity using the "ArxWizCustomObject" wizard in VS 2019 (because there is no AcDbNurbSurface, nor AcDbSurface in the opition of the wizard). Then I modified the codes generated manually to inherit AcDbNurbSurface.&amp;nbsp;&lt;/P&gt;&lt;P&gt;#pragma comment(lib, "acgeomEnt.lib")&amp;nbsp;is used to link&amp;nbsp;acgeomEnt.lib. And I got the following link error&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::createInterferenceObjects(class AcArray&amp;lt;class AcDbEntity *,class AcArrayMemCopyReallocator&amp;lt;class AcDbEntity *&amp;gt; &amp;gt; &amp;amp;,class AcDbEntity *,unsigned int)const " (?createInterferenceObjects@AcDbSurface@@UEBA?AW4ErrorStatus@Acad@@AEAV?$AcArray@PEAVAcDbEntity@@V?$AcArrayMemCopyReallocator@PEAVAcDbEntity@@@@@@PEAVAcDbEntity@@I@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::booleanUnion(class AcDbSurface const *,class AcDbSurface * &amp;amp;)" (?booleanUnion@AcDbSurface@@UEAA?AW4ErrorStatus@Acad@@PEBV1@AEAPEAV1@@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::booleanSubtract(class AcDbSurface const *,class AcDbSurface * &amp;amp;)" (?booleanSubtract@AcDbSurface@@UEAA?AW4ErrorStatus@Acad@@PEBV1@AEAPEAV1@@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::booleanSubtract(class AcDb3dSolid const *,class AcDbSurface * &amp;amp;)" (?booleanSubtract@AcDbSurface@@UEAA?AW4ErrorStatus@Acad@@PEBVAcDb3dSolid@@AEAPEAV1@@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::booleanIntersect(class AcDbSurface const *,class AcArray&amp;lt;class AcDbEntity *,class AcArrayMemCopyReallocator&amp;lt;class AcDbEntity *&amp;gt; &amp;gt; &amp;amp;)" (?booleanIntersect@AcDbSurface@@UEAA?AW4ErrorStatus@Acad@@PEBV1@AEAV?$AcArray@PEAVAcDbEntity@@V?$AcArrayMemCopyReallocator@PEAVAcDbEntity@@@@@@@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::booleanIntersect(class AcDb3dSolid const *,class AcArray&amp;lt;class AcDbEntity *,class AcArrayMemCopyReallocator&amp;lt;class AcDbEntity *&amp;gt; &amp;gt; &amp;amp;)" (?booleanIntersect@AcDbSurface@@UEAA?AW4ErrorStatus@Acad@@PEBVAcDb3dSolid@@AEAV?$AcArray@PEAVAcDbEntity@@V?$AcArrayMemCopyReallocator@PEAVAcDbEntity@@@@@@@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::imprintEntity(class AcDbEntity const *)" (?imprintEntity@AcDbSurface@@UEAA?AW4ErrorStatus@Acad@@PEBVAcDbEntity@@@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::createSectionObjects(class AcGePlane const &amp;amp;,class AcArray&amp;lt;class AcDbEntity *,class AcArrayMemCopyReallocator&amp;lt;class AcDbEntity *&amp;gt; &amp;gt; &amp;amp;)const " (?createSectionObjects@AcDbSurface@@UEBA?AW4ErrorStatus@Acad@@AEBVAcGePlane@@AEAV?$AcArray@PEAVAcDbEntity@@V?$AcArrayMemCopyReallocator@PEAVAcDbEntity@@@@@@@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::sliceByPlane(class AcGePlane const &amp;amp;,class AcDbSurface * &amp;amp;,class AcDbSurface * &amp;amp;)" (?sliceByPlane@AcDbSurface@@UEAA?AW4ErrorStatus@Acad@@AEBVAcGePlane@@AEAPEAV1@1@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::sliceBySurface(class AcDbSurface const *,class AcDbSurface * &amp;amp;,class AcDbSurface * &amp;amp;)" (?sliceBySurface@AcDbSurface@@UEAA?AW4ErrorStatus@Acad@@PEBV1@AEAPEAV1@1@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::chamferEdges(class AcArray&amp;lt;class AcDbSubentId *,class AcArrayMemCopyReallocator&amp;lt;class AcDbSubentId *&amp;gt; &amp;gt; const &amp;amp;,class AcDbSubentId const &amp;amp;,double,double)" (?chamferEdges@AcDbSurface@@UEAA?AW4ErrorStatus@Acad@@AEBV?$AcArray@PEAVAcDbSubentId@@V?$AcArrayMemCopyReallocator@PEAVAcDbSubentId@@@@@@AEBVAcDbSubentId@@NN@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::filletEdges(class AcArray&amp;lt;class AcDbSubentId *,class AcArrayMemCopyReallocator&amp;lt;class AcDbSubentId *&amp;gt; &amp;gt; const &amp;amp;,class AcArray&amp;lt;double,class AcArrayMemCopyReallocator&amp;lt;double&amp;gt; &amp;gt; const &amp;amp;,class AcArray&amp;lt;double,class AcArrayMemCopyReallocator&amp;lt;double&amp;gt; &amp;gt; const &amp;amp;,class AcArray&amp;lt;double,class AcArrayMemCopyReallocator&amp;lt;double&amp;gt; &amp;gt; const &amp;amp;)" (?filletEdges@AcDbSurface@@UEAA?AW4ErrorStatus@Acad@@AEBV?$AcArray@PEAVAcDbSubentId@@V?$AcArrayMemCopyReallocator@PEAVAcDbSubentId@@@@@@AEBV?$AcArray@NV?$AcArrayMemCopyReallocator@N@@@@11@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::setSubentColor(class AcDbSubentId const &amp;amp;,class AcCmColor const &amp;amp;)" (?setSubentColor@AcDbSurface@@UEAA?AW4ErrorStatus@Acad@@AEBVAcDbSubentId@@AEBVAcCmColor@@@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::getSubentColor(class AcDbSubentId const &amp;amp;,class AcCmColor &amp;amp;)const " (?getSubentColor@AcDbSurface@@UEBA?AW4ErrorStatus@Acad@@AEBVAcDbSubentId@@AEAVAcCmColor@@@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::setSubentMaterial(class AcDbSubentId const &amp;amp;,class AcDbObjectId const &amp;amp;)" (?setSubentMaterial@AcDbSurface@@UEAA?AW4ErrorStatus@Acad@@AEBVAcDbSubentId@@AEBVAcDbObjectId@@@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::getSubentMaterial(class AcDbSubentId const &amp;amp;,class AcDbObjectId &amp;amp;)const " (?getSubentMaterial@AcDbSurface@@UEBA?AW4ErrorStatus@Acad@@AEBVAcDbSubentId@@AEAVAcDbObjectId@@@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::setSubentMaterialMapper(class AcDbSubentId const &amp;amp;,class AcGiMapper const &amp;amp;)" (?setSubentMaterialMapper@AcDbSurface@@UEAA?AW4ErrorStatus@Acad@@AEBVAcDbSubentId@@AEBVAcGiMapper@@@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::getSubentMaterialMapper(class AcDbSubentId const &amp;amp;,class AcGiMapper &amp;amp;)const " (?getSubentMaterialMapper@AcDbSurface@@UEBA?AW4ErrorStatus@Acad@@AEBVAcDbSubentId@@AEAVAcGiMapper@@@Z)
1&amp;gt;igaShell.obj : error LNK2019: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::dwgInFields(class AcDbDwgFiler *)" (?dwgInFields@AcDbSurface@@UEAA?AW4ErrorStatus@Acad@@PEAVAcDbDwgFiler@@@Z)，函数 "public: virtual enum Acad::ErrorStatus __cdecl igaShell::dwgInFields(class AcDbDwgFiler *)" (?dwgInFields@igaShell@@UEAA?AW4ErrorStatus@Acad@@PEAVAcDbDwgFiler@@@Z) 中引用了该符号
1&amp;gt;igaShell.obj : error LNK2019: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::dwgOutFields(class AcDbDwgFiler *)const " (?dwgOutFields@AcDbSurface@@UEBA?AW4ErrorStatus@Acad@@PEAVAcDbDwgFiler@@@Z)，函数 "public: virtual enum Acad::ErrorStatus __cdecl igaShell::dwgOutFields(class AcDbDwgFiler *)const " (?dwgOutFields@igaShell@@UEBA?AW4ErrorStatus@Acad@@PEAVAcDbDwgFiler@@@Z) 中引用了该符号
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::dxfInFields(class AcDbDxfFiler *)" (?dxfInFields@AcDbSurface@@UEAA?AW4ErrorStatus@Acad@@PEAVAcDbDxfFiler@@@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::dxfOutFields(class AcDbDxfFiler *)const " (?dxfOutFields@AcDbSurface@@UEBA?AW4ErrorStatus@Acad@@PEAVAcDbDxfFiler@@@Z)
1&amp;gt;igaShell.obj : error LNK2001: unresolved external symbol "public: virtual enum Acad::ErrorStatus __cdecl AcDbSurface::getPlane(class AcGePlane &amp;amp;,enum AcDb::Planarity &amp;amp;)const " (?getPlane@AcDbSurface@@UEBA?AW4ErrorStatus@Acad@@AEAVAcGePlane@@AEAW4Planarity@AcDb@@@Z)&lt;/LI-CODE&gt;&lt;P&gt;The header and cpp files of the custom object are attached blow.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 05:51:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/problem-in-inheriting-acdbsurface-in-dbx-project/m-p/9690906#M4134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-14T05:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in inheriting AcDbSurface in DBX project</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/problem-in-inheriting-acdbsurface-in-dbx-project/m-p/9691062#M4135</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I initially believe it is case in AutoCAD 2021,&lt;/P&gt;
&lt;P&gt;But going back to previous release,&amp;nbsp;deriving from AcDbSurface never possible, we didn't push the relevant libraries to public SDK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will get back to you on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 07:27:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/problem-in-inheriting-acdbsurface-in-dbx-project/m-p/9691062#M4135</guid>
      <dc:creator>moogalm</dc:creator>
      <dc:date>2020-08-14T07:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in inheriting AcDbSurface in DBX project</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/problem-in-inheriting-acdbsurface-in-dbx-project/m-p/9691205#M4136</link>
      <description>&lt;P&gt;Thanks I raised a Documentation ticket with Help and Learning team.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 09:09:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/problem-in-inheriting-acdbsurface-in-dbx-project/m-p/9691205#M4136</guid>
      <dc:creator>moogalm</dc:creator>
      <dc:date>2020-08-14T09:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in inheriting AcDbSurface in DBX project</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/problem-in-inheriting-acdbsurface-in-dbx-project/m-p/9691213#M4137</link>
      <description>&lt;P&gt;Thanks a lot. You mean it's a bug? Please inform me when it's fixed &lt;span class="lia-unicode-emoji" title=":face_blowing_a_kiss:"&gt;😘&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 09:18:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/problem-in-inheriting-acdbsurface-in-dbx-project/m-p/9691213#M4137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-14T09:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in inheriting AcDbSurface in DBX project</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/problem-in-inheriting-acdbsurface-in-dbx-project/m-p/9691220#M4138</link>
      <description>&lt;P&gt;No, I don't mean it is bug &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;, after investigating I realized AcDbSurface was never designed to be inheritable, it is just this piece is missing in our documentation, next time when a developer would like to create a custom entity they can always check&amp;nbsp; this &lt;A href="https://help.autodesk.com/view/OARX/2021/ENU/?guid=GUID-EA8FCEC4-B139-4360-BB5B-C900DE281DB1" target="_blank" rel="noopener"&gt;link&lt;/A&gt; what Entities can be derived and not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 09:27:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/problem-in-inheriting-acdbsurface-in-dbx-project/m-p/9691220#M4138</guid>
      <dc:creator>moogalm</dc:creator>
      <dc:date>2020-08-14T09:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in inheriting AcDbSurface in DBX project</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/problem-in-inheriting-acdbsurface-in-dbx-project/m-p/9691224#M4139</link>
      <description>&lt;P&gt;OK, looks like I have to find an alternative solution. Thanks all the same.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 09:31:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/problem-in-inheriting-acdbsurface-in-dbx-project/m-p/9691224#M4139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-14T09:31:07Z</dc:date>
    </item>
  </channel>
</rss>

