PPT_LOGO_4b
AutoCAD Architecture .NET API ‹#›
Copyright © 2009 Autodesk Inc.
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
   DictionaryWallStyle dict = new DictionaryWallStyle(db);
        String stylename = "Cavity";
        String description = "Cavity Wall Style";
        //判断是否已经存在
        if (!(dict.Has(stylename, trans)))
        {           
            //不存在,创建
            WallStyle style = new WallStyle();
            style.Description = description;
            //加入字典
            dict.AddNewRecord(stylename, style);
            //加入事务
            tm.AddNewlyCreatedDBObject(style, true);
        }
创建样式