Hi,
I want to create à blockReference from a BlockTableRecord. (This contains attribut and Dynamic State).
I want to create this with in DbObjectCollection.
example with à DbText ;
Dim CollObject As New DBObjectCollection
Dim txt As DBText
Txt = New DBText
Txt.Position = New Point3d(PosX, PosY, PosZ)
Txt.TextString = Texte
Txt.Layer = "0"
CollObject.Add(txt)
....
For Each ent As Entity In CollObject
BlocDef.AppendEntity(ent)
tr.AddNewlyCreatedDBObject(ent, True)
Next
....
It is possible to do the same with block + attribut + Dyn ?
or i need to insert the blockref for extract de Dynamic property ?
I'm not sure what you mean...but would guess that instead DBText you may want to use AttributeDefinition (for the BlockTableRecord) and a respective AttributeReference (for the BlockReference).
yes. i want to populate the DbObjectCollection with the blockRef + Attribute + Dynamic Visibility set to a good name.