I’m trying to create a View3D object with the CreateIsometric method in C#. The documentation calls for a viewFamilyTypeId.
A previous way to solve this can be found on the building coders website; however, this seems to be outdated as the code is not working for me.
Not Working:
ViewFamilyType viewFamilyType3D
= new FilteredElementCollector( doc )
.OfClass( typeof( ViewFamilyType ) )
.Cast()
.FirstOrDefault(
x => ViewFamily.ThreeDimensional
== x.ViewFamily );
Does anyone know of a way to get the correct parameter to pass into this method to create a 3D view?