Skip to main content
Version: 2026R1

ImportedSolidModel

class compolyx.ImportedSolidModel(graph, obj, parent=None)

Imported Solid Model class

Attributes

NameDescription
ImportedSolidModel.activeSolid Model is active
ImportedSolidModel.analysis_pliesAnalysis Plies of the Solid Model
ImportedSolidModel.changedStatus boolean
ImportedSolidModel.coordinate_system_indexCoordinate System index
ImportedSolidModel.cut_off_geometry_objsCut-Off Geometry objects
ImportedSolidModel.delete_bad_elementsBoolean whether to delete the erroneous elements
ImportedSolidModel.disable_numbering_updatesDebug option to disable all numbering updates
ImportedSolidModel.disable_skin_componentsDebug option to disable the creation of skin components.
ImportedSolidModel.drop_hanging_nodesIf the hanging nodes are exported or dropped
ImportedSolidModel.element_indexElement offset index
ImportedSolidModel.enabledWhether this object is currently enabled or not
ImportedSolidModel.ext_idID of corresponding Mechanical Model within WB arhcive (ComponentID)
ImportedSolidModel.external_file_pathThe file path where the CAD geometry is loaded from
ImportedSolidModel.formatFile format of the imported mesh
ImportedSolidModel.global_cut_off_materialGlobal material of the cut-off elements
ImportedSolidModel.idID of object
ImportedSolidModel.is_dict_itemSpecifies whether the object is an item of a dict
ImportedSolidModel.is_list_itemSpecifies whether the object is an item of a list
ImportedSolidModel.is_uptodateUpdate status of the object
ImportedSolidModel.layup_mapping_objectsObjects which define the scoping and details of each mapping step.
ImportedSolidModel.link_pathRoot path of the current node in the tree for links to this object
ImportedSolidModel.lockedSolid Model is generated from an imported source and cannot be changed
ImportedSolidModel.material_indexMaterial index
ImportedSolidModel.mesh_componentsElement Sets of the solid mesh
ImportedSolidModel.minimum_volumeDefines the minimum volume of each solid element
ImportedSolidModel.nameName of object
ImportedSolidModel.node_indexNode offset index
ImportedSolidModel.num_coordinate_systems
ImportedSolidModel.num_materials
ImportedSolidModel.num_solid_elements
ImportedSolidModel.num_solid_nodes
ImportedSolidModel.num_solid_sections
ImportedSolidModel.parentParent object in tree
ImportedSolidModel.root_pathRoot path of the current node in the tree
ImportedSolidModel.section_indexSection offset index
ImportedSolidModel.statusStatus of the object
ImportedSolidModel.status_changedBoolean flag which is set to true in C++ when up-to-date status of object changes
ImportedSolidModel.transfer_all_setsWhether to transfer all edge and element sets to the solid model or not
ImportedSolidModel.transferred_edge_setsEdge sets to transfer to solid model
ImportedSolidModel.transferred_element_setsElement sets to transfer to solid model
ImportedSolidModel.uidUID of object
ImportedSolidModel.unit_systemUnit system type of the imported mesh
ImportedSolidModel.use_default_coordinate_system_indexUse consecutive coordinate system numbering
ImportedSolidModel.use_default_element_indexUse consecutive element numbering
ImportedSolidModel.use_default_material_indexUse consecutive material numbering
ImportedSolidModel.use_default_node_indexUse consecutive node numbering
ImportedSolidModel.use_default_section_indexUse consecutive section numbering
ImportedSolidModel.use_solid_model_prefixIf the solid model name is used as a prefix for all components exported to the *cdb file
ImportedSolidModel.use_solsh_elementsIf selected solid-shell elements are written to the *cdb file
ImportedSolidModel.vertexThis will throw an error if the object has been removed from the graph
ImportedSolidModel.warping_limitDefines the maximum allowable warping limit
ImportedSolidModel.write_degenerated_elementsIf set to false no drop-off and cut-off elements are written to the *cdb file

Methods

NameDescription
ImportedSolidModel.clear_generated_data()Function clears generated solid model but keeps all definitions
ImportedSolidModel.copy_cut_off_geometry_obj(source)Copy a Cut-Off Geometry
ImportedSolidModel.copy_layup_mapping_object(source)Copy a Layup Mapping object
ImportedSolidModel.create_cut_off_geometry_obj(name)Create a new cut-off geometry object
ImportedSolidModel.create_layup_mapping_object([...])Create a new layup mapping object
ImportedSolidModel.create_solid_element_set(name)For internal use only: Creates a Solid Element Set
ImportedSolidModel.export_skin(path[, ...])Creates a geometry file (STP or IGES) of the solid model based on the tessellated FE mesh
ImportedSolidModel.find_parent(type)Function steps up the tree and returns the first parent with given type
ImportedSolidModel.get_short_description()
ImportedSolidModel.has_reinforcing_objects()Boolean whether Layup Mapping objects of type reinforcing are present
ImportedSolidModel.import_initial_mesh([...])Load the solid mesh without updating the layup mapping
ImportedSolidModel.mapping_statistics()Returns the statistics of the layup mapping (number of elements, volumes, mass etc.)
ImportedSolidModel.obj_exists()Checks if __obj still references the C++ object (i.e. has not been reset to None by self._delete) and exists in the graph
ImportedSolidModel.refresh_external_source([...])Reloads the mesh from the external source
ImportedSolidModel.remove_global_cut_off_material()Removes the global cutoff material of the SolidModel
ImportedSolidModel.remove_global_drop_off_material()Removes the global dropoff material of the SolidModel
ImportedSolidModel.serialize()Returns the Python serialization string
ImportedSolidModel.serialize_name_and_id()Helper function to serialize name and ID
ImportedSolidModel.shell_elements()Function returns the shell elements where this extrusion operates on
ImportedSolidModel.solid_elements(...)
ImportedSolidModel.update()
ImportedSolidModel.update_mapping_statistics()Computes the mapping statistics per ply to compare the original layup with the mapped data
ImportedSolidModel.visit(visitor)Walk through the tree and let the visitor perform action on every descendant node
ImportedSolidModel.write_h5_and_cdb_file(...)Writes the .h5 and .cdb file for ANSYS Workbench application
ImportedSolidModel.write_lsdyna_solid_model(path)Export solid model as FE model for LS Dyna
ImportedSolidModel.write_solid_model(path)Export solid model as FE model for ANSYS