« Setting up a 3D View like a Section View | Main | Architecture Mismatch Warning Disabler Update »

September 08, 2014

Comments

I struggled with this for a bit before figuring this out. You can determine if an Electrical Equipment family is a Panel or Switchboard by accessing the 'Part Type' information stored on the family.

FamilyInstance ee = e as Autodesk.Revit.DB.FamilyInstance;
FamilySymbol fs = ee.Symbol as Autodesk.Revit.DB.FamilySymbol;

Family eeFamily = fs.Family;

eeFamily.get_Parameter(BuiltInParameter.FAMILY_CONTENT_PART_TYPE).AsInteger()

14 = Panelboard
16 = Switchboard

Hope this helps,

Ben

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource