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.

Circle geometry from /partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/features does not match definition

roth_vannroth_vann Member Posts: 5
According to the schema I should expect xCenter and yCenter to appear in the geometry definition but I am only seeing radius. Is there way to query the center too?
This is what I see in the entity 
{
            "btType":"BTMSketchCurve-4",
            "geometry":{
               "btType":"BTCurveGeometryCircle-115",
               "radius":0.02504807710647583,
               "clockwise":false
            },
            "centerId":"zVVB6lg0iq2O.center",
            "internalIds":[
               
            ],
            "isConstruction":false,
            "isFromSplineHandle":false,
            "isFromSplineControlPolygon":false,
            "isFromEndpointSplineHandle":false,
            "parameters":[
               
            ],
            "namespace":"",
            "nodeId":"MUVCHpUnkKfqVdvS2",
            "entityId":"zVVB6lg0iq2O"

Answers

  • Caden_ArmstrongCaden_Armstrong Member Posts: 180 PRO
    How are you running your API request?

    I just ran against a sample that I have, and I am seeing a different output for a circle in a sketch.
    I have an xCenter, yCenter, xDir, yDir parameters.

    if you are doing 
    /api/v6/....
    try without the /v6 (or whetever api version you are calling)
    www.smartbenchsoftware.com --- fs.place --- Renaissance
    Custom FeatureScript and Onshape Integrated Applications
  • roth_vannroth_vann Member Posts: 5
    How are you running your API request?

    I just ran against a sample that I have, and I am seeing a different output for a circle in a sketch.
    I have an xCenter, yCenter, xDir, yDir parameters.

    if you are doing 
    /api/v6/....
    try without the /v6 (or whetever api version you are calling)
    I did some testing and this problem only occurs in /v6. It'd be simple for me to swap versions but there are some other differences in the format that makes v6 easier to use (like with geometryIds).

    I'm wondering if this issue is intended or a small bug since the rest of the schemas have been accurate so far.  
  • Caden_ArmstrongCaden_Armstrong Member Posts: 180 PRO
    I am guessing this is a small bug, those parameters should probably be there. Bit hard to define a circle without a center...
    www.smartbenchsoftware.com --- fs.place --- Renaissance
    Custom FeatureScript and Onshape Integrated Applications
Sign In or Register to comment.