I have created a script to split pipes and place couplings at the splitting point. It includes a python script where most of the code has been copied from the Genius Loci node Split ByPoints.
The issue I’m having is that I want to split the pipe into lengths of exactly 25 ft but this script does not include the length of the coupling. So I believe I need to use the routing preferences of the pipe being split to find which fitting will be applied and then use lookup tables to calculate how much distance to add to the splitting point.
But I can’t figure out how to use the lookup tables through dynamo. Any help would be appreciated, thanks.
I’ve tried adding the code for the python script but can’t get the formatting right.