digi3d module
digi3d is available to scripts running inside Digi3D.AI: the Python pane and quality checks. It provides drawing and photogrammetric windows, photogrammetric projects, commands, panes, and other services. It cannot be imported in console applications.
The usual entry point is current_view(), returning the active DrawingView.
digi3d also re-exports core digi21.base types. After import digi3d, use them with digi3d. (for example, digi3d.Line) without importing digi21.base. To omit the digi3d. prefix, import with from digi3d import ...:
FeatureCode, Geometry, Point, Text, Line, Polygon, Complex, DigiTab, DigiTabNode, DrawingFile, Camera, TextJustification, StandardViewpoint, PointLineRelativePosition.
Classes
- DrawingView — drawing window (geometries, commands, configuration).
- PhotogrammetricView — photogrammetric window (cursor, zoom, model, 3D camera).
- Command — Digi3D.AI command.
- PythonCommand — base for interactive Python commands.
- Topology —
Topology,TopologyRing,TopologyPolygon. - GeographicCalculator — geographic calculations (areas, distances, azimuths).
- Representation — geometry graphic representation.
- Tasks —
TaskBase,TaskMessageBox,TaskGotoCoordinates.
Functions and enumerations
- Module functions —
current_view,open_drawing, photogrammetric window and projects, messages, panes, dialogs, utilities. - Enumerations —
InputDevice,MusicType,BallonType,TaskType,FillType. - Exceptions —
GeometryError,GeometryRelationError,GeometryWarning,DatabaseFieldError.