IfcUniquePropertyName

IfcUniquePropertyName

该函数获取IfcProperty的集合。它遍历IfcProperty的attibute名称,并验证没有名称出现两次。

IFC4中的新功能

 

EXPRESS Specification

FUNCTION IfcUniquePropertyName
(Properties : SET [1:?] OF IfcProperty)
:LOGICAL;

LOCAL
   Names : SET OF IfcIdentifier := [];
END_LOCAL;

REPEAT i:=1 TO HIINDEX(Properties);
   Names := Names + Properties[i].Name;
END_REPEAT;

RETURN (SIZEOF(Names) = SIZEOF(Properties));

 

 

#########################

posted @ 2021-07-10 18:56  西北逍遥  阅读(62)  评论(0编辑  收藏  举报