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.

Options

Entity selection for transform

łukasz_klapiszewskiłukasz_klapiszewski Member Posts: 12
edited November 2021 in Community Support
Hi,

I'm trying to write json body for add feature request. Feature is just simple transform (move and rotate all objects in part studio). Transform feature creates with error 1688 (Missing entities).
What am I doing wrong?

This is my body:
{
    "feature": 
        {
            "type": 134,
            "typeName": "BTMFeature",
            "namespace": "",
                "message": {
                    "featureType": "transform",
                    "name": "Transform 2",
                    "parameters": [  
                        {
                            "type": 148,
                            "typeName": "BTMParameterQueryList",
                            "message": {                                    
                                "queries": [
                                    {
                                        "type":138,
                                        "typeName":"BTMIndividualQuery",
                                        "message":{
                                            "queryString":"query=qBodyType(qEntityFilter(seed1_REPLACE_ME, EntityType.BODY), BodyType.SOLID);"
                                        }
                                    }
                                ],
                                "parameterId": "entities"
                            }
                        },
                        {
                            "type":145,
                            "typeName":"BTMParameterEnum",
                            "message":{
                                "enumName": "TransformType",
                                "value": "TRANSLATION_3D",
                                "parameterId": "transformType"
                            }                            
                        },                       
                        {
                            "type": 147,
                            "typeName": "BTMParameterQuantity",
                            "message": {
                                "expression": "0.055*m",
                                "parameterId": "dx"
                            }
                        },
                        {
                            "type": 147,
                            "typeName": "BTMParameterQuantity",
                            "message": {
                                "expression": "0.055*m",
                                "parameterId": "dy"
                            }
                        },
                        {
                            "type": 147,
                            "typeName": "BTMParameterQuantity",
                            "message": {
                                "expression": "0.055*m",
                                "parameterId": "dz"
                            }
                        }
                    ]
        }           
    }
}

Sign In or Register to comment.