I am working on an AutoLISP command which involves rotating Multlleader objects (attached). I am having an issue where certain Multileader objects are crashing with the error:
Exception has occurred. AutoCAD.Application: Invalid index
Some objects crash my routine and others don’t, I have been unable to figure out why. I have attached the AutoLISP script. I am crashing on line 58 when I try and retrieve an attribute from the Multileader with the line:
(vlax-invoke ml_obj "GetDoglegDirection" 0)
I’d appreciate any pointers or documentation to help get me moving in the right direction, for now I am quite stumped.