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.


pierre_grpierre_gr Member Posts: 12

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,


  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 3,037
    edited October 2017
    Hi @pierre_gr

    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.
  • pierre_grpierre_gr Member Posts: 12
    super :smile:

    The search tool is exactly what I was looking for.

    Thank you,
  • lanalana Onshape Employees Posts: 532
    When writing custom feature, it is better to avoid using constraints, just specify radius in skCircle or 3 points in skArc.
    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.
Sign In or Register to comment.