p.da
December 27, 2023, 8:30am
1
Hello,
I try to set reference structure and catchment. How associate structure and catchment?
I have already do this:
Trying
Get structure buy it name
p.da
December 27, 2023, 5:27pm
3
Please analyze script more precisely, I think solution is more complicated.
Can you attached example drawing
And
Example file Dyn
p.da
December 27, 2023, 7:00pm
5
I will try this
And can you see this solution
The solution is from this link
With a little modification
closest-point-from-long-list-to-a-point-in-a-shorter-list
[mmm]
# Load the Python Standard and DesignScript Libraries
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
# Inputs
short_list = IN[0]
long_list = IN[1]
# Output list
result = []
# Loop check for each point in the short list
for s in short_list:
# List for distances
dist = []
for l in long_list:
# Distance to point…
p.da
December 27, 2023, 7:41pm
7
Thanks, but your script give the same result as mine. I’m don’t know, how associated geometry point from centre od structure with structure and catchment. How “change” geometry point to appropriate structure?