Bounding Box of Sketch

amir_moazami
amir_moazami Member Posts: 7 ✭
Hi! I'm trying to get the bounding box of "Sketch 3" here in featurescript. I'm running: var tb = evBox3d(context, {topology: qSketchRegion(makeId("F23l6D73UPvFFQE_4"), false), tight: true}); but I'm getting the following error:

@evBox: CANNOT_RESOLVE_ENTITIES

What am I doing wrong?

Comments

  • NeilCooke
    NeilCooke Moderator, Onshape Employees Posts: 6,126 image
    Using makeId is a BAD idea since that id could change - when you create the sketch, you assign an id such as id + "sketch" - use that.
    Senior Director, Technical Services, EMEA
  • amir_moazami
    amir_moazami Member Posts: 7 ✭
    i fixed. it gives the same error though :( maybe because the entities do not form closed loop?
  • NeilCooke
    NeilCooke Moderator, Onshape Employees Posts: 6,126 image
    Nope - post all your code or make the doc public, please.
    Senior Director, Technical Services, EMEA