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.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
How to using FS to create a quick sphere
tsung_ren_hung
Member Posts: 9 EDU
I tried using FS to quickly create a sphere
but it still not work.
where is the problem?
thanks
https://cad.onshape.com/documents/578f89d3e4b0cdd13940cfe7/w/92807c44d555c353a9b7b4b3/e/d9b77e1c239e6135100324f8
but it still not work.
where is the problem?
thanks
https://cad.onshape.com/documents/578f89d3e4b0cdd13940cfe7/w/92807c44d555c353a9b7b4b3/e/d9b77e1c239e6135100324f8
Tagged:
0
Best Answers
-
NeilCooke Moderator, Onshape Employees Posts: 5,651Sorry, the documentation is wrong - center should be a query not a length vector.
annotation { "Feature Type Name" : "Quick Sphere" } export const quickSphere = defineFeature(function(context is Context, id is Id, definition is map) precondition { annotation { "Name" : "Select sphere center", "Filter" : EntityType.VERTEX, "MaxNumberOfPicks" : 1 } definition.center is Query; annotation { "Name" : "Sphere size" } isLength(definition.sphereSize, LENGTH_BOUNDS); } { sphere(context, id + "sphere1", { "center" : definition.center, "radius" : definition.sphereSize / 2 }); });
If you need to specify a vector, please use fEllipsoid:fEllipsoid(context, id + "sphere", { "center" : vector(0, 0, 0) * inch, "radius" : vector(definition.sphereSize / 2, definition.sphereSize / 2, definition.sphereSize / 2) });
Senior Director, Technical Services, EMEAI1 -
tsung_ren_hung Member Posts: 9 EDUthank you NeilCooke
I have no any programming experience, your answer makes sense to me.
FS is a bit difficult for me.
I will make very effort to learn FS.
5
Answers
If you need to specify a vector, please use fEllipsoid:
I have no any programming experience, your answer makes sense to me.
FS is a bit difficult for me.
I will make very effort to learn FS.