public void Run()
{
View view = _doc.ActiveView;
Level level = view.GenLevel;
if( null == level )
{
throw new Exception(
"No level associated with view" );
}
XYZ pt1 = Util.MmToFoot( new XYZ( 0, 0, 1000 ) );
XYZ pt2 = Util.MmToFoot( new XYZ( 1000, 0, 1000 ) );
XYZ pt3 = Util.MmToFoot( new XYZ( 2000, 0, 2500 ) );
XYZ pt4 = Util.MmToFoot( new XYZ( 3000, 0, 2500 ) );
FamilySymbol familySymbol = Util.FindFamilySymbol(
_doc,
CmdSteelStairBeams.FamilyName,
CmdSteelStairBeams.SymbolName );
if( familySymbol == null )
{
throw new Exception( "Beam Family not found" );
}
CreateBeam( familySymbol, level, pt1, pt2 );
CreateBeam( familySymbol, level, pt2, pt3 );
CreateBeam( familySymbol, level, pt3, pt4 );
}