Skip to content

pytha.is_part_cam_machining

fabian-flassig edited this page Jul 31, 2026 · 1 revision

Checks whether a part is a CAM machining.

Returns whether the given part is a CAM machining object, i.e. a part that carries CAM machining information (such as a drilling or groove) and is applied to other parts by the CAM postprocessor, rather than being regular CAD geometry.

Note: This function requires the Workshop license. Without it, the call raises an error. Use check_license_workshop to test for availability beforehand.

pytha.is_part_cam_machining(part)
Parameter Type Description
part element_handle Element handle of the part to check.

Return value

Type Description
boolean true if the part is a CAM machining, false otherwise.

Example:

local drill = pytha.create_cam_drill(10, 30, {0, 0, 0})
local is_machining = pytha.is_part_cam_machining(drill)   -- true

Version Support:

Minimum PYTHA Version: V27

See also:

pytha, Workshop Functions, element handles, create_cam_drill, create_cam_groove

Clone this wiki locally