I'm migrating from version 2012 to 2013.
Can anybody help me 'translating' the next line?
generatedView = m_Document.Create.NewView3D(new Autodesk.Revit.DB.XYZ(0, 0, 1));
According to API documentation, you should use View3D::CreateIsometric() method instead. It shouldn't be difficult...just get a suitable view type. Or is there something specifically unclear about this...?
In Revit 2013, there is a new class ViewFamilyType, it represents the view type. This class derives from Element class. You can use the FilteredElementCollector to find the object set. Then get one of the view type.
Developer Technical Services
Autodesk Developer Network
But getting a viewtype this way is going to copy an existing view. What NewView3D was doing was allowing one create a new view with a different direction.
In my mind there is also confusion between specifying a type and the elementid of an existing view.
Did you find a sample for this? I am facing the same, and finding it tricky. A single line example to replace the deprecated code would be invaluable. Thanks, Dale