add_point_custom_material_xy#
- MotorCAD.add_point_custom_material_xy(x, y, 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_xy
method.- Parameters:
- x
float
Region position for the x coordinate.
- y
float
Region position for the y coordinate.
- region_name
str
Name of the region.
- material_name
str
Name 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_xy will be removed with Motor-CAD 2025R2 (tentative). Functionality replaced by adaptive templates.
- x