是创建框架哈,不是给Element添加属性。
DgnFile dgnFile = Session.Instance.GetActiveDgnFile(); ItemTypeLibrary itemTypeLibrary = ItemTypeLibrary.Create("itemTypeLibrary_1", dgnFile); ItemType itemType = itemTypeLibrary.AddItemType("itemType_1"); CustomProperty customProperty = itemType.AddProperty("customProperty_1"); customProperty.Type = CustomProperty.TypeKind.Integer;
Answer Verified By: 巴燕 史
感谢您的及时反馈!