Hello,
How to get the ParameterType? IsShared? IsFamilyParameter? IsInstance or TypeParameter? how can i get this information?
I collect rooms…
params = IN[0]
OUT = []
for i in params:
OUT.append(i.IsShared)
KR
Andreas
Hello,
How to get the ParameterType? IsShared? IsFamilyParameter? IsInstance or TypeParameter? how can i get this information?
I collect rooms…
params = IN[0]
OUT = []
for i in params:
OUT.append(i.IsShared)
KR
Andreas
I don’t know if there’s a better way, but it looks like you can get that information from the TypeId
.
import clr
clr.AddReference(“RevitAPI”)
import Autodesk
from Autodesk.Revit.DB import *
element = UnwrapElement(IN[0])
params = element.Parameters
isFamily = {}
for param in params:
name = param.Definition.Name
typeId = param.GetTypeId().TypeId
type = typeId.split(“:”)[0]
isFamily[name] = type
OUT = isFamily
Whether the parameter is instance or type will obviously come from whether the element was an instance or type.