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:
xfloat

Region position for the x coordinate.

yfloat

Region position for the y coordinate.

region_namestr

Name of the region.

material_namestr

Name of the material. In Motor-CAD, material names can be found in Input Data -> materials. The material type (laminated, solid, or air) is set automatically.

colourstr

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