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 do a Feature Script Revolve Remove
Stormi_Backus
Member Posts: 49 ✭
Hi All,
I'm trying to add a specific ASME tooth profile to the original sprocket feature script and running into trouble performing a revolve remove.
The goal is to revolve the "ToothProfileSketch" around the variable "axis" but I am running into an error related to my axis not having an origin.
I find this confusing because the same axis worked for the circular pattern used earlier in the code.
I've included the link below, error seems to start at line 565.
https://cad.onshape.com/documents/5ff37ac113c3df966e45f4e2/w/d607154ae26b341ee1162d3a/e/7fd4f81f183efa107f24388d
Thank you in advance for any insight!
Stormi
I'm trying to add a specific ASME tooth profile to the original sprocket feature script and running into trouble performing a revolve remove.
The goal is to revolve the "ToothProfileSketch" around the variable "axis" but I am running into an error related to my axis not having an origin.
I find this confusing because the same axis worked for the circular pattern used earlier in the code.
I've included the link below, error seems to start at line 565.
https://cad.onshape.com/documents/5ff37ac113c3df966e45f4e2/w/d607154ae26b341ee1162d3a/e/7fd4f81f183efa107f24388d
Thank you in advance for any insight!
Stormi
0
Best Answer
-
Alex_Kempen Member Posts: 248 EDUThe term `axis` is often used ambiguously in FeatureScript code. Generally speaking, an `axis` refers to a unitless, normalized 3D `Vector`, meaning it indicates a general direction. However, `axis` can also be is used as an alias for a `Line`, which is an object which composes an origin and a direction (so it precisely defines an infinite line in 3D space, rather than just an arbitrary direction). As always, the definitive way to determine which one you need is to refer to the documentation.
In your case, given the error message you've described, it seems you're attempting to pass a `Vector` instead of a `Line`.
P.S. - your document doesn't have the correct permissions.
CS Student at UT DallasAlex.Kempen@utdallas.eduCheck out my FeatureScripts here:0
Answers
In your case, given the error message you've described, it seems you're attempting to pass a `Vector` instead of a `Line`.
P.S. - your document doesn't have the correct permissions.