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.

Using debug(context,...) with id

asher_haigasher_haig Member Posts: 16

How can I use an id in order to have debug highlight the element in question?

Something like:

debug(context, id);

Comments

  • GregBrownGregBrown Member, Onshape Employees, csevp, pcbaevp Posts: 336

    You need to make a query for the id of the feature in question:
    e.g. debug(context, qCreatedBy(id + "extrude1", EntityType.BODY), DebugColor.MAGENTA);

    From the FeatureScript docs:

    image.png
  • asher_haigasher_haig Member Posts: 16

    Thanks - I believe that is the example I was looking for.

Sign In or Register to comment.