Class DxfDrawOrderTable
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
The draw order of a block, as AutoCAD's DrawOrderTable: the SORTENTSTABLE kept under ACAD_SORTENTS in the
extension dictionary of the block's BLOCK_RECORD, which gives an entity a sort handle (5) after its own (331). The
entities are drawn in the order of their sort handles, the lowest first and so at the back; an entity the table does
not list sorts by its own handle.
public sealed class DxfDrawOrderTable : DxfDBObject
- Inheritance
-
DxfDrawOrderTable
- Inherited Members
Remarks
A block of a line 2A, a circle 2B and a hatch 2C drawn over them, whose hatch is sent to the back by
table.MoveToBottom(new[] { hatch }), is drawn hatch, line, circle: the three take the sort handles 2A, 2B and 2C
in that order, so the table lists the hatch with 2A, the line with 2B and the circle with 2C, as AutoCAD writes them.
The sort handles are those the moved entities had between them, given out again in the new order, so that no two
entities share one and an entity the table does not list keeps its place.
DrawOrderTable gives the table of a block, and CreateDrawOrderTable() makes one where it has none.
Properties
- Block
Gets the block whose entities the table orders; null for a table read on its own, outside its block.
Methods
- GetFullDrawOrder()
Gets the entities of the block in the order they are drawn, as AutoCAD's
GetFullDrawOrder: the back first. Two entities of one sort handle, which a damaged table may give, are drawn in the order of the block.
- MoveAbove(IEnumerable<DxfEntity>, DxfEntity)
Puts entities of the block just over another, as AutoCAD's
MoveAbove, keeping their order among themselves.
- MoveBelow(IEnumerable<DxfEntity>, DxfEntity)
Puts entities of the block just under another, as AutoCAD's
MoveBelow, keeping their order among themselves.
- MoveToBottom(IEnumerable<DxfEntity>)
Sends entities of the block to the back, as AutoCAD's
MoveToBottom, keeping their order among themselves.
- MoveToTop(IEnumerable<DxfEntity>)
Brings entities of the block to the front, as AutoCAD's
MoveToTop, keeping their order among themselves.