How can I create a callout or section (aka Element w/Category = Builtin.OST_Viewers and w/ElementType w/Name = "Detail","Detail Section","Building Section","Wall Section",'Floor Plan",etc) using the API? I'm able to query in one drawing them using a FilteredElementCollector but now I want to create copies of them in another drawing.
In Revit 2012 and previous version, NewViewSection() method can be used to create section view. The new view category is OST_Views, and the ElementType name is "Building Section" by default. After create the section view, you can change its type "Wall Section" or other section types.
However Revit 2012 and the previous version didn't provide the API to create the callout view. Please keep an eye on the coming Revit 2013.
Joe Ye Developer Technical Services Autodesk Developer Network