Property DynamicBlockReferencePropertyCollection
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
DynamicBlockReferencePropertyCollection
Gets the dynamic properties of the INSERT, as AutoCAD's DynamicBlockReferencePropertyCollection: a new list on
each call, each property's value the one AutoCAD saved for this INSERT, or the dynamic block's own where it saved
none, as for an INSERT of the dynamic block itself. Empty where the INSERT places no dynamic block. The value of a
linear, XY, polar, point, rotation, flip, visibility, lookup, user parameter or block properties table property is set
as AutoCAD sets it, where the block is one the library works out
(Value); the others are read only.
public IReadOnlyList<DxfDynamicBlockReferenceProperty> DynamicBlockReferencePropertyCollection { get; }
Property Value
Remarks
Each parameter of the block's evaluation graph (ACAD_EVALUATION_GRAPH under ACAD_ENHANCEDBLOCK of its BLOCK_RECORD's extension dictionary) gives its properties, in the order of the graph's nodes; the value saved is the XRECORD named by the parameter's node id under AcDbBlockRepresentation, AppDataCache and ACAD_ENHANCEDBLOCKDATA of the INSERT's extension dictionary. A linear parameter gives its distance; a polar one its distance and its angle; an XY one its distances along x and along y; a rotation one its angle from its base angle, in radians from nought up to a whole turn; a point one its position's x and y; a flip one its state, 0 or 1; a visibility one its state, the first of its states where none is saved; a lookup one the value its table gives. A length is scaled by the largest of the INSERT's scale factors, so that the door of Width 1 000 inserted at a scale of 2 gives 2 000, and a distance of 7.5 along x at the scale (2, 3, 2) 22.5, as AutoCAD 2021 read it. A value set's list is given where its flags hold 8, a list, as AutoCAD gave none of a list under the flags 1, 2 or 4, with the block's own value where the list was written without it, and a value set is taken to that list (plugin D26b). A linear, XY, polar, rotation or constraint parameter also gives, after its own properties, a hidden property Origin, its base point in the block's coordinates (a GeoPoint3, type 12, Show false, read and not set), as AutoCAD 2021 reads it (plugin GhDy3a); a loop that lists the properties as its palette does skips those that are not shown. Actions, grips, base point and alignment parameters give none.
A block properties table gives the property of its name, Block Table1 as AutoCAD names it, a short: the index of the first row whose every parameter's column holds the value the INSERT shows, in the block's units, a distance or an angle within 1E-7, as AutoCAD 2021 read 200.00000001 as 200 and 200.0000002 as not (plugin D26b), a text alike, the visibility state among them; -1 where no row does; a column of an attribute definition is not matched; nothing allowed. AutoCAD 2021 read so the library's tables and its own samples (plugin D26): Fluorescent at 1 000 by 500 the row 4, Parking -1 for its Spaces of 1 that no row holds. The table is read after the properties of its columns, in its place in the graph's order. A user parameter the table made gives its value, a string (type 5) or a double of no units (type 1), named as its variable; a horizontal, a vertical, an aligned or a radial constraint parameter its distance, which is set, but for an aligned one, by solving the block's constraints, as Value says.
Nothing is worked out anew when the values are read: they are those saved when the block was last evaluated, by AutoCAD or by a value set here, and a block whose geometry was changed by another program keeps the values saved. A record of saved data too short to be read gives the block's own value.