I am stuck trying to determine the proper syntax and arguments needed to programmatically add a polyline boundary to a TIN surface.
I have successfully been able to access the surfaces collection, create a new (empty) surface, add points to that surface (via points file in the ..\Dtm\<SurfaceName>\ directory), and build the surface.
... But I still need an outer-boundary. Can someone help me out? I cannot find documentation for how to properly invoke this method.
This is the method I have been experimenting with (unsuccessfully):
This is the error message I get, in the current configuration:Code:;; Add boundary to surface (vlax-invoke-method (vlax-get (vlax-get new_aecSurfItem 'inputs) 'boundaries) 'add ;| (vlax-safearray->list (vlax-variant-value (vla-get-coordinates (vlax-ename->vla-object eName)))) |; (vlax-ename->vla-object eName) ;;eName "Boundary0" "Outer" "Yes" )
When done manually (i.e., right+click on the boundaries node within Terrain Model Explorer, select Add Boundary Definition), this is a copy of the command line:Code:lisp value has no coercion to VARIANT with this type: #<VLA-OBJECT IAcadLWPolyline 224bcb04>
What am I missing!?Code:Command: _AECTREEMGREVENT Select polyline for boundary: Boundary name <Boundary0>: Boundary type (Show/Hide/Outer) <Outer>: Make breaklines along edges? (Yes/No) <Yes>: Select polyline for boundary:
Edit: I am using AutoCAD Civil 3D Land Desktop Companion 2009