c# - Revit API : How to create Element Keynote for a wall and Material Keynote?

标签 c# revit revit-api

我正在尝试为墙壁创建 Element Keynote 并为其 Material 创建 Material Keynote(为了使其像 in this image 我完全坚持下去。

我尝试创建一个标签,如本博客文章中所示:http://thebuildingcoder.typepad.com/blog/2010/06/set-tag-type.html但我无法将主题标记更改为 OST_KeynoteTags 并将其与墙壁或 Material 相关联:

FamilySymbol keynoteTagType = GetFirstFamilySymbol(doc, BuiltInCategory.OST_KeynoteTags);
IndependentTag newTag = doc.Create.NewTag(view, wall, true, tagMode, tagorn, wallMid);

但 Revit 不允许我这样做:

newTag.ChangeTypeId(keynoteTagType.Id);

或者也许我走错了路......

最佳答案

我从 Autodesk 得到的答案是,不可能通过 API 创建主题演讲。

很抱歉宣布这个坏消息。

关于c# - Revit API : How to create Element Keynote for a wall and Material Keynote?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16589221/

相关文章:

c# - 如何使用 Revit API 获取 Revit 文件版本?

c# - 如何将 MaterialDesignXamlToolkit 包含到 WPF 类库中?

.net - System.BadImageFormatException 尝试加载格式不正确的程序

revit-api - 边界框相交

python - 从 Revit 外部访问 Revit API

c# - mysql + .NET 连接器 : "Column ' CharacterID' cannot be null"

多个类的 C# 接口(interface)

c# - EPPlus 日期单元格数据类型不工作

python - 如何从 Python 创建 Revit 加载项 DLL

c# - 访问.net wcf服务时出现空指针异常