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.
opSplitFace - Invalid Input
emory_krall
Member Posts: 15 PRO
I hoping someone can explain to me why this script is failing:
Ultimately this is to be part of a more complicated script. I wrote this simple script to troubleshoot and apparently I don't understand what opSplitFace is expecting for "faceTargets" and "bodyTools". I've tried to specify the input faces a few different ways but haven't had any success yet.
Tagged:
0
Best Answer
-
lana Onshape Employees Posts: 711"bodyTools" name suggests that bodies are expected, but you are supplying faces. If you want to be selecting faces as tools, you can use
opExtractSurface() to create a sheet body coincident with the face.
6
Answers
opExtractSurface() to create a sheet body coincident with the face.
"faceTargets" : targetFace,
"bodyTools" : qCreatedBy(id + "extract", EntityType.BODY)
});
Instead of extracting you can actually use the "faceTools" field into opSplitFace rather than the "bodyTools" field. I'll have to go update that documentation too...