Modeler2D#
- class ansys.aedt.core.modeler.modeler_2d.Modeler2D(application)#
Provides the Modeler 2D application interface.
This class is inherited in the caller application and is accessible through the modeler variable object( eg.
maxwell2d.modeler
).Examples
>>> from ansys.aedt.core import Maxwell2d >>> app = Maxwell2d() >>> my_modeler = app.modeler
Methods
Add objects that have been created in the modeler by previous operations.
Add objects that have been created in the modeler by previous operations.
Add objects that have been created in the modeler by previous operations.
Add 3D components and user-defined models that have been created in the modeler by previous operations.
Modeler2D.automatic_thicken_sheets
(...[, ...])Create thickened sheets for a list of input faces.
Disconnect from the running SpaceClaim instance.
Modeler2D.calculate_radius_2D
(assignment[, ...])Calculate the extremity of an object in the radial direction.
Modeler2D.chassis_subtraction
(chassis_part)Subtract all non-vacuum objects from the main chassis object.
Modeler2D.check_plane
(assignment, face_location)Check for the plane that is defined as the face for an object.
Modeler2D.clean_objects_name
(main_part_name)Clean the names of the objects for a main part.
Clean up objects that no longer exist in the modeler because they were removed by previous operations.
Clean up points that no longer exist in the modeler because they were removed by previous operations.
Clean up solids that no longer exist in the modeler because they were removed by previous operations.
Modeler2D.clone
(assignment)Clone objects from a list of object IDs.
Modeler2D.connect
(assignment)Connect objects from a list.
Modeler2D.convert_segments_to_line
(assignment)Convert a CreatePolyline list of segments to lines.
Modeler2D.convert_to_selections
(assignment)Convert modeler objects.
Modeler2D.copy
(assignment)Copy objects to the clipboard.
Modeler2D.cover_faces
(assignment)Cover a face.
Modeler2D.cover_lines
(assignment)Cover closed lines and transform them to a sheet.
Modeler2D.create_air_region
([x_pos, y_pos, ...])Create an air region.
Modeler2D.create_airbox
([offset, ...])Create an airbox that is as big as the bounding extension of the project.
Modeler2D.create_circle
(origin, radius[, ...])Create a circle.
Modeler2D.create_coordinate_system
([origin, ...])Create a coordinate system.
Modeler2D.create_ellipse
(origin, ...[, ...])Create an ellipse.
Create a face coordinate system.
Modeler2D.create_face_list
(assignment[, name])Create a list of faces given a list of face ID or a list of objects.
Create a faceted bondwire from an existing true surface bondwire.
Modeler2D.create_group
([objects, ...])Group objects or groups into one group.
Create an object coordinate system.
Modeler2D.create_object_from_edge
(assignment)Create an object from one or multiple edges.
Modeler2D.create_object_from_face
(assignment)Create an object from one or multiple face.
Modeler2D.create_object_list
(assignment[, name])Create an object list given a list of object names.
Modeler2D.create_outer_facelist
(assignment)Create a face list from a list of outer objects.
Modeler2D.create_plane
([name, plane_base_x, ...])Create a plane.
Modeler2D.create_point
(position[, name, color])Create a point.
Modeler2D.create_polyline
(points[, ...])Draw a polyline object in the 3D modeler.
Modeler2D.create_rectangle
(origin, sizes[, ...])Create a rectangle.
Modeler2D.create_region
([pad_value, ...])Create an air region.
Modeler2D.create_regular_polygon
(origin, ...)Create a rectangle.
Modeler2D.create_sheet_to_ground
(assignment)Create a sheet between an object and a ground plane.
Modeler2D.create_spiral_on_face
(assignment, ...)Create a Spiral Polyline inside a face.
Modeler2D.create_subregion
(padding_values, ...)Create a subregion.
Modeler2D.create_udp
(dll, parameters[, ...])Create a user-defined primitive (UDP).
Modeler2D.delete
([assignment])Delete objects or groups.
Modeler2D.delete_objects_containing
(...[, ...])Delete all objects with a given prefix.
Modeler2D.detach_faces
(assignment, faces)Section the object.
Modeler2D.does_object_exists
(assignment)Check to see if an object exists.
Modeler2D.duplicate_along_line
(assignment, ...)Duplicate a selection along a line.
Modeler2D.duplicate_and_mirror
(assignment, ...)Duplicate and mirror a selection.
Modeler2D.duplicate_around_axis
(assignment, axis)Duplicate a selection around an axis.
Create a duplicate coordinate system referenced to the global coordinate system.
Modeler2D.edit_region_dimensions
(values)Modify the dimensions of the region.
Modeler2D.explicitly_subtract
(tool_parts, ...)Explicitly subtract all elements in a SolveInside list and a SolveSurface list.
Modeler2D.export_3d_model
([file_name, ...])Export the 3D model.
Modeler2D.find_closest_edges
(start_object, ...)Retrieve the two closest edges that are not perpendicular for two objects.
Find any new objects in the modeler that were created by previous operations.
Modeler2D.find_point_around
(assignment, ...)Find the point around an object.
Modeler2D.find_port_faces
(assignment)Find the vacuums given a list of input sheets.
Fit all.
Flatten the assembly, removing all group trees.
Modeler2D.generate_object_history
(assignment)Generate history for the object.
Modeler2D.get_bodynames_from_position
(position)Retrieve the names of the objects that are in contact with a given point.
Retrieve all boundary names.
Retrieve the x, y and z size of the bounding box for the model.
Get the edge ID closest to a given position.
Modeler2D.get_edge_length
(assignment)Get the length of an edge.
Modeler2D.get_edge_midpoint
(assignment)Retrieve the midpoint coordinates of a given edge ID or edge name.
Modeler2D.get_edge_vertices
(assignment)Retrieve the vertex IDs of a given edge ID or edge name.
Modeler2D.get_edgeid_from_position
(position)Get an edge ID from a position.
Modeler2D.get_edgeids_from_vertexid
(vertex, ...)Retrieve edge IDs for a vertex ID.
Modeler2D.get_edges_for_circuit_port
(assignment)Retrieve two edge IDs suitable for the circuit port.
Retrieve two edge IDs that are suitable for a circuit port from a sheet.
Modeler2D.get_edges_on_bounding_box
(assignment)Retrieve the edges of the sheets passed in the input that are lying on the bounding box.
Retrieve the ID of an entity list.
Create two new edges that are parallel and equal to the smallest edge given a parallel couple of edges.
Modeler2D.get_existing_polyline
(assignment)Retrieve a polyline object to manipulate it.
Modeler2D.get_face_area
(assignment)Retrieve the area of a given face ID.
Modeler2D.get_face_by_id
(assignment)Get the face object given its ID.
Modeler2D.get_face_center
(assignment)Retrieve the center position for a given planar face ID.
Modeler2D.get_face_edges
(assignment)Retrieve the edge IDs of a given face name or face ID.
Modeler2D.get_face_vertices
(assignment)Retrieve the vertex IDs of a given face ID or face name.
Modeler2D.get_faceid_from_position
(position)Retrieve a face ID from a position.
Select all outer faces given a list of materials.
Retrieve the bounding box of a group.
Create a dictionary of object IDs for the lines in the design with the line name as the key.
Modeler2D.get_matched_object_name
(search_string)Retrieve the name of the matched object.
Modeler2D.get_mid_points_on_dir
(assignment, axis)Retrieve midpoints on a given axis direction.
Retrieve the model bounding box.
Modeler2D.get_obj_id
(assignment)Return the object ID from an object name.
Modeler2D.get_object_edges
(assignment)Retrieve the edge IDs of a given object ID or object name.
Modeler2D.get_object_faces
(assignment)Retrieve the face IDs of a given object ID or object name.
Modeler2D.get_object_from_name
(assignment)Return the object from an object name.
Retrieve the object name for a predefined edge ID.
Modeler2D.get_object_vertices
(assignment)Retrieve the vertex IDs of a given object name or object ID.
Modeler2D.get_objects_by_material
([material])Get a list of objects either of a specified material or classified by material.
Retrieve a list of objects belonging to a group.
Modeler2D.get_objects_w_string
(string_name)Retrieve all objects with a given string in their names.
Generate a mesh for a setup.
Modeler2D.get_vertex_position
(assignment)Retrieve a vector of vertex coordinates.
Modeler2D.get_vertices_of_line
(assignment)Generate a list of vertex positions for a line object from AEDT in model units.
Get the active coordinate system.
Modeler2D.global_to_cs
(point, coordinate_system)Transform a point from the global coordinate system to another coordinate system.
Modeler2D.heal_objects
(assignment[, ...])Repair invalid geometry entities for the selected objects within the specified tolerance settings.
Modeler2D.import_3d_cad
(input_file[, ...])Import a CAD model.
Modeler2D.import_discovery_model
(input_file)Import a Discovery file.
Import and create primitives from a JSON file or dictionary of properties.
Modeler2D.import_spaceclaim_document
(input_file)Import a SpaceClaim document.
Modeler2D.imprint
(blank_list, tool_list[, ...])Imprin an object list on another object list.
Modeler2D.imprint_normal_projection
(assignment)Imprint the normal projection of objects over a sheet.
Modeler2D.imprint_vector_projection
(...[, ...])Imprint the projection of objects over a sheet with a specified vector and distance.
Modeler2D.intersect
(assignment[, keep_originals])Intersect objects from a list.
Modeler2D.invert_cs
(coordinate_system[, ...])Get the inverse translation and the conjugate quaternion of the input coordinate system.
Modeler2D.load_scdm_in_hfss
(input_file)Load a SpaceClaim file in HFSS.
Modeler2D.mirror
(assignment, origin, vector)Mirror a selection.
Modeler2D.modeler_variable
(value)Modeler variable.
Modeler2D.move
(assignment, vector)Move objects from a list.
Modeler2D.move_edge
(assignment[, offset])Move an input edge or a list of input edges of a specific object.
Modeler2D.move_face
(assignment[, offset])Move an input face or a list of input faces of a specific object.
Modeler2D.objects_in_bounding_box
(bounding_box)Given a 2D bounding box, check if sheets and lines are inside it.
Paste objects from the clipboard.
Modeler2D.polyline_segment
(type[, num_seg, ...])New segment of a polyline.
Modeler2D.purge_history
(assignment)Purge history objects from object names.
Modeler2D.radial_split_2D
(radius, name)Split the stator and rotor for mesh refinement.
Modeler2D.reassign_subregion
(region, parts)Modify parts in the subregion.
Get the origin and quaternion defining the coordinate system in the global coordinates.
Refresh this object.
Refresh all IDs.
Modeler2D.rotate
(assignment, axis[, angle, ...])Rotate the selection.
Modeler2D.scale
(assignment[, x, y, z])Scale a list of objects.
Modeler2D.section
(assignment, plane[, ...])Section the selection.
Modeler2D.select_allfaces_fromobjects
(assignment)Select all outer faces given a list of objects.
Modeler2D.separate_bodies
(assignment[, ...])Separate bodies of the selection.
Modeler2D.set_object_model_state
(assignment)Set a list of objects to either models or non-models.
Modeler2D.set_objects_deformation
(assignment)Assign deformation objects to a Workbench link.
Modeler2D.set_objects_temperature
(assignment)Assign temperatures to objects.
Set the working coordinate system to another coordinate system.
Find unassagned objects and set them to non-model.
Modeler2D.simplify_objects
(assignment[, ...])Simplify command to converts complex objects into simpler primitives which are easy to mesh and solve.
Modeler2D.split
(assignment[, plane, sides, ...])Split a list of objects.
Modeler2D.subtract
(blank_list, tool_list[, ...])Subtract objects.
Modeler2D.sweep_along_normal
(assignment, faces)Sweep the selection along the vector.
Modeler2D.sweep_along_path
(assignment, ...)Sweep the selection along a path.
Modeler2D.sweep_along_vector
(assignment, ...)Sweep the selection along a vector.
Modeler2D.sweep_around_axis
(assignment, axis)Sweep the selection around the axis.
Modeler2D.thicken_sheet
(assignment, thickness)Thicken the sheet of the selection.
Modeler2D.ungroup
(groups)Ungroup one or more groups.
Modeler2D.unite
(assignment[, purge, ...])Unite objects from a list.
Modeler2D.update_geometry_property
(assignment)Update property of assigned geometry objects.
Modeler2D.update_object
(assignment)Update any
ansys.aedt.core.modeler.cad.object_3d.Object3d
derivatives that have potentially been modified by a modeler operation.Modeler2D.update_udp
(assignment, operation, ...)Update an existing geometrical object that was originally created using a user-defined primitive (UDP).
Convert one or more strings for numerical lengths to floating point values.
Modeler2D.vertex_data_of_lines
([text_filter])Generate a dictionary of line vertex data for all lines contained within the design.
Modeler2D.wrap_sheet
(sheet, object[, imprinted])Execute the sheet wrapping around an object.
Attributes
Coordinate systems.
Default material.
Design type.
Dimensions.
Geometry mode.
List of the names of all Layout component objects.
List of the names of all line objects.
List of all line objects.
Logger.
Material library used in the project.
Summary of detected inconsistencies between the AEDT modeler and PyAEDT structures.
List of the names of all model objects.
Model units as a string.
List of objects of all non-model objects.
List of all objects.
List of the names of all objects.
Object dictionary organized by name.
Bounding box.
AEDT
oEditor
module.Create a 2D plane.
Planes.
List of the names of all points.
List of points objects.
Project directory.
Selections.
List of the names of all sheet objects.
List of all sheet objects.
List of object names.
List of the names of all solid objects.
List of all solid objects.
List of the names of all unclassified objects.
List of all unclassified objects.
List of the names of all 3D component objects.
User lists.
Version.