qCreatedBy(sketch_id, EntityType.EDGE) returns more edges than I drew
I drew a sketch with 11 edges, but qCreatedBy(sketch_id, EntityType.EDGE) returned 24 edges, and I parsed these edges and found that some of them were overlapping (all parameters were the same, except for deterministicId). Why is this happening? What are these "copied edges" used for?
Best Answer
-
Since you are talking about edges I'll assume you've used
qCreatedBy(sketch_id, EntityType.EDGE). Sketch creates wire bodies corresponding to sketch curves, but also sheet bodies imprinted on plane (only if there are closed regions). You can use qCreatedBy(sketch_id, EntityType.EDGE)→qBodyType(BodyType.WIRE) to get only wire edges.1
Answers
-
Since you are talking about edges I'll assume you've used
qCreatedBy(sketch_id, EntityType.EDGE). Sketch creates wire bodies corresponding to sketch curves, but also sheet bodies imprinted on plane (only if there are closed regions). You can use qCreatedBy(sketch_id, EntityType.EDGE)→qBodyType(BodyType.WIRE) to get only wire edges.1 -
does the arrow behave the same as a UNIX "|" pipe command? Essentially it says take the output of the previous thing and use it as the input of the next thing?
0

