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

天涯浪子 提交于 2019-12-11 01:49:50

问题


I'm trying to create Element Keynote for a wall and Material Keynote for it's materials (to make it like in this image bit I'm completely stuck with it.

I tried to create a tag how it was shown in this blog post: http://thebuildingcoder.typepad.com/blog/2010/06/set-tag-type.html But I can't change a keynote tag to OST_KeynoteTags and to associate it with wall or material:

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

but Revit doesn't allow me to do this:

newTag.ChangeTypeId(keynoteTagType.Id);

or maybe I'm on the wrong path...


回答1:


The answer I got from Autodesk is that it's impossible to create keynotes via the API.

Sorry to break the bad news.



来源:https://stackoverflow.com/questions/16589221/revit-api-how-to-create-element-keynote-for-a-wall-and-material-keynote

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!