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.

FeatureScript: Get extruded loop/face

elias_berger506elias_berger506 Member Posts: 4
Hello,

I'm working on a script that exports all the features in a model and saves them as a sequence of Sketch (defined by edges and constraints) and Extrude operations for down-stream processing in another application. The data structure should be similar to this ER diagram.

 

I use /api/partstudios/d/did/w/wid/e/features to get all features and I can extract the sketches with their edges and constraints just fine. The edges all have entityIds and the constraints make use of these entity IDs.

However when I now want to get the loop that is extruded by an Extrude operation I get this entitiy reference:

{
        "type" : 148,
        "typeName" : "BTMParameterQueryList",
        "message" : {
          "queries" : [ {
            "type" : 138,
            "typeName" : "BTMIndividualQuery",
            "message" : {
              "geometryIds" : [ "JGC" ],
              "hasUserCode" : false,
              "nodeId" : "Fw7bheyuFAclyzY"
            }
          } ],
          "parameterId" : "entities",
          "hasUserCode" : false,
          "nodeId" : "YwtNXy9HOwP0MsqL"
        }

How do I find which edges or sketch make up the loop "JGC"?

Thanks for any advice!


Sign In or Register to comment.