|
@@ -49,9 +49,11 @@ namespace SAGA.MBI.RevitReference
|
|
|
if (fs == null) return Result.Cancelled;
|
|
|
if (IsBasePointFamily(fs))
|
|
|
{
|
|
|
- XYZ xyz = XYZ.Zero;
|
|
|
+ //使用BIMLocation中的坐标,mm转为英寸
|
|
|
+ XYZ xyz = mode.MEquipBase.Location.ToXyz().ConvertToApi();
|
|
|
var level = GetCurFloorLevel(doc);
|
|
|
-
|
|
|
+ //传标高,z值设置为零
|
|
|
+ xyz=xyz.NewZ(0);
|
|
|
fi = doc.Create.NewFamilyInstance(xyz, fs, level, StructuralType.NonStructural);
|
|
|
mode.MEquipBase.SaveDutyBIMRelation(doc.PathName.GetFileName(),fi.Id.ToString());
|
|
|
trans.Commit();
|