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.
featurescript
pierre_gr
Member Posts: 12 ✭✭
Hi,
The code is available here https://cad.onshape.com/documents/12312312345abcabcabcdeff/w/a855e4161c814f2e9ab3698a/e/b4277d7ee5ca49a493856c34 but how do we search in it ?
The lack of doc of featurescript could be mitigated by an easy way to search in the code.
Could we download a zip and grep locally in it ?
For exemple, I'm looking for how to use the skConstraint with RADIUS.
Which file should I look for ?
Thank you,
The code is available here https://cad.onshape.com/documents/12312312345abcabcabcdeff/w/a855e4161c814f2e9ab3698a/e/b4277d7ee5ca49a493856c34 but how do we search in it ?
The lack of doc of featurescript could be mitigated by an easy way to search in the code.
Could we download a zip and grep locally in it ?
For exemple, I'm looking for how to use the skConstraint with RADIUS.
Which file should I look for ?
Thank you,
Tagged:
0
Comments
If you look under the help menu in Onshape you will see an entry called "FeatureScript documentation”. Also, while in a Feature Studio (or the std doc) you can use the search tool (top right, looks like a magnifying glass) to search the entire Document.
The search tool is exactly what I was looking for.
Thank you,
If for any reason Radius constraint is important, here is the pattern:
skConstraint(sketch, "radiusConstraint", { "constraintType" : ConstraintType.RADIUS, "localFirst" : "circle1", "length" : 20 * millimeter });
where "circle1" is id of the circle you want to constraint.