Connector axis counterbore visualization update #363
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
|
Hi, By writing a simple example illustrating our use case, I ended up finding the bug on our side. When calling Here's the short example, to illustrate what was going on: import cadwork
import connector_axis_controller as ca
import element_controller as ec
plate_thickness = 15.875
plate_width = 50
plate_length = 50
drilling_diameter = 9
counterbore_diameter = 19
origin = cadwork.point_3d(0, 0, 0)
x = cadwork.point_3d(1, 0, 0)
y = cadwork.point_3d(0, 1, 0)
z = cadwork.point_3d(0, 0, 1)
plate_id = ec.create_rectangular_panel_vectors(
plate_width, plate_thickness, plate_length, origin, x, y
)
axis_id = ca.create_blank_connector(
0,
cadwork.point_3d(plate_length / 2, -plate_thickness / 2, 0),
cadwork.point_3d(plate_length / 2, +plate_thickness / 2, 0),
)
ca.set_section_diameter(axis_id, 0, 9)
item_guid = ca.get_item_guid_by_name(
'ASSY VG CSK Ø8', cadwork.vba_catalog_item_type.normal_screw
)
ca.set_bolt_item(axis_id, item_guid)
ca.set_bolt_length(axis_id, 200)
# What we were doing.
ca.set_counterbore_for_start_side(
axis_id,
0,
counterbore_diameter,
0, # BUG!
True,
)
# What we should have done.
ca.set_counterbore_for_start_side(
axis_id,
0,
counterbore_diameter,
(counterbore_diameter - drilling_diameter) / 2, # NO BUG!
True,
)It doesn't matter anymore but we are still using v2025. Apologies for the disturbance, and thank you for your prompt reply! |
Beta Was this translation helpful? Give feedback.




Hi,
By writing a simple example illustrating our use case, I ended up finding the bug on our side.
When calling
connector_axis_controller.set_counterbore_for_start_side, we were setting the depth to 0, so it's like no counterbore. But it seems that when you open the counterbore config menu in this situation, it puts the angle of the cone back to 45°.So, the solution was simply to set the depth so that the angle is 45° from the beginning.
Here's the short example, to illustrate what was going on: