Get all Noteblock schedules

Get all Noteblock schedules

sragan
Collaborator Collaborator
347 Views
2 Replies
Message 1 of 3

Get all Noteblock schedules

sragan
Collaborator
Collaborator

Is there a way to filter to get all the noteblock schedules?  I've got all the schedules, but then I'm stuck:

FilteredElementCollector collector = new FilteredElementCollector(doc);

IList<Element> collection = Collector.OfClass(typeof(ViewSchedule)).ToElements();

 

0 Likes
Accepted solutions (1)
348 Views
2 Replies
Replies (2)
Message 2 of 3

RPTHOMAS108
Mentor
Mentor
Accepted solution

ViewSchedule.Definition

ScheduleDefinition.FamilyId

"In a note block schedule, the ID of the Generic Annotation family displayed by the schedule."
 
Not sure if there is a more direct route.

 

0 Likes
Message 3 of 3

stever66
Advisor
Advisor

When used with GetValidFamiliesForNoteBlock, that’s pretty direct.

 

thanks.

0 Likes