Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.First time visiting? Here are some places to start:
- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
Bug in FeatureScript sample "Brick"
i already described the issue in https://forum.onshape.com/discussion/6774/lego-dimensions-incorrect
but as it seems to be the incorrect forum, noone answered.
i printed some individual Lego parts for my son and face some incorrect dimensions with larger column counts.
It seems the script uses 7.8 mm for the distance of the circles.
vector((0.78 + (c * 0.78)) + definition.dx, (0.78 + (r * 0.78)) + definition.dz) * centimeter,
while the raster is 8mm, the width of the 1-column bricks is indeed 7.8 mm to have enough space between blocks.
but the distance of the circles has to follow the 8 mm raster.
Well, i created a version where i tried to correct this issue.
I (hopefully) applied all correct values and the bricks work fine with existing ones.
(also added those small noses for a tighter grip at stud positions present in original LEGO)
Am i missing something or is the the OnShape provided FeatureScript for Lego bricks just incorrect and nobody noticed?