Horje
get all view port type dynamo revit Code Example
get all view port type dynamo revit
import clr
# Import RevitAPI
clr.AddReference('RevitAPI')
import Autodesk
from Autodesk.Revit.DB import *

# Import DocumentManager and TransactionManager
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager

clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.Elements)

doc = DocumentManager.Instance.CurrentDBDocument


collection = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Viewports).WhereElementIsNotElementType().ToElements()

vptypes = []
for e in collection:
	if e.Category != None:
		vptypes.append(e.ToDSType(True))

OUT = vptypes




Python

Related
python get previous method name Code Example python get previous method name Code Example
normalize image in cv2 Code Example normalize image in cv2 Code Example
difference between object and class in python Code Example difference between object and class in python Code Example
Which function is used to write all the characters? Code Example Which function is used to write all the characters? Code Example
modwt python github code Code Example modwt python github code Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8