I am trying to get all surfave “points/vertices” within a border polyline.
When checking the civil docs it i found the following method: GetVerticesInsideBorder Method (autodesk.com)
sadly when using it i get the error mentioned in the title.
# Load the Python Standard and DesignScript Libraries
import sys
import clr
# Add Assemblies for AutoCAD and Civil3D
clr.AddReference('AcMgd')
clr.AddReference('AcCoreMgd')
clr.AddReference('AcDbMgd')
clr.AddReference('AecBaseMgd')
clr.AddReference('AecPropDataMgd')
clr.AddReference('AeccDbMgd')
# Import references from AutoCAD
from Autodesk.AutoCAD.Runtime import *
from Autodesk.AutoCAD.ApplicationServices import *
from Autodesk.AutoCAD.EditorInput import *
from Autodesk.AutoCAD.DatabaseServices import *
from Autodesk.AutoCAD.Geometry import *
# Import references from Civil3D
from Autodesk.Civil.ApplicationServices import *
from Autodesk.Civil.DatabaseServices import *
# The inputs to this node will be stored as a list in the IN variables.
surfaceIN = IN[0]
border = IN[1]
#vertices = surfaceIN.GetVerticesInsideBorder(border)
vertices = surfaceIN.GetVerticesInsideBorder(border)
# Assign your output to the OUT variable.
OUT = vertices