Surface

class Surface(Body)

Introduced in DXF version R2007 (AC1021), dxftype is SURFACE.

A 3D object created by an ACIS based geometry kernel provided by the Spatial Corp. Create Surface objects in layouts and blocks by factory function add_surface().

DXF Attributes for Surface

Common DXF Attributes for DXF R13 or later

Surface.dxf.u_count

Number of U isolines

Surface.dxf.v_count

Number of V isolines

Surface Methods

Surface.get_acis_data()

Get the ACIS source code as a list of strings.

Surface.set_acis_data(test_lines)

Set the ACIS source code as a list of strings without line endings.

Surface.edit_data()

Context manager for ACIS text lines, returns ModelerGeometryData.

ExtrudedSurface

class ExtrudedSurface(Surface)

Introduced in DXF version R2007 (AC1021), dxftype is EXTRUDEDSURFACE.

DXF Attributes for ExtrudedSurface

ExtrudedSurface.dxf.class_id
ExtrudedSurface.dxf.sweep_vector
ExtrudedSurface.dxf.draft_angle
ExtrudedSurface.dxf.draft_start_distance
ExtrudedSurface.dxf.draft_end_distance
ExtrudedSurface.dxf.twist_angle
ExtrudedSurface.dxf.scale_factor
ExtrudedSurface.dxf.align_angle
ExtrudedSurface.dxf.solid
ExtrudedSurface.dxf.sweep_alignment_flags
  • 0 = No alignment
  • 1 = Align sweep entity to path
  • 2 = Translate sweep entity to path
  • 3 = Translate path to sweep entity
ExtrudedSurface.dxf.align_start
ExtrudedSurface.dxf.bank
ExtrudedSurface.dxf.base_point_set
ExtrudedSurface.dxf.sweep_entity_transform_computed
ExtrudedSurface.dxf.path_entity_transform_computed
ExtrudedSurface.dxf.reference_vector_for_controlling_twist

ExtrudedSurface Methods

ExtrudedSurface.set_transformation_matrix_extruded_entity(matrix)
Parameters:matrix – iterable of 16 numeric values.
ExtrudedSurface.get_transformation_matrix_extruded_entity()
Returns:Matrix44 object
ExtrudedSurface.set_sweep_entity_transformation_matrix(matrix)
Parameters:matrix – iterable of 16 numeric values.
ExtrudedSurface.get_sweep_entity_transformation_matrix()
Returns:Matrix44 object
ExtrudedSurface.set_path_entity_transformation_matrix(matrix)
Parameters:matrix – iterable of 16 numeric values.
ExtrudedSurface.get_path_entity_transformation_matrix()
Returns:Matrix44 object

LoftedSurface

class LoftedSurface(Surface)

Introduced in DXF version R2007 (AC1021), dxftype is LOFTEDSURFACE.

DXF Attributes for LoftedSurface

LoftedSurface.dxf.plane_normal_lofting_type
LoftedSurface.dxf.start_draft_angle
LoftedSurface.dxf.end_draft_angle
LoftedSurface.dxf.start_draft_magnitude
LoftedSurface.dxf.end_draft_magnitude
LoftedSurface.dxf.arc_length_parameterization
LoftedSurface.dxf.no_twist
LoftedSurface.dxf.align_direction
LoftedSurface.dxf.simple_surfaces
LoftedSurface.dxf.closed_surfaces
LoftedSurface.dxf.solid
LoftedSurface.dxf.ruled_surface
LoftedSurface.dxf.virtual_guide

LoftedSurface Methods

LoftedSurface.set_transformation_matrix_lofted_entity(matrix)
Parameters:matrix – iterable of 16 numeric values.
LoftedSurface.get_transformation_matrix_lofted_entity()
Returns:Matrix44 object

RevolvedSurface

class RevolvedSurface(Surface)

Introduced in DXF version R2007 (AC1021), dxftype is REVOLVEDSURFACE.

DXF Attributes for RevolvedSurface

RevolvedSurface.dxf.class_id
RevolvedSurface.dxf.axis_point
RevolvedSurface.dxf.axis_vector
RevolvedSurface.dxf.revolve_angle
RevolvedSurface.dxf.start_angle
RevolvedSurface.dxf.draft_angle
RevolvedSurface.dxf.start_draft_distance
RevolvedSurface.dxf.end_draft_distance
RevolvedSurface.dxf.twist_angle
RevolvedSurface.dxf.solid
RevolvedSurface.dxf.close_to_axis

RevolvedSurface Methods

RevolvedSurface.set_transformation_matrix_revolved_entity(matrix)
Parameters:matrix – iterable of 16 numeric values.
RevolvedSurface.get_transformation_matrix_revolved_entity()
Returns:Matrix44 object

SweptSurface

class SweptSurface(Surface)

Introduced in DXF version R2007 (AC1021), dxftype is SWEPTSURFACE.

DXF Attributes for SweptSurface

SweptSurface.dxf.swept_entity_id
SweptSurface.dxf.path_entity_id
SweptSurface.dxf.draft_angle
SweptSurface.dxf.draft_start_distance
SweptSurface.dxf.draft_end_distance
SweptSurface.dxf.twist_angle
SweptSurface.dxf.scale_factor
SweptSurface.dxf.align_angle
SweptSurface.dxf.solid
SweptSurface.dxf.sweep_alignment
SweptSurface.dxf.align_start
SweptSurface.dxf.bank
SweptSurface.dxf.base_point_set
SweptSurface.dxf.sweep_entity_transform_computed
SweptSurface.dxf.path_entity_transform_computed
SweptSurface.dxf.reference_vector_for_controlling_twist

SweptSurface Methods

SweptSurface.set_transformation_matrix_sweep_entity(matrix)
Parameters:matrix – iterable of 16 numeric values.
SweptSurface.get_transformation_matrix_sweep_entity()
Returns:Matrix44 object
SweptSurface.set_transformation_matrix_path_entity(matrix)
Parameters:matrix – iterable of 16 numeric values.
SweptSurface.get_transformation_matrix_path_entity()
Returns:Matrix44 object
SweptSurface.set_sweep_entity_transformation_matrix(matrix)
Parameters:matrix – iterable of 16 numeric values.
SweptSurface.get_sweep_entity_transformation_matrix()
Returns:Matrix44 object
SweptSurface.set_path_entity_transformation_matrix(matrix)
Parameters:matrix – iterable of 16 numeric values.
SweptSurface.get_path_entity_transformation_matrix()
Returns:Matrix44 object