public static void GetOneFloor() { var entityId = Interaction.GetEntity("选择一个机房"); var entity = entityId.QOpenForRead <Entity>(); GetCADOtherCommands.GetOneFloorWithRoot(entity.Layer, ""); return; }
public static void GetOneFloorWithRoot() { string txt = Interaction.GetString("输入厂区名称(默认:厂区A)"); if (string.IsNullOrEmpty(txt)) { txt = "厂区A"; } var entityId = Interaction.GetEntity("选择一个机房(用来获取楼层的Layer)"); var entity = entityId.QOpenForRead <Entity>(); GetCADOtherCommands.GetOneFloorWithRoot(entity.Layer, txt); return; }