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.

Classify Onshape Standard Content in FS?

Max_SchürerMax_Schürer Member Posts: 1 PRO

Hi everyone,

is there a way of creating a query to determine if a part is Onshape standard content in FS? I think there must be some kind of undocumented, internal "standardContentId" or something like qGeneratedByStandard because somehow the standard icon in the feature tree has to be added to these certain parts in the creation process. Or has someone of you already created an isStandardContent() using some other sneaky workaround? Maybe @Caden_Armstrong or @EvanReese (tagging you two because you always seem to find a way to make the impossible work, thanks for the great community work btw!)?

I want to use this in computed part properties, to unify imported standard content from neutral formats (eg. STEP) (acquired that already) and the one created in Onshape to the same category, because i want to use the Onshape categories for mapping in further export.

Regards,

Max

Comments

  • EvanReeseEvanReese Member, Mentor Posts: 2,856 PRO

    I'm not sure I understand the ask here. Are you trying to make sure that you use Onshape Standard Content where available, and only use imports if not? Onshape Standard Content only exists in assemblies, where featurescript can't get at them.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
Sign In or Register to comment.