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.

How to get the feature that created an entity?

michael_truellmichael_truell Member Posts: 2 EDU
I have an entity that is an element of the list returned by evaluateQuery.

How can I get the feature id of the feature that created this entity?

In particular, how can I find the string s such that my entity will be in the list returned by: evaluateQuery(context, qCreatedBy(makeId(s), the_entity_type_of_my_entity))?

Comments

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,310
    Senior Director, Technical Services, EMEAI
  • michael_truellmichael_truell Member Posts: 2 EDU
    Hi @NeilCooke! Doesn't qCreatedBy only generally accept the id of the feature that created the entity? Not the id that last modified the entity?

    Alternatively, does there exist something like a qModifiedBy function?
  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,310
    Not sure I understand what you're trying to do? If you already have the query, why do you need the id? Anyway, id's can change depending upon what modified the body so that function is the only way to get the id.
    Senior Director, Technical Services, EMEAI
Sign In or Register to comment.