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.

Options

"Typecheck canBePlane failed", error creating a plane

Mohamed_AlieddinMohamed_Alieddin Member Posts: 5 PRO
edited January 25 in FeatureScript
Can someone help me with this error? it is still creating the plane but failing to sketch on it!!  the millThcik is containing an input in millimeters.
UPDATE: The issue is resulting from using a valuewithunits instead of an integer, I resolved it by dividing by the unit of measurement. However, I am not able to sketch on the resulting plane and the part is failing!.

Tagged:

Comments

  • Options
    ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 1,178
    It's actually the other way around -- the position of the plane origin should be in length units (makes sense if you think about it), so it should be:
    plane(vector(0 * meter, 0 * meter, mthick), vector(0, 0, 1))


    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • Options
    Mohamed_AlieddinMohamed_Alieddin Member Posts: 5 PRO
    It's actually the other way around -- the position of the plane origin should be in length units (makes sense if you think about it), so it should be:
    plane(vector(0 * meter, 0 * meter, mthick), vector(0, 0, 1))


    Thanks Ilya, this is resolving the plane-creation error. However, I am still struggling with the creation of a sketch on this new plane! I think I am doing something very wrong in here:
  • Options
    ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 1,178
    Yeah, doing it this way you need id+"plane1" in the query instead of makeId("plane1")
    But in a custom feature, it's just much better to not create an actual construction plane and just use newSketchOnPlane
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • Options
    Mohamed_AlieddinMohamed_Alieddin Member Posts: 5 PRO
    Yeah, doing it this way you need id+"plane1" in the query instead of makeId("plane1")
    But in a custom feature, it's just much better to not create an actual construction plane and just use newSketchOnPlane
    Thanks Ilya, this was helpful.
Sign In or Register to comment.