Hello,
I have been exploring the Allplan API (https://pythonparts.allplan.com/), PythonPartsScripts and VisualScripts lately. The reason for this is because I think there are some useful functionalities that aren't included in today's version of Visual Scripting. In this case I'm looking for automated dimension lines.
I came across a couple of PythonParts that contain these functionalities, where the model gets it's own dimensionlines, reinforcement labels, sectionviews etc. The following path is where I found most of these PythonPartScripts: C:\ProgramData\Nemetschek\Allplan\2021\Etc\PythonPartsScripts
My initial idea was to create a simple custom Visual Script Node by copying a simple existing node (NodeLine in my case) and adding (copy+pasting) some of the code out of the PythonPartsScripts that create dimension lines. I quickly realized it wasn't as simple as that because the model gets generated without the dimension lines. One of my obstacles is that my Python skills are quite poor, so using the correct variables and syntaxes are difficult for me.
I was wondering if there's anyone who could help me out with the following questions:
1. What's the best way to get to know Custom Nodes better?
Eventually, I'd like to create my own custom Node, "NodeDimensionline" for example, where it generates a dimline based on "GetVertex" or "GetEdge" nodes for instance. I feel like starting out with this example gives me a good basic/general idea of creating custom nodes for when I want to start looking at reinforcement labeling nodes or anything else.
2. Does anyone have some sort of documentation about working with custom nodes in Allplan?
The Allplan API (https://pythonparts.allplan.com/) is quite difficult to read for me as I'm not that experienced with Python. This website also does not provide a workflow on how to work with custom VS nodes. Any useful documentation about modeling 3D objects with Python is welcome.
Kind regards.