<reponame>os4bim/revit<filename>Show_Parameters.py
import clr
import System
clr.AddReference('RevitAPI') 
clr.AddReference('RevitAPIUI') 
from Autodesk.Revit.DB import * 

app = __revit__.Application
doc = __revit__.ActiveUIDocument.Document


#Is element type

PA1 = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_PipeAccessory).WhereElementIsElementType().FirstElement()

for p in PA1.Parameters:
    print p.Definition.Name
    try:
        print p.GUID
    except:
        print p.Definition.BuiltInParameter
    print '-'*20
    
#Is NOT element type

PA2 = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_PipeAccessory).WhereElementIsNotElementType().FirstElement()

for p in PA2.Parameters:
    print p.Definition.Name
    try:
        print p.GUID
    except:
        print p.Definition.BuiltInParameter
    print '-'*20
import clr
import System
clr.AddReference('RevitAPI') 
clr.AddReference('RevitAPIUI') 
from Autodesk.Revit.DB import * 

app = __revit__.Application
doc = __revit__.ActiveUIDocument.Document


#Is element type

PA1 = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_PipeAccessory).WhereElementIsElementType().FirstElement()

for p in PA1.Parameters:
    print p.Definition.Name
    try:
        print p.GUID
    except:
        print p.Definition.BuiltInParameter
    print '-'*20
    
#Is NOT element type

PA2 = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_PipeAccessory).WhereElementIsNotElementType().FirstElement()

for p in PA2.Parameters:
    print p.Definition.Name
    try:
        print p.GUID
    except:
        print p.Definition.BuiltInParameter
    print '-'*20
#Is element type #Is NOT element type