|
@@ -121,10 +121,6 @@ namespace ToolCommand
|
|
|
{
|
|
|
var relationItem = new RoomRelationItem() { RoomId = room.Id.ToString() };
|
|
|
relations.Add(relationItem);
|
|
|
- if (2165067 == room.Id.IntegerValue)
|
|
|
- {
|
|
|
-
|
|
|
- }
|
|
|
using (SubTransaction subTran = new SubTransaction(doc))
|
|
|
{
|
|
|
Space useSpcae = null;
|
|
@@ -135,7 +131,7 @@ namespace ToolCommand
|
|
|
if (location == null)
|
|
|
{
|
|
|
//|| room.Area.IsEqual(0)
|
|
|
- relationItem.Messages.Add("房间信息无效");
|
|
|
+ relationItem.Messages.Add("房间信息无效,定位点为空");
|
|
|
continue;
|
|
|
}
|
|
|
useSpcae = doc.GetSpaceAtPoint(location.Add(offset));
|
|
@@ -150,7 +146,15 @@ namespace ToolCommand
|
|
|
//成功
|
|
|
handledSpaces.Add(useSpcae.Id.IntegerValue);
|
|
|
relationItem.SpaceId = useSpcae.Id.ToString();
|
|
|
- relationItem.IsSuccess = true;
|
|
|
+ if (room.Area.IsEqual(0))
|
|
|
+ {
|
|
|
+ relationItem.Messages.Add("房间面积为0");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ relationItem.IsSuccess = true;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|