Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:
- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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.
"Typecheck canBePlane failed", error creating a plane
Mohamed_Ahmed_LT
Member Posts: 6 PRO
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!.

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:
0
Comments
-
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 Inc2 -
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:ilya_baran said: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))
0 -
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 newSketchOnPlaneIlya Baran \ VP, Architecture and FeatureScript \ Onshape Inc2 -
Thanks Ilya, this was helpful.ilya_baran said: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 newSketchOnPlane1

