which library need to import to get the view name. my code is as shown below and i am getting the below error message
What are you trying to do ?
view = UnwrapElement(IN[0])
v=view.Name
OUT = v
OR :
import clr
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument
clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.Elements)
view = doc.ActiveView.ToDSType(True)
v=view.Name
OUT = v