我需要找到坐标OST_Viewers和OST_Level类型。我用这段代码得到它们:
var vieversCollection =
new FilteredElementCollector(uiDoc.Document)
.OfCategory(BuiltInCategory.OST_Viewers);
var levelsCollection =
new FilteredElementCollector(uiDoc.Document,)
.OfCategory(BuiltInCategory.OST_Levels);
我试图Location为他们使用该属性,并将其转换为LocationPoint,但它总是返回null。我应该使用什么方法进行坐标?