I understood the basic logic, but I couldn't make it work. If someone wanted to help me...
cmq installs a local server (this is very simple: unique prerequisite for installing jlinks when installing creo) which receives as json inputs of the type (in the example I ask the distinct "plate_assy.asm")
(')
"sessionid" "~sessionid~",
"command": "bom,"
"function" "get_paths",
"date": (')
"file": "plate_assy.asm"
?
?
in response you have:
(')
"status": (')
"error": false
♪
"date": (')
"file": "plate_assy.asm",
"generic": "base_assy"
"children": (')
"file": "plate_assy.asm",
"seq_path" "root,"
"children": [
{
"file": "bracket.prt",
"seq_path": "root.1"
},
{
"file": "bracket-2.prt",
"seq_path": "root.2"
},
{
"file": "plate_sub.asm",
"seq_path": "root.3",
"children": [
{
"file": "bracket.prt",
"seq_path": "root.3.1"
},
{
"file": "nut.prt",
"seq_path": "root.3.2"
}
]♪
(')
"file": "no_solid.prt"
"seq_path" "root.4"
♪
(')
"file": "short"<screw>.prt,
"seq_path" "root.5"
?
♪
?
?
?
in the site of creoson all these commands are very well documented.
What's the problem? that you have to launch requests with the right syntax and decode the answers that are full of parentheses, etc.
the beautiful thing is that you can use any programming language. Once with your language (I only know the vba) you can send the request to the server in json and read it, then you can use your preferred programming language. In the network there are classes for various languages to codify and decode requests and json answers.
However, a complete example is not found for the most used languages.</screw>