"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

