.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating block + attributs + dynamic visibility DbObjectCollection

2 REPLIES 2
Reply
Message 1 of 3
AubelecBE
308 Views, 2 Replies

Creating block + attributs + dynamic visibility DbObjectCollection

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 ?

 

2 REPLIES 2
Message 2 of 3

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).

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
Message 3 of 3

yes. i want to populate the DbObjectCollection with the blockRef + Attribute + Dynamic Visibility set to a good name.

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost