Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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.

Bounding Box of Sketch

amir_moazamiamir_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

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 4,368
    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.
    Director, Technical Services, EMEAI
  • amir_moazamiamir_moazami Member Posts: 7
    i fixed. it gives the same error though :( maybe because the entities do not form closed loop?
  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 4,368
    Nope - post all your code or make the doc public, please.
    Director, Technical Services, EMEAI
Sign In or Register to comment.