Coder, your examples work fine for me in 2009 on Win7x64. Can you run the MLEADER command in AutoCAD before trying to use your example?
Thank you so much for your try Jeff
Yes I can use the mleader in my cad version 2009 and everything is fine with the command .
I'm thinking that an ARX or DLL must not be loaded. Does this portion of the code return a valid VLA-OBJECT? (vlax-ename->vla-object (cdr (assoc -1 (dictsearch (namedobjdict) "ACAD_MLEADERSTYLE"))))
Yes it does return a valid VLA-OBJECT and this is what it returns .
#<VLA-OBJECT IAcadDictionary 00000000282eb4d8>
Hope you can help me with this problem .
Many thanks