如何访问“标题"来自BIM 360“计划"的文件文件夹 [英] How to access the "Title" of a file from a BIM 360 "Plans" folder
问题描述
我们需要获取标题",如此处所示.BIM 360的文档管理"页面.
We need to get the "Title" as seen here in the Plans folder of the Document Management page of BIM 360.
到目前为止,我只能在 version.Value.attributes.extension.data.viewableName
中找到它,其中 version
的初始化方式如下
So far I can only find it at version.Value.attributes.extension.data.viewableName
where version
is initialized as follows
ItemsApi itemApi = new ItemsApi();
itemApi.Configuration.AccessToken = Credentials.TokenInternal;
var versions = await itemApi.GetItemVersionsAsync(projectId, itemId);
foreach (KeyValuePair<string, dynamic> version
in new DynamicDictionaryItems(versions.data))
{
var vieawbleName = version.Value.attributes.extension.data.viewableName
...
}
但是它并不总是在那里.如果存在,则viewableName将包含类似"A1.00-SITE SURVEY"的内容,其中"A1.00"是该项目/版本的编号",而"SITE SURVEY"是标题".问题在于,大多数情况下,viewableName仅包含"Number",而不包含"Number-Title".
But it isn't always there. If it is there, viewableName will contain something like "A1.00 - SITE SURVEY", where "A1.00" is the "Number" of that item/version, and "SITE SURVEY" is the "Title". The issue is that most of the time, viewableName will only contain "Number" not "Number - Title".
是否有办法始终获得标题"?理想情况下,我们希望看到每个版本的标题,以防将其从一个版本更改为另一个版本.
Is there a way to get the "Title" consistently? Ideally, we would like to see the title for each version, in case it is changed from one version to the next.
推荐答案
不幸的是,title属性是通过BIM360自定义属性功能构建的,据我所知,目前没有可用的API来获取它.很抱歉这个坏消息.
Unfortunately, the title attribute is built via BIM360 custom attributes feature, and there is no API available to fetch it currently as I know. Sorry for the bad news.
这篇关于如何访问“标题"来自BIM 360“计划"的文件文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!