Hello Support Forum
I've installed the Python SDK and am currently working through the "Simple PythonPart" tutorial, Lesson 2.
I'm stuck on the last step, where I'm supposed to link the length, width, and height variables from the PYP file to the PY file. Visual Studio Coder throws an error as soon as I enter the first variable, "build_ele.Length.value," instead of 3000 for the length.
The error message is "Variable not recognized." As long as I leave all the fixed values in the PY file, I can use and place the Python part in Allplan.
The three dialog boxes for length, width, and height appear in the input palette, and I can change the values there.
Correctly, these changes don't yet affect the cuboid dimensions.
So, the two files themselves are working correctly. Only the passing of the variable names seems to be failing.
Can anyone help me with this?
Attached are two screenshots from Microsoft Visual Coder, and the ZIP file contains the files from the USR/Local folder.
Is this information sufficient, or do you need any further details to assist you?
Thank you for your support.
Kind regards,
Remo