第 1 条消息(共 8 条)
When drawing the duct, we have access to the type of each duct type with different routing preferences, see screen shot. How can we access the name of the type of round duct for example Round Duct with Taps or Tee version of the duct type?
Currently, I can access only the FamilyName, but not the element's name like Tees, for the round duct. Pleas advise!
doc=DocumentManager.Instance.CurrentDBDocument
# Filter for MEPCurveType
FamCollector=FilteredElementCollector(doc).OfClass(MEPCurveType)
for Fam in FamCollector:
FamilyT.append(Fam.FamilyName)
#Select only hard Duct not flex duct
if "Duct" in Fam.FamilyName and "Flex" not in Fam.FamilyName:
DuctFamily.append(Fam.FamilyName)
已解决! 转到解答。