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.

Mute objects through featurescript

eric_ma454eric_ma454 Member Posts: 14
Is there any way to mute lines/sketches created in a featurescript, or interacted with a featurescript? After instantiating many parts and creating sketches, there are a lot of construction lines and sketch planes left over that I would like to remove or hide.
Thanks,
Eric
AguaClara Cornell

Best Answer

Answers

  • kevinhickersonkevinhickerson Member, Developers Posts: 1 PRO
    But how? How do you delete a cruve created with line(...,...) for example?
  • _anton_anton Member, Onshape Employees Posts: 410
    Example:

    fCuboid(context, id + "cuboid1", {
        "corner1" : vector(0, 0, 0) * inch,
        "corner2" : vector(1, 1, 1) * inch
    });
    opDeleteBodies(context, id + "deleteBodies1", {
        "entities" : qCreatedBy(id + "cuboid1", EntityType.BODY)
    });

    This creates a cube and then deletes it. Note that the first call has id + "cuboid1" and that id is used in a qCreatedBy query to then delete the geometry.
Sign In or Register to comment.