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.

Length of a curve

lloyd_snelllloyd_snell Member Posts: 23 PRO
So I need to drive the design to a specific belt pitch length for a series of pulleys. There are 3 arc and 3 line segments. I need to get the length of all of these elements. 
1) Would be to select and get a value. Worst solution but I would get there.
2) When a change is made the new value is displayed. This what I did in Creo.
3) Would be a variable that is driven to maintain a certain value. Best Solution

Answers

  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 1,215
    Here's a document with a custom Measure Length feature that will do #3 -- I adapted it from my Measure Distance FeatureScript example.
    https://cad.onshape.com/documents/3b94cb37940c65d6eb867804/v/caa6335cb53dfae6f0cd3e33/e/2532eb32e49f33d7e990100b
    Click on the plus-in-dashed-rectangle and select the Measure Length feature to add it to your toolbar.  To use the feature in your part studio, type the variable name and select the curves.  Post here if you run into trouble with these brief instructions.
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • connor_shannonconnor_shannon Member Posts: 2
    It would be really great to be able to add a custom constraint that sets an arc length equal to a straight line's length. I have been scouring featurescript, but it doesn't seem possible. This would basically solve all my problems right now. I am routing a belt around complex geometry, and I am having a hard time defining the length of the belt as it rolls off an irregular cam.

    Is there a way to set line length equal to arc length as a custom constraint?
    If not, can you think of a different way to approach this problem?
Sign In or Register to comment.