<?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: Python cannot call table constructor (Dynamo Node) in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/python-cannot-call-table-constructor-dynamo-node/m-p/14079693#M27502</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/18032373"&gt;@triekGJKRK&lt;/a&gt;&amp;nbsp; I can reproduce the issue you showed:&lt;/P&gt;
&lt;P&gt;in spite of&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&amp;nbsp;Autodesk.AutoCAD.DatabaseServices&amp;nbsp;&lt;SPAN&gt;import&lt;/SPAN&gt;&amp;nbsp;*&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;tbl = Table()&amp;nbsp; causes error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But once this line added, as&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3650456"&gt;@essam-salah&lt;/a&gt;&amp;nbsp;suggested:&lt;/P&gt;
&lt;PRE class="lia-code-sample line-numbers language-python" tabindex="0"&gt;&lt;CODE&gt;import Autodesk.AutoCAD.DatabaseServices as acDb&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;and the table creating line changed to&lt;/P&gt;
&lt;P&gt;tbl = acDb.Table()&lt;/P&gt;
&lt;P&gt;the error is gone away and the Table entity can be created successfully.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, this change (i.e. import Autodesk.AutoCAD.DatabaseServices as acDb) is not needed for creating other entities (DBText, Line...). Do not know why the Dynamo's python script interpreter could not recognize Table with "from Autodesk.AutoCAD.DatabaseServices import *" in place, yet it still recognize other entity classes. Maybe there are other few ones that would behave the same as Table, but with my limited Dynamo learning knowledge, I cannot say.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Apr 2026 19:57:42 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2026-04-06T19:57:42Z</dc:date>
    <item>
      <title>Python cannot call table constructor (Dynamo Node)</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/python-cannot-call-table-constructor-dynamo-node/m-p/14078874#M27499</link>
      <description>&lt;P&gt;I want to create a table via python&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/OARX/2024/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_DatabaseServices_Table" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/OARX/2024/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_DatabaseServices_Table&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the correct library in python to construct a table:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&amp;nbsp;Autodesk.AutoCAD.DatabaseServices&amp;nbsp;&lt;SPAN&gt;import&lt;/SPAN&gt;&amp;nbsp;*&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;But these commands both fail:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;tbl = Autodesk.AutoCAD.DatabaseServices.Table()
tbl02 = Table()&lt;/LI-CODE&gt;&lt;P&gt;Python Claims that it does not know what Autodesk is, and running the constructor alone it says there is no public constructor. All examples online say otherwise, I have tried running this Dynamo Python node via IronPython2/3 &amp;amp; Cpython3 to no avail. Any tips as what is wrong with my workspace? Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2026 05:27:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/python-cannot-call-table-constructor-dynamo-node/m-p/14078874#M27499</guid>
      <dc:creator>triekGJKRK</dc:creator>
      <dc:date>2026-04-06T05:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Python cannot call table constructor (Dynamo Node)</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/python-cannot-call-table-constructor-dynamo-node/m-p/14079605#M27501</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/18032373"&gt;@triekGJKRK&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do this instead:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import Autodesk.AutoCAD.DatabaseServices as acDb&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;myTable = acDb.Table()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2026 18:43:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/python-cannot-call-table-constructor-dynamo-node/m-p/14079605#M27501</guid>
      <dc:creator>essam-salah</dc:creator>
      <dc:date>2026-04-06T18:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Python cannot call table constructor (Dynamo Node)</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/python-cannot-call-table-constructor-dynamo-node/m-p/14079693#M27502</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/18032373"&gt;@triekGJKRK&lt;/a&gt;&amp;nbsp; I can reproduce the issue you showed:&lt;/P&gt;
&lt;P&gt;in spite of&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&amp;nbsp;Autodesk.AutoCAD.DatabaseServices&amp;nbsp;&lt;SPAN&gt;import&lt;/SPAN&gt;&amp;nbsp;*&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;tbl = Table()&amp;nbsp; causes error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But once this line added, as&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3650456"&gt;@essam-salah&lt;/a&gt;&amp;nbsp;suggested:&lt;/P&gt;
&lt;PRE class="lia-code-sample line-numbers language-python" tabindex="0"&gt;&lt;CODE&gt;import Autodesk.AutoCAD.DatabaseServices as acDb&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;and the table creating line changed to&lt;/P&gt;
&lt;P&gt;tbl = acDb.Table()&lt;/P&gt;
&lt;P&gt;the error is gone away and the Table entity can be created successfully.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, this change (i.e. import Autodesk.AutoCAD.DatabaseServices as acDb) is not needed for creating other entities (DBText, Line...). Do not know why the Dynamo's python script interpreter could not recognize Table with "from Autodesk.AutoCAD.DatabaseServices import *" in place, yet it still recognize other entity classes. Maybe there are other few ones that would behave the same as Table, but with my limited Dynamo learning knowledge, I cannot say.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2026 19:57:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/python-cannot-call-table-constructor-dynamo-node/m-p/14079693#M27502</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2026-04-06T19:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Python cannot call table constructor (Dynamo Node)</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/python-cannot-call-table-constructor-dynamo-node/m-p/14079718#M27503</link>
      <description>&lt;P&gt;I am so glad you said this I am not going crazy - yes I have noticed this behavior as well! I don't know what causes it but it's good to have this in writing, I should post this in the Dynamo forums!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2026 20:16:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/python-cannot-call-table-constructor-dynamo-node/m-p/14079718#M27503</guid>
      <dc:creator>triekGJKRK</dc:creator>
      <dc:date>2026-04-06T20:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Python cannot call table constructor (Dynamo Node)</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/python-cannot-call-table-constructor-dynamo-node/m-p/14079788#M27504</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@norman.yuan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;..&lt;P&gt;However, this change (i.e. import Autodesk.AutoCAD.DatabaseServices as acDb) is not needed for creating other entities (DBText, Line...). Do not know why the Dynamo's python script interpreter could not recognize Table with "from Autodesk.AutoCAD.DatabaseServices import *" in place, yet it still recognize other entity classes. Maybe there are other few ones that would behave the same as Table, but with my limited Dynamo learning knowledge, I cannot say.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;i always use full name (acDb.Line, acDb.DBText, ...) in my code, only for small scripts and and teaching snippets i write Line, DBText, but it is a rule of thumb to reduce ambiguity and run time errors is to use full name (acDb.Line not Line). specially for type like Table it's very common to be exist in other namespaces/modules.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import Autodesk.AutoCAD.Runtime as _AcRt              #type:ignore
import Autodesk.AutoCAD.ApplicationServices as _AcAp  #type:ignore
import Autodesk.AutoCAD.EditorInput as _AcEd          #type:ignore
import Autodesk.AutoCAD.DatabaseServices as _AcDb     #type:ignore
import Autodesk.AutoCAD.Geometry as _AcGe             #type:ignore
from Autodesk.AutoCAD.DatabaseServices import DxfCode as typeCode #type:ignore
# Import references from Civil3D
import Autodesk.Civil.ApplicationServices as _AccAp   #type:ignore
import Autodesk.Civil.DatabaseServices as _AccDb      #type:ignore&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Apr 2026 21:36:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/python-cannot-call-table-constructor-dynamo-node/m-p/14079788#M27504</guid>
      <dc:creator>essam-salah</dc:creator>
      <dc:date>2026-04-06T21:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Python cannot call table constructor (Dynamo Node)</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/python-cannot-call-table-constructor-dynamo-node/m-p/14079817#M27505</link>
      <description>&lt;P&gt;Very good tip. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just realized that since the boiler plate code Dynamo automatically added for the Python Script Node imports both Autodesk.AutoCAD.DatabaseServices and Autodesk.Civil.DatabaseServices:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;from Autodesk.AutoCAD.DatabaseServices import *
from Autodesk.AutoCAD.Geometry import *

# Import references from Civil3D
from Autodesk.Civil.ApplicationServices import *
from Autodesk.Civil.DatabaseServices import *&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;therefore, create a namespace alias, as&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3650456"&gt;@essam-salah&lt;/a&gt;&amp;nbsp;pointed out, is necessary, because both namespace has Table class, thus the error. Obviously, if the Python Script node only deals with AutoCAD, not Civil object, then removing "from Autodesk.Civil.Databases import *" would allow tbl = Table() work.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2026 20:46:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/python-cannot-call-table-constructor-dynamo-node/m-p/14079817#M27505</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2026-04-07T20:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Python cannot call table constructor (Dynamo Node)</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/python-cannot-call-table-constructor-dynamo-node/m-p/14084615#M27514</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@norman.yuan&lt;/a&gt;&amp;nbsp; This conversation exaclty, from your truly&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; This is probably the more correct awnser I will set it as the correct one&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://forum.dynamobim.com/t/python-node-is-the-table-class-exposed-to-python/114361/6" target="_blank" rel="noopener"&gt;Python Node - is the Table class exposed to python? - Civil 3D - Dynamo&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 00:59:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/python-cannot-call-table-constructor-dynamo-node/m-p/14084615#M27514</guid>
      <dc:creator>triekGJKRK</dc:creator>
      <dc:date>2026-04-10T00:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Python cannot call table constructor (Dynamo Node)</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/python-cannot-call-table-constructor-dynamo-node/m-p/14084618#M27515</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3650456"&gt;@essam-salah&lt;/a&gt;&amp;nbsp;we have come to the core of the problem, which is that we imported two conflicting libraries. See the thread&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 01:02:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/python-cannot-call-table-constructor-dynamo-node/m-p/14084618#M27515</guid>
      <dc:creator>triekGJKRK</dc:creator>
      <dc:date>2026-04-10T01:02:55Z</dc:date>
    </item>
  </channel>
</rss>

