Creating a Digi3D.AI command without programming knowledge using the AI chat panel

November 2, 2026 programming python AI

In this video we create the AREA_TOTAL command in real time with the Digi3D.AI AI chat panel, without writing any code.

AREA_TOTAL works like the Digi3D.AI AREA command, but repeats the measurement until you press Esc:

  1. Select a closed line or a polygon with the data button.
  2. Digitize the point where the text with its area, with two decimal places, is inserted. The text uses the active codes, the active angle (AA), the text height (AT) and the text justification (JT).
  3. Repeat steps 1 and 2 for each geometry you want to measure. Each inserted text is an UNDO step.
  4. Press Esc to finish. The command shows a dialog box with the number of inserted texts and the total area.

The code of the command, area_total.py, is in the https://github.com/digi21/ComandosDigi3DPython repository. To use it, copy the file to your macro directory and type AREA_TOTAL in the command line. It requires Digi3D.AI 2027.0.0.422 or later, the first non-beta version that includes PythonCommand.select_geometry.


Back to the blog