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

Modeler2D.add_new_objects()

Add objects that have been created in the modeler by previous operations.

Modeler2D.add_new_points()

Add objects that have been created in the modeler by previous operations.

Modeler2D.add_new_solids()

Add objects that have been created in the modeler by previous operations.

Modeler2D.add_new_user_defined_component()

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.

Modeler2D.break_spaceclaim_connection()

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.

Modeler2D.cleanup_objects()

Clean up objects that no longer exist in the modeler because they were removed by previous operations.

Modeler2D.cleanup_points()

Clean up points that no longer exist in the modeler because they were removed by previous operations.

Modeler2D.cleanup_solids()

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.

Modeler2D.create_face_coordinate_system(...)

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.

Modeler2D.create_faceted_bondwire_from_true_surface(...)

Create a faceted bondwire from an existing true surface bondwire.

Modeler2D.create_group([objects, ...])

Group objects or groups into one group.

Modeler2D.create_object_coordinate_system(...)

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.

Modeler2D.duplicate_coordinate_system_to_global(...)

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.

Modeler2D.find_new_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.

Modeler2D.fit_all()

Fit all.

Modeler2D.flatten_assembly()

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.

Modeler2D.get_boundaries_name()

Retrieve all boundary names.

Modeler2D.get_bounding_dimension()

Retrieve the x, y and z size of the bounding box for the model.

Modeler2D.get_closest_edgeid_to_position(...)

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.

Modeler2D.get_edges_for_circuit_port_from_sheet(...)

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.

Modeler2D.get_entitylist_id(name)

Retrieve the ID of an entity list.

Modeler2D.get_equivalent_parallel_edges(...)

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.

Modeler2D.get_faces_from_materials(...)

Select all outer faces given a list of materials.

Modeler2D.get_group_bounding_box(group)

Retrieve the bounding box of a group.

Modeler2D.get_line_ids()

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.

Modeler2D.get_model_bounding_box()

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.

Modeler2D.get_object_name_from_edge_id(...)

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.

Modeler2D.get_objects_in_group(group)

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.

Modeler2D.get_solving_volume()

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.

Modeler2D.get_working_coordinate_system()

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.

Modeler2D.import_primitives_from_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.

Modeler2D.paste()

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.

Modeler2D.reference_cs_to_global(...)

Get the origin and quaternion defining the coordinate system in the global coordinates.

Modeler2D.refresh()

Refresh this object.

Modeler2D.refresh_all_ids()

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.

Modeler2D.set_working_coordinate_system(name)

Set the working coordinate system to another coordinate system.

Modeler2D.setunassigned_mats()

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).

Modeler2D.value_in_object_units(value)

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

Modeler2D.coordinate_systems

Coordinate systems.

Modeler2D.defaultmaterial

Default material.

Modeler2D.design_type

Design type.

Modeler2D.dimension

Dimensions.

Modeler2D.geometry_mode

Geometry mode.

Modeler2D.layout_component_names

List of the names of all Layout component objects.

Modeler2D.line_names

List of the names of all line objects.

Modeler2D.line_objects

List of all line objects.

Modeler2D.logger

Logger.

Modeler2D.materials

Material library used in the project.

Modeler2D.model_consistency_report

Summary of detected inconsistencies between the AEDT modeler and PyAEDT structures.

Modeler2D.model_objects

List of the names of all model objects.

Modeler2D.model_units

Model units as a string.

Modeler2D.non_model_objects

List of objects of all non-model objects.

Modeler2D.object_list

List of all objects.

Modeler2D.object_names

List of the names of all objects.

Modeler2D.objects_by_name

Object dictionary organized by name.

Modeler2D.obounding_box

Bounding box.

Modeler2D.oeditor

AEDT oEditor module.

Modeler2D.plane2d

Create a 2D plane.

Modeler2D.planes

Planes.

Modeler2D.point_names

List of the names of all points.

Modeler2D.point_objects

List of points objects.

Modeler2D.projdir

Project directory.

Modeler2D.selections

Selections.

Modeler2D.sheet_names

List of the names of all sheet objects.

Modeler2D.sheet_objects

List of all sheet objects.

Modeler2D.solid_bodies

List of object names.

Modeler2D.solid_names

List of the names of all solid objects.

Modeler2D.solid_objects

List of all solid objects.

Modeler2D.unclassified_names

List of the names of all unclassified objects.

Modeler2D.unclassified_objects

List of all unclassified objects.

Modeler2D.user_defined_component_names

List of the names of all 3D component objects.

Modeler2D.user_lists

User lists.

Modeler2D.version

Version.