用途:在 IFC 模型中定义结构截面轮廓,并据此生成基于轮廓的拉伸几何或结构材质的截面信息。
主要能力:参数化轮廓通过 profile.add_parameterised_profile() 创建,ifc_class 可选 IfcIShapeProfileDef、IfcAsymmetricIShapeProfileDef、IfcUShapeProfileDef、IfcCShapeProfileDef、IfcTShapeProfileDef、IfcLShapeProfileDef、IfcZShapeProfileDef、IfcRectangleProfileDef、IfcRectangleHollowProfileDef、IfcRoundedRectangleProfileDef、IfcCircleProfileDef、IfcCircleHollowProfileDef、IfcEllipseProfileDef、IfcTrapeziumProfileDef。自定义轮廓用 profile.add_arbitrary_profile(),带孔洞用 profile.add_arbitrary_profile_with_voids()。
使用方式:先创建轮廓实体,再用 profile.edit_profile() 设置 ProfileName 与各尺寸属性;尺寸一律用 SI 米(200mm 写 0.200)。拉伸几何用 geometry.add_profile_representation(context, profile, depth),再几何赋值;结构材质用 material.add_material_set(set_type="IfcMaterialProfileSet") 与 material.add_profile(),并优先赋给元素类型(如 IfcBeamType)而非单个实例。同一 IfcProfileDef 可同时用于几何与材质。
限制与注意:必须用英式拼写 add_parameterised_profile;新建参数化轮廓后尺寸默认为零,必须调用 edit_profile() 设置;不要直接用 model.create_entity() 创建轮廓实体;ifc_class 大小写敏感;任意轮廓需提供闭合多边形;profile_type 默认 AREA,仅中心线表示用 CURVE;删除前需确认无引用。所列 API 在 IFC2X3、IFC4、IFC4X3 行为一致。具体价格、平台与安装步骤资料未提供。