View3D.CreateIsometric issue finding viewFamilyTypeId

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 ) )
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?

Just realized the example I referred to is still valid, I just didn’t have the correct import.

using System.Linq