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.

API for beginners

lajos_szabó013lajos_szabó013 Member Posts: 10 EDU
Hi, 

I really need some help, since I am struggling hard with Onshape API.
Using VSCode Python I managed to request successfully for new 'Document' and 'Part Studio'. Now it would be nice to have some features inside a 'Part Studio' but I have not found any way to make it work.

I read "Feature List API" (https://onshape-public.github.io/docs/api-adv/featureaccess/) and browsed Glassworks (https://cad.onshape.com/glassworks/explorer/)

From where can I get the right parameters for a /partstudios/.../features API call?

{
  "btType": "string",
  "feature": {
    "featureId": "string",
    "featureType": "string",
    "importMicroversion": "string",
    "name": "string",
    "namespace": "string",
    "nodeId": "string",
    "parameters": [
      {
        "importMicroversion": "string",
        "nodeId": "string",
        "parameterId": "string"
      }
    ],
    "returnAfterSubfeatures": true,
    "subFeatures": [
      "string"
    ],
    "suppressed": true,
    "suppressionConfigured": true,
    "variableStudioReference": true
  },
  "libraryVersion": 0,
  "microversionSkew": true,
  "rejectMicroversionSkew": true,
  "serializationVersion": "string",
  "sourceMicroversion": "string"
}
 
Can anyone send me a link for a detailed documentation about the paramteres, like featureTypes, btTypes with some examples?

 Or can anyone help me how to make a cylinder?

Thanks in advance

Lajos

Answers

Sign In or Register to comment.