Hello everyone! I’m trying to automatically split cable trays, or any element for that matter, at a certain lenght.
What I found out til now:
-previously, the FamilyInstance.Split Method wasn’t avaible from the API, so people “shortened” the element and then made copies through a splitted curve. This, however, damages the connections between the trays and the fittings, and having so many of them, this is not an option for me.
-Searching through the 2019.2 API, I found that this method now exists and can be used.
Is there already a node/package that uses this method? Or other way to do what im trying?
If not, how can i build my own python script to use that method? (I’m a Python beginner)
I guess I should first get the element curve and split it, getting the points in which i would split the element
Then i would feed the script:
which libraries should I import? how should i build the code? I guess it would be something simple, but as I said, I’m a beginner at Python.
Thank you very much in advanced.