Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Loft-remove using feature script

gaetan_vincentgaetan_vincent Member Posts: 5

OK…I am at a complete lost with this one. I am am trying to create a countersink hole for screws in a solid cube. I select the surface that the countersink is to be on and then select a point for the center of the counter sink. From there I create an skCircle for the outer dimension, an offset plane, and a skCircle for the inner dimension on that offset plane. I then create a opLoft from those 2 circles and then a opBoolean to remove the lofted area a create a hole. Everything works great as long as the selected face and the selected center point are not on the same "face".

If the center point is on the top face of the cube I can chose any other face then the top face and everything works as planned. aligning the countersink with the selected point and starting at the surface of the selected face as needed.

I have narrowed it down to a lofting issue. If the center point and the selected face ARE NOT on the same face the loft is created as a solid body type that can then be removed using opBoolean. However, when the center point and the selected face ARE on the same face, the loft creates a sheet body type that CANNOT be removed and the opBoolean fails silently even removing the loft that was created. if I comment out the opBoolean operation , the loft is created and displayed, but then reapply the opBoolean operation and only the 2 circles on different planes are visible and the loft disappears again.

Also, the point of origin, works all the time from any face, regardless if that point of origin is on the selected face or not.

https://cad.onshape.com/documents/0dbd135fd4db1a3eace95adb/w/aa2252da1381d13b63c6b5e6/e/026e236438eade8bc81fafb6

Any help would be greatly appreciated!!

Thanks in advance!!!

Sign In or Register to comment.