We have some drawings that have been rotated, along with all their MLeaders (some containing text, some containing blocks). These all need re-oriented to be horizontal again.
Fixing those with text is not a huge deal. It can be done manually via the Properties palette (there's a "Rotation" option). I was also able to write a function that will select all the MLeaders and change the rotation to 0 via the
vla-put-TextRotation function.
The MLeaders with blocks is another issue, though. There is no similar vla- function that I've found. There is a DXF group code (46) that returns the block's rotation. Changing it "appears" to work, but if the grip-edit the leader afterward, it still acts as if the MLeader is rotated (the new landing goes haywire).
Ideally, I'd like to create a
TOrient-style program that would work for MLeaders, rotating them to be horizontal. For that matter, I'd even be satisfied if the function deleted the existing MLeader and simply recreated it using the same points.
Any thoughts or suggestions would be appreciated!