0 Members and 1 Guest are viewing this topic.
The problem is related to the alignment of the attribute.Change (2x):Code: [Select](setq TestPt1 (polar (vlax-safearray->list (vlax-variant-value (vla-get-insertionpoint Att)) ) (angle '(0 0 0) InsPt1) (distance '(0 0 0) InsPt1) ))To:Code: [Select](setq TestPt1 (mapcar '+ (vlax-get Att (if (zerop (vla-get-alignment Att)) 'insertionpoint 'textalignmentpoint)) InsPt1 ))Note: Your Mleader is annotative. I expect there will be additional issues with certain anno scales.
(setq TestPt1 (polar (vlax-safearray->list (vlax-variant-value (vla-get-insertionpoint Att)) ) (angle '(0 0 0) InsPt1) (distance '(0 0 0) InsPt1) ))
(setq TestPt1 (mapcar '+ (vlax-get Att (if (zerop (vla-get-alignment Att)) 'insertionpoint 'textalignmentpoint)) InsPt1 ))
lol. Thank you for the share! Yeah.. I am still trying to fit your code into the script. Still no luck with that, keeps erroring out. But, the annotation scale is the problem. But it should work in paperspace?
The other issue with your method...
Quote from: cmwade77 on January 28, 2016, 01:06:29 PMThe other issue with your method...My code is a minor improvement of *your* method. And yes, as I have mentioned before, there is an issue with block scaling and also with the textsize. Of course if there is only one attribute the solution can be much simpler.
Command: ctxFormatting retained: YesSelect source text [Settings/Exit]:Selected MLeader has no editable content.Formatting retained: YesSelect source text [Settings/Exit]:Selected MLeader has no editable content.Formatting retained: YesSelect source text [Settings/Exit]: *Cancel*Command:
Alight, I had some time to test it out. I am getting a Selected MLeader has no editable content.Code: [Select]Command: ctxFormatting retained: YesSelect source text [Settings/Exit]:Selected MLeader has no editable content.Formatting retained: YesSelect source text [Settings/Exit]:Selected MLeader has no editable content.Formatting retained: YesSelect source text [Settings/Exit]: *Cancel*Command:By the way here is a same dwg. Maybe the sway the Mleader block setup is wrong?
BOOM! Works! This is gonna change everything. lol! THank you again!