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.
How do you get faces cut out by opSplitFace
dave_cowden                
                
                    Member, Developers Posts: 480 ✭✭✭                
            Suppose I start with a face, like definition.someFace. I have found that if I do this:
            opSplitFace(context, splitFaceId, {
                    "faceTargets" : definition.someFace,                
                    "edgeTools": edgeTools,
                    "direction": surfaceTangentPlane.normal
            });
            debug(context, qCreatedBy(splitFaceId, EntityType.FACE) );qCreatedBy(splitFaceId) does not return any results.
What I expected to get was the faces that were stamped out by the cutting tool.
Instead, after opSplitFace, I find that definition.someFace now returns all of the faces. qNthElement(definition.someFace,0) returns indeterministic results.
What I want to get is a reference to the faces that were 'cut out' by the edges. But I cannot find out a good way to do that.
Any suggestions?
Answers
I also tried qDependency hoping that the stamped out faces woudl be a dependency of the original edges, but that did not work.