GXDXFI class¶
- class GXDXFI(handle=0)[source]¶
GXDXFI class.
The
GXDXFI
class is used for importing AutoCAD® dxf files into Geosoft maps.- classmethod create(name)[source]¶
Create
GXDXFI
.New in version 5.0.
License: Geosoft Open License
- classmethod dxf2_map(map, dxfi, scale, u_fac, x0, y0, max_pen, pb_black)[source]¶
Deprecated since version None: None
Draw entities in a DXF file in a map
- Parameters:
New in version 5.0.
License: Geosoft Open License
- dxf2_map_ex(map, scale, u_fac, x0, y0, max_pen, pb_group, group, pb_one_color, p_color)[source]¶
Deprecated since version None: None
Draw entities in a DXF file in a map
- Parameters:
map (GXMAP) – Map handle
scale (float) – User defined map scale
u_fac (float) – Unit conversion factor
x0 (float) – X origin of the map
y0 (float) – Y origin of the map
max_pen (int) – User defined number of pens to use
pb_group (int) – TRUE to place entire DXF in one group
group (str) – Group name for one group
pb_one_color (int) – TRUE to force one color
p_color (int) – MVIEW_COLOR constants
New in version 5.0.6.
License: Geosoft Open License
Note: The DXF will be drawin in the “*Data” view. If a “*Data” view does not exist, it will be created.
- classmethod dxf2_ply(ply, dxfi)[source]¶
Convert a DXF file to a
GXPLY
objectNew in version 5.1.6.
License: Geosoft Open License
- dxf2_view(view, scale, u_fac, x0, y0, max_pen, pb_group, group, pb_one_color, p_color)[source]¶
Deprecated since version None: None
Draw entities in a DXF file to a view in a map
- Parameters:
scale (float) – User defined map scale
u_fac (float) – Unit conversion factor
x0 (float) – X origin of the map
y0 (float) – Y origin of the map
max_pen (int) – User defined number of pens to use
pb_group (int) – TRUE to place entire DXF in one group
group (str) – Group name for one group
pb_one_color (int) – TRUE to force one color
p_color (int) – MVIEW_COLOR constants
New in version 5.0.6.
License: Geosoft Open License
- dxf2_view_ex(view, max_pen, pb_group, group, pb_one_color, color)[source]¶
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
- dxf2_view_no_surfaces(view, max_pen, pb_group, group, pb_one_color, color)[source]¶
Draw entities in a DXF file to a view in a map, but for 3D views skips all surfaces
- 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 9.7.1.
License: Geosoft Open License
- get_range(min_x, max_x, min_y, max_y, min_z, max_z)[source]¶
Get DXF data range
- Parameters:
New in version 6.2.
License: Geosoft Open License
- is_null()[source]¶
Check if this is a null (undefined) instance
- Returns:
True if this is a null (undefined) instance, False otherwise.
- Return type:
bool
- map_extents(min_x, min_y, max_x, max_y)[source]¶
Deprecated since version None: None
Get map extent
- Parameters:
New in version 5.0.
License: Geosoft Open License
- set_ipj(ipj)[source]¶
Deprecated since version None: None
Set the projection of the DXF.
New in version 5.0.
License: Geosoft Open License