RegionMagnet#
- class ansys.motorcad.core.geometry.RegionMagnet(motorcad_instance=None)#
Provides the Python representation of a Motor-CAD magnet geometry region.
Methods
RegionMagnet.add_entity
(entity)Add entity to list of region entities.
RegionMagnet.add_point
(point)Add a new point into region on an existing Line/Arc.
RegionMagnet.collides
(regions)Check whether any of the specified regions collide with self.
RegionMagnet.edit_point
(old_coordinates, ...)Edit a point in the region and update entities.
Search through region to find an entity with start and end coordinates.
Work in progress.
RegionMagnet.insert_entity
(index, entity)Insert entity to list of region entities at given index.
RegionMagnet.insert_polyline
(index, polyline)Insert polyline at given index, polyline can be made up of line/arc entities.
Check whether region entities create a closed region.
RegionMagnet.mirror
(mirror_line[, unique_name])Mirror region along entity.
RegionMagnet.remove_entity
(entity_remove)Remove the entity from the region.
RegionMagnet.replace
(replacement_region)Replace self with another region.
RegionMagnet.rotate
(centre_point, angle)Rotate Region around a point for a given angle.
RegionMagnet.subtract
(region)Subtract region from self, returning any additional regions.
RegionMagnet.translate
(x, y)Translate Region by specified x,y distances.
RegionMagnet.unite
(regions)Unite one or more other regions with self.
RegionMagnet.update
(region)Update class fields from another region.
Attributes
Br multiplier.
Br used after applying Br multiplier.
Br value of magnet before Br multiplier applied.
X-axis component of br value.
Y-axis component of the br value.
Property for child names list.
Return list of child regions from Motor-CAD.
Return lamination type of region from Motor-CAD.
Get linked duplication/unite region.
Angle of the magnet in degrees.
Polarity of the magnet.
Get linked Motor-CAD instance.
Return parent region from Motor-CAD.
Get region parent name.
Get points that exist in region.
Get region type.
Get linked duplication/unite region.