if tool_type in ("ball end mill", "flat end mill", "reamer", "boring bar", "counter bore", "lollipop mill"):
pass
if tool_type == "bull nose end mill":
tool.shape.set_param(
"TorusRadius",
DistanceParam(name="TorusRadius", unit=lunit, v=geom["RE"]),
)
I believe it should look like:
if tool_type in ("ball end mill", "flat end mill", "reamer", "boring bar", "counter bore", "lollipop mill"):
pass
Change to elif ---> **elif** tool_type == "bull nose end mill":
tool.shape.set_param(
"TorusRadius",
DistanceParam(name="TorusRadius", unit=lunit, v=geom["RE"]),
)
around line 140 change: (case sensitive)
to tool_type = toolitem["type"].lower()
later the code looks like:
I believe it should look like: