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.
Configuration on assembly
Sébastien_Couet
Member, csevp Posts: 10 PRO
Hi Guys !
I'm trying to update the configuration table thanks to the API on an assembly.
I have the following assembly, and I use the Unsuppressed options to show / no show some assemblies depending on the selected configuration (TD R, TD S)
From the API GET response, I have this json as result:
Questions:
1/ I have no idea from where the nodeId are coming. Also, if I want to add a new option, how to generate a new nodeId ?
2/ I do not see the "unsuppressed" option there.
3/ How to push a configuration to my top assembly node with the API ?
Thanks in advance for your help !
I'm trying to update the configuration table thanks to the API on an assembly.
I have the following assembly, and I use the Unsuppressed options to show / no show some assemblies depending on the selected configuration (TD R, TD S)
From the API GET response, I have this json as result:
<pre><code>{ "btType": "BTConfigurationResponse-2019", "configurationParameters": [ { "btType": "BTMConfigurationParameterEnum-105", "enumName": "List_wGrOE4o5bor8KL_conf", "namespace": "", "defaultValue": "Default", "options": [ { "btType": "BTMEnumOption-592", "optionName": "150%", "option": "Default", "nodeId": "MYSH75Z8ArrBpqG3f" }, { "btType": "BTMEnumOption-592", "optionName": "TD R", "option": "TD_R", "nodeId": "M5jgFXY/HoDfw3v69" }, { "btType": "BTMEnumOption-592", "optionName": "TD S", "option": "TD_S", "nodeId": "MfzHLLzf9NF3CIJMZ" } ], "parameterName": "Configuration", "parameterId": "List_wGrOE4o5bor8KL", "nodeId": "MVngN6PqafMbDAn5Q" } ], "currentConfiguration": [], "libraryVersion": 1777, "serializationVersion": "1.1.23", "rejectMicroversionSkew": false, "microversionSkew": false, "sourceMicroversion": "6569130677273c0c01125335" }
Questions:
1/ I have no idea from where the nodeId are coming. Also, if I want to add a new option, how to generate a new nodeId ?
2/ I do not see the "unsuppressed" option there.
3/ How to push a configuration to my top assembly node with the API ?
Thanks in advance for your help !
Tagged:
0
Best Answer
-
alan_baljeu Member, User Group Leader Posts: 111 ✭✭"Unsuppressed" is an option in part instances DS1 and in DS2. If you queried those objects you would see these parameters defined. In these parameters you would see the nodeId you are asking about. To get another nodeId, search about in the model for another configurable parameter.
To apply a configuration to the top assembly node, I think that would be through currrentConfiguration, but I don't have a more exact answer at the moment.
[aside: this question should be categorized "App store & Partner apps"]
Creating knowledge-driven design automation software, for molds, etc.
www.virtualmold.com1
Answers
To apply a configuration to the top assembly node, I think that would be through currrentConfiguration, but I don't have a more exact answer at the moment.
[aside: this question should be categorized "App store & Partner apps"]
www.virtualmold.com