FreeCAD-Gridfinity-Workbench icon indicating copy to clipboard operation
FreeCAD-Gridfinity-Workbench copied to clipboard

Request to add parameter(s) to change part placement

Open dragon-architect opened this issue 8 months ago • 7 comments

When the Gridfinity workbench generates a part, it does so with one of the grid units (with respect to the X and Y axes, it is the front-left corner unit) centered on the origin. The generated blank cannot be moved unless it is part of a body, but then it will be offset by -20.75mm from the origin of the body's coordinate system on both the X and Y axes. If one desires to work from the front-left corner of a generated blank as a coordinate origin, one would need to compensate for this by changing the attachment offset of the geometry sketches (refer to attached screenshot).

Would it be possible to add a parameter or a set of parameters that can be set to change the placement of generated blanks using a multiple of gridfinity grid units?

In the implementation that I have in mind, positionX=0 and positionY=0 positions the generated blank entirely within the positive X and Y axes of the global coordinate system, with the 0.25mm tolerance also included. positionX=-0.5 and positionY=-0.5 could therefore replicate the current default hard-coded placement of generated gridfinity blanks. For a 2x2 gridfinity blank, positionX=-1 and positionY=-1 would center the blank entirely around the global coordinate origin.

Screenshot 2024-06-10 181719

dragon-architect avatar Jun 10 '24 22:06 dragon-architect