GXDXFI class¶
-
class
GXDXFI
(handle=0)¶ GXDXFI class.
The
GXDXFI
class is used for importing AutoCAD® dxf files into Geosoft maps.-
classmethod
create
(name)¶ Create
GXDXFI
.Parameters: name (str) – DXF file name Returns: GXDXFI
ObjectReturn type: GXDXFI New in version 5.0.
License: Geosoft Open License
-
classmethod
dxf2_ply
(ply, dxfi)¶ Convert a DXF file to a
GXPLY
objectParameters: New in version 5.1.6.
License: Geosoft Open License
-
dxf2_view_ex
(view, max_pen, pb_group, group, pb_one_color, color)¶ Draw entities in a DXF file to a view in a map
Parameters: - max_pen (int) – User defined number of pens to use (can be
iDUMMY
) - pb_group (int) – TRUE to place entire DXF in one group
- group (str) – Group name for one group (can be “” if above is FALSE)
- pb_one_color (int) – TRUE to force one color
- color (int) – MVIEW_COLOR constants (ignored if above is FALSE)
New in version 6.2.
License: Geosoft Open License
- max_pen (int) – User defined number of pens to use (can be
-
get_range
(min_x, max_x, min_y, max_y, min_z, max_z)¶ Get DXF data range
Parameters: New in version 6.2.
License: Geosoft Open License
-
is_null
()¶ Check if this is a null (undefined) instance
Returns: True if this is a null (undefined) instance, False otherwise. Return type: bool
-
classmethod