コード例 #1
0
        public static GCColumnVertical CreateVerticalColumn(GCRevitDocument doc, XYZ p1, double height, FamilySymbol sym)
        {
            var p2   = new XYZ(p1.X, p1.Y, p1.Z + height);
            var inst = GCFrameCreator.CreateFrameByStructuralType(doc, p1, p2, sym, StructuralType.Column);

            return(GCColumnVertical.CreateGCColumnVertical(inst));
        }
コード例 #2
0
        public static GCColumnSlanted CreateBrace(GCRevitDocument doc, Curve crv, FamilySymbol sym)
        {
            var inst = GCFrameCreator.CreateFrameByStructuralType(doc, crv, sym, StructuralType.Column);

            return(GCColumnSlanted.CreateGCColumnSlanted(inst));
        }
コード例 #3
0
        public static GCColumnSlanted CreateSlantedColumn(GCRevitDocument doc, XYZ p1, XYZ p2, FamilySymbol sym, GCLevel lev)
        {
            var inst = GCFrameCreator.CreateFrameByStructuralType(doc, p1, p2, sym, lev, StructuralType.Column);

            return(GCColumnSlanted.CreateGCColumnSlanted(inst));
        }