[Ad...] Posted February 8, 2023 Share Posted February 8, 2023 What is the purpose of the code below? Every command I record has this "properties" parameter with an insanely long string of text. properties=gom.Binary ('eAHtW22MlFcVfpYgpRSkKFJoq31dtrCUzu7sAgs7fCzLRwULlFC6bUjsZGbnnd2R2ZlhZpZdamqn4UdrJTb+UJr+QaNSDaaGX9VGo8aPNCbSaKI2mmoMfiYkNDWxTRPBPOe+Z+/7zrw7M7vLR2gZ0u7dee97zr3nnPuc555792B+JDKwrmMcu3b279h5AAeLiUy5FIvtzLojbq68v5gvuMVyxi3BfFowBwvmYR4WYN4CALFL5weHAXzqob3Ow/l0eSxRdJ3uaHfU2ZUvpzPjTo9579yZuVgj70/p0wkg+ctzZ1pwP4DFQCWFDBIYQhEJjCCOBAZRxigSyCKOQeSRRR5FHPrLuTOzsATArUBlCHmMoAPbJ553PUapHwHwYRleC2Z7I9vacv4W/v4JAAtCNFodvzk1HR2nb/vP5bn9P7uDOu4D8NEQHSNIYBxxHENcZprDEFyc/y317QHQBlQOypxiiOEBZDCEbmnvCNiH880hLc9HRVIZGfluQCw2Chcxmf0dZiTSvtXvqBOV7On6Q80gVzPUf1zPoXYA+FiIVXNiMQ63Olrmf3E6nvRHSzdAG9bE51FkUEIGSWSQRQZl8ekI8kjBxd+PU2/SRPoMPUrvD4Ro2+vp+vfH6cZtALZ4fl4LYClQGcMwXHFiAUW4KMlvZcTFVnGsQQpxlDAo37s4fvGNNr4/mZ0ZuYxfzpzv5SX2+PbJzZzvJgB3B+a7E+MTumktRmhtNPd7MrtXU3sUEFSgxLm+iG1v4dPbvW/8gLMIJ2bz2d0A5nu+KqGALBLiFWp+Ai6eHKDMOwHcBlS4omwvteah+1TSUs+axJEPAZUSuHqzyOK1z1xcq72oz0UWrqAWMWQEI56dv7WV+jjiOfJ+GUWx/BDa3+D7HjJVIDPTSLPShpGRMdFfacQxipynoYBRlOEihZ9soo75AKVVksgLEj7+MiWKjSpz2VTAtMJLGEYeYzh/sr6AlsqzFKC+9QsoC2J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xJCjYjHeW3GwGZvhYDf2YQD92IPd2AFHMhsj0RYW44ImBp/0dkHHBGbYYjfZoMEJogTR1ByClWuQzI6C9aRWrMYGtEptSWup5hSetaXNcubLSkFz+7WbEXFjRETjCGPE8aiKGdPkUH/c2Ki5GTOmusjKdLCG13w9qnHMsNbM+xcZjHvesMhMxmDqof5jLgftsv7HwRZRvCQtYjkRrT2AEfy9cUzU7jsVQXqaRJBVMP9qWUtjrJ151S6IxlpRUCxmHZi20XqyQV76Rnkc8xr54fRspXqinhQiteFx05W3AkMoS1XPynxcJCs/PCr/p8X1mzDG2Nj2jSLUn2+mO5+pxlJtDE2fnwT3qv7a9bVls3ZVB08aanfPwRHXPp9sd20PwvlOl9S+7w09Iwjm8qu/bwivYlhWOdk5wtXahzaKeVuL4LUQ8rbG6zgM+W78qJ05fpg9sJ6YxuXGJW8HmFvfzHjVmNmK9mli2czzyNRHqzOrxaxrazuTA1aFWs7GIVvmxIqt8B1gvT5kQjxJNhLsCfrPEzyX179N8N8nMPtD3d8M9vB0Xq+h1N4I4Z3frYv8Z/w88eYuyX+56a+9/psIeoWi4eWm5/51efFPj6+ndF7EuQuosJpENsBo5O5IT521jkOkNDFLHabaU8CyO/2zoE1Cby3rDSpDNMxV4+BlXw2eJacpUK818H6ZXgje5/XYf5jDbuYGlV7qIHhy8LWbTFN+4mIp4kKGmvVGTDOXffV6fnPySVwJoTms/NJUNTUzE954ItUr4rvZqcpvZiZWvp3Jij9PVZNeP69nM1PStFroJRYiuQFoS1GjLptJA04vNho1NIryW57O2r93+PpdFKcXbXmTJ9j7YV/fFd0MPLqC4cy2/t0Aq2vcrVS//drtz/z6/7kw47ABepo=') Link to comment Share on other sites More sharing options...
[Be...] Posted February 9, 2023 Share Posted February 9, 2023 Hi, we encode a lot of default construction parameters like e.g. Rendering properties in this binary blob. The important construction parameters for the concrete element are transported via other parameters. Regards, Bernd Link to comment Share on other sites More sharing options...
[Ad...] Posted February 9, 2023 Author Share Posted February 9, 2023 Thank you for the clarification, Bernd. Link to comment Share on other sites More sharing options...
[Be...] Posted February 19, 2023 Share Posted February 19, 2023 Hi Bernd, I have a few more questions about this. Is the encoding generated from the session during recording of the macro or is it already created and saved in the software? I ask this due to potential issues to reuse command snippets (like in a loop). Would this binary stay the same or needs different value for every call. I understand this may be important for results plots like color contour plots. Why does it need it for plane creation? Can it be removed from the code. I tested it with plane creation by removing ,< properties=gom.Binary (...) > which seems to have no effect. However, when I remove it from surface comparison plots, GOM Inspect crushed. Is there a documentation for this? The power of scripts is to avoid repetitive tasks but if the record creates unrecognizable script lines like this, it would be difficult to replicate analysis from one part to another in a more organized way without understanding what this code is doing. Can it be disabled? I mean can the recorder be commanded not to used < properties=gom.Binary (...) >? Thank you, Link to comment Share on other sites More sharing options...
[Be...] Posted February 20, 2023 Share Posted February 20, 2023 Wanted to add one more question: Can the properties be saved into a variable X 1st and passed as < properties=gom.Binary(X) > ? This requires saving X 1st which I don't know how. This makes the command snippet be ported to a different project and session easily. Link to comment Share on other sites More sharing options...
[Be...] Posted February 23, 2023 Share Posted February 23, 2023 Hi, I'm not an expert in this field but I can try to answer some questions: to 1): The encoding is generated during the recording of the macro. to 2): If you have created your plane e.g with special visualization parameters and you want to create this plane again with the same parameters for visualization (independent from the current default settings in your project) you have to supply this 'property' parameter. If you don't specify it the default parameters from the project shall be used. To reduce your script remove this parameter from your script. May be there are some special elements which always needs this parameter but I'm not aware which one. to 3) Due to the fact that this is a binary blob there is no documentation. We like to store this (usually) unnecessary information as compact as possible. to 4) Unfortunately it can't be disabled, you have to remove this parameter manually. to 5) Can this be stored in a general variable? I guess not but I'm not sure. Makes usually also not sen because the properties are slightly different from each element class to another element class. But from my point of view you don't have to! If you want to ensure a special visualization for special elements, record the command during setting parameters via the Properties window and apply this command after creating your elements (if really needed). Hope this helps?! Regards, Bernd Link to comment Share on other sites More sharing options...
[Be...] Posted March 1, 2023 Share Posted March 1, 2023 Thank you very much Bernd. Your description of the encoding has given me a peace of mind. The idea of using properties window as needed is helpful tip. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in