Message 1 of 25
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to extract all that is visible and correctly placed in the attached image.
Solved! Go to Solution.
I want to extract all that is visible and correctly placed in the attached image.
Solved! Go to Solution.
Application > Documents > select the family definition document.
My code :
Ok, i found some TextNode, TextElement and ImageInstance. But my filters are not working.
Is there any documentation of filter ?
My code :
FilteredElementCollector collector = new FilteredElementCollector(DocFamily);
ICollection<Element> lines = collector.OfCategory(BuiltInCategory.OST_Lines).ToElements();
ICollection<Element> texts = collector.OfClass(typeof(TextNote)).ToElements();
Where is not error ?
Dear Pierre,
You really do need to learn to search the Internet.
In this case, for instance, you can just search for 'Revit API filtered element collector':
https://duckduckgo.com/?q=revit+api+filtered+element+collector
Please practice this for a bit before asking the next question.
Best regards,
Jeremy
The specific problem that you ran into was discussed in the note on reinitialising the filtered element collector:
I edited this conversation and preserved it for posterity on The Building Coder:
Thank you very much for your contributions!