Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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_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
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"
0
Answers
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)
Custom FeatureScript and Onshape Integrated Applications
I'm wondering if this issue is intended or a small bug since the rest of the schemas have been accurate so far.
Custom FeatureScript and Onshape Integrated Applications