Project/Convert line in FS

papawo
papawo Member, Developers Posts: 206 PRO
can FS use project/convert line?
Tagged:

Best Answers

Answers

  • papawo
    papawo Member, Developers Posts: 206 PRO
  • ilya_baran
    ilya_baran Onshape Employees, Developers, HDM Posts: 1,278 image
    The immediate problem I can see is that you're setting sketch1 to a 2d Vector (the output of worldToPlane) but sketch1 needs to be a sketch (obtained from newSketchOnPlane, which is commented out in your feature studio).  The 2d vectors need to be passed as the start and end of the line segment (which are currently hard coded to the example values, like vector(0,0) * inch.
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • papawo
    papawo Member, Developers Posts: 206 PRO
    im still getting error on start vector.
    what is the error below means ?



  • papawo
    papawo Member, Developers Posts: 206 PRO
    edited November 2016
  • ilya_baran
    ilya_baran Onshape Employees, Developers, HDM Posts: 1,278 image
    I think the error is for other code than what is in your screenshot (I would expect to see that if you typed "is vector" instead of "is Vector").

    It would be easier for us to help with kind of thing if you saved a version of your public document when you see something like that and then posted a link to that version -- then we'd see the exact problematic state with the error.

    The other thing I see in your screenshot piece is that vector(ptcoord, ptcoord) is very unlikely to be what you want (because ptcoord is itself a Vector), but I see that you fixed that in the public document.
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • papawo
    papawo Member, Developers Posts: 206 PRO
    edited November 2016
    ive change it to Vector but message still appear.
    i reopen the doc again and the message is gone. 
    thanks