Title Block Identity

Title Block Identity

Bruno_Neves_Pires_Silva
Advocate Advocate
699 Views
1 Reply
Message 1 of 2

Title Block Identity

Bruno_Neves_Pires_Silva
Advocate
Advocate

Hello, Folks.

 

    How can I get/set the Identity data of a Title Block ? Please see the attached image for more information. 

 

 

Thank you in advance.

 

Bruno Neves.

0 Likes
Accepted solutions (1)
700 Views
1 Reply
Reply (1)
Message 2 of 2

Bruno_Neves_Pires_Silva
Advocate
Advocate
Accepted solution

I think I've got it:

 

Snippet

Document doc = App.ActiveUIDocument.Document;
          FilteredElementCollector collector = new FilteredElementCollector(doc);
          collector.OfClass(typeof(FamilyInstance));
          collector.OfCategory(BuiltInCategory.OST_TitleBlocks);
 
          IList<Element> title_blocks = collector.ToElements();
 
          foreach (FamilyInstance fi in title_blocks)
              foreach (Parameter prm1 in fi.Parameters)
                  Debug.Print(prm1.Definition.Name);
0 Likes