Using tx As New Transaction(doc)
tx.Start("Create 3D View")
Dim ThreeDViews As ICollection(Of
Autodesk.Revit.DB.Element) = coll.OfClass(GetType(ViewFamilyType)).ToElements()
For Each VFT As ViewFamilyType In ThreeDViews
If VFT.ViewFamily = ViewFamily.ThreeDimensional Then
Dim ThreeDView As
ViewFamilyType = VFT
Dim view3D As
View3D = view3D.CreateIsometric(doc,
ThreeDView.Id)
view3D.Name = "Drew's QTO Export
View"
tx.Commit()
tx.Dispose()
uidoc.ActiveView = view3D
End If
Next
End Using
Happy New Year 2013, long time no post?
ReplyDelete