how can retrieve the value of parameters by python. my code is below. Not sure what is wrong or missing.
import clr
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
clr.AddReference("RevitAPI")
import Autodesk
#from Autodesk.Revit.DB import *
from Autodesk.Revit.DB import Mechanical
from Autodesk.Revit.DB.Mechanical import DuctInsulation
from Autodesk.Revit.DB.Mechanical import DuctShape
from Autodesk.Revit.DB.Mechanical import DuctSettings
from Autodesk.Revit.DB import Connector
doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application
el = UnwrapElement (IN[0])
cType =
shMlst =
shSlst =
co1List =
for cn in el:
con = cn.MEPModel.PartType
con = cn.Parameters
cType.append(con)
OUT = cType#,dir(cType[0])