In AutoCAD it is possible to set the orientating of a block to the orientating of the layout.
This can be done to run the " block" command, select the block to change, and and activate " Annotative" and " Match block orientating to layout"
For example, you may want to have a block presenting the locating of an elevator automatically orientated to every layout.
In a layout with a rotated viewport by 90 degrees, all the elevator blocks are shown according the layout.
Is it possible to set the block orientating to match the layout in .NET ?
Is it possible to set the block orientating to match the layout even the block is not annotative?
Any example in C# or vb.NET would be fine
http://www.theswamp.org/index.php?topic=39544.0
Thanks it works
But you have to be sure that the block is allready an annotative block
Otherwise you have to set it first:
Dim btr As BlockTableRecord = trx.GetObject(bt(sBlockName), OpenMode.ForRead)
If btr.PaperOrientation <> bAllignToLayout Then
btr.UpgradeOpen()
btr.Annotative = 0 ' first annotative state (default)
btr.SetPaperOrientation(bAllignToLayout)
end if