.NET

Reply
Valued Mentor
AubelecBE
Posts: 391
Registered: ‎01-27-2010
Message 1 of 3 (162 Views)

Creating block + attributs + dynamic visibility DbObjectCollection

162 Views, 2 Replies
07-17-2013 10:42 AM

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 ?

 

ADN Support Specialist
augusto.goncalves
Posts: 358
Registered: ‎04-30-2009
Message 2 of 3 (146 Views)

Re: Creating block + attributs + dynamic visibility DbObjectCollection

07-17-2013 12:21 PM in reply to: AubelecBE

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
Autodesk Developer Network
Valued Mentor
AubelecBE
Posts: 391
Registered: ‎01-27-2010
Message 3 of 3 (115 Views)

Re: Creating block + attributs + dynamic visibility DbObjectCollection

07-18-2013 03:41 AM in reply to: augusto.goncalves

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

 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.