add_point_custom_material_rt#
- MotorCAD.add_point_custom_material_rt(radius, theta, region_name, material_name, colour)#
Add a region to the geometry and specify the material.
Note
Do not use this method to add a magnet. Use the
add_magnet_region_rt
method.Use degrees for angles.
- Parameters:
- radius
float
Region position for the radial coordinate.
- theta
float
Region position for the angular coordinate in degrees.
- region_name
str
Name of the region.
- material_name
str
NName of the material. In Motor-CAD, material names can be found in Input Data -> materials. The material type (
laminated
,solid
, orair
) is set automatically.- colour
str
VCL color. For more information, see https://wiki.freepascal.org/Colors. The color can be designaed as a hexadecimal value, such as
"$008000"
or a color name such as"clGreen"
.- .. deprecated:: 0.6.0
add_point_custom_material_rt will be removed with Motor-CAD 2025R2 (tentative). Functionality replaced by adaptive templates.
- radius