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.

Query custom tables from the API

meccano_developers
meccano_developers Member, Developers Posts: 1 PRO

I am consuming the API, and I am interested in knowing if there is a way to query custom tables from a Part Studio.
I have the following Feature Studio that generates the custom table I want to query:

image.png

Comments

  • Caden_Armstrong
    Caden_Armstrong Member Posts: 463 PRO

    What information are you trying to get out of the table? You might be able to get the information without querying the table by using the evaluate featurescript endpoint, or given the fact that your table is entirely made of metadata - just use the metadata endpoint?

    https://cad.onshape.com/glassworks/explorer/#/PartStudio/evalFeatureScript

    https://cad.onshape.com/glassworks/explorer/#/Metadata/getWMVEPMetadata

    www.smartbenchsoftware.com --- Renaissance --- Kestrel -- SmartLink
    Experts in Onshape Automation - Custom Features and Integrated Applications
  • tabetha_bulnes
    tabetha_bulnes Member, Developers, HON-TS Posts: 38 PRO

    I was looking for something similar as well. I ended up having to do other work arounds similar to what Caden suggested with the evalFeatureScript. The only tables that seem to available at this time is hole tables and cutlist table. Hopefully in the future we will see an update to allow custom tables.

    https://cad.onshape.com/glassworks/explorer#/PartStudio/getFeatureScriptTable

  • brandon_nichols678
    brandon_nichols678 Member Posts: 30 ✭✭
    edited April 17

    • ** deleted **
  • Caden_Armstrong
    Caden_Armstrong Member Posts: 463 PRO

    for anyone finding this thread, the endpoint documentation has been updated to include custom tables

    https://cad.onshape.com/glassworks/explorer#/PartStudio/getFeatureScriptTable

    www.smartbenchsoftware.com --- Renaissance --- Kestrel -- SmartLink
    Experts in Onshape Automation - Custom Features and Integrated Applications