How do I get the length and vertex values of a simple edge

ron_moreland
ron_moreland Member Posts: 99 ✭✭✭
Is there a simple example of how to query an edge for length and vertices? I've looked through several .fs examples and I get lost on what is relevant to my question. In particular the concept of context. If I pass in the edge in precondition, what should the context be when I query that edge?

Best Answer

Answers

  • ron_moreland
    ron_moreland Member Posts: 99 ✭✭✭
    Thanks, I'll go through it again. It's been a while.I haven't looked at the second example.
  • ilya_baran
    ilya_baran Onshape Employees, Developers, HDM Posts: 1,275 image
    Don't hesitate to ask if this is not clear after that.
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • ron_moreland
    ron_moreland Member Posts: 99 ✭✭✭
    I went though the examples. The second was particularly helpful, It brought up a couple points I hadn't thought of and explain the solution. The warnings about "qNthElement" and entity order was interesting. I didn't consider the problem I could encounter with that.
    Thanks for the help.