Hi all,
I would like to add a selection set of polylines (i've hundreds of them...) per layer as one breakline entry in the Surface Definition/Breaklines.
How do i do that?
I have this so far (changed from the code by blair.nixon):
(setq algnset (ssget "_X" '((0 . "POLYLINE") (8 . "Layername-10") ))) ;; select alle poly-objects on a layer
(setq newset (LM:ss->vla algnset)) ;; convert to VLA objects, thank you Lee Mac
(setq breaks (vlax-get srf 'Breaklines))
(vlax-invoke-method
breaks
'AddStandardBreakline
(makevariant nil newset) ;; to be replaced with a variant of the selection list... but how to do it?
"BL-Layername-10 (added via lisp)"
0.1
)
But I get this error:
error: lisp value has no coercion to VARIANT with this type: (#<VLA-OBJECT IAcad3DPolyline 0000028b11cb0da8> #<VLA-OBJECT IAcadLWPolyline 0000028b54b185e8>
(the same error when you just use newset with makevariant function)
In Civil3D's GUI (2022) you can do this of course but would like to automate it with lisp.
Can somebody shine a light on this?
Thanks in advance!