.NET

.NET

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

Creating block + attributs + dynamic visibility DbObjectCollection

163 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: 390
Registered: ‎04-30-2009
Message 2 of 3 (147 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: 407
Registered: ‎01-27-2010
Message 3 of 3 (116 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.

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.