Title: Re: Variant To Object
Post by: gile on October 08, 2022, 02:29:53 AM
Hi, Because offseting some curves may generate more than one curve, the Offset (https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-50EF273A-7552-4D6B-8523-BB956334D08A) method returns a variant which is an array of objects. To get a more LISP friendly return value, we can convert this variant into a list:
If you are absolutely sure that offseting the object will generate a single object (i.e. a line, an arc, a circle, ...), simply get the 'car' of this list.
Title: Re: Variant To Object
Post by: gile on October 08, 2022, 10:01:58 AM
A more generic one (from AutomationHelpers at the bottom of this page).