;;锯齿形街沟设计
(defun c:zzcdesign ()
  ;(En_Reactor)
  (if (IsLoaded_ZZC)
  (zdm_zzc)
  )
  ;(Un_Reactor)
)

;;;平面绘制锯齿形街沟
(defun c:pmzzc ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
	(Pm_DrawZZC)
  )
  (Un_Reactor)
)

;;;街沟前提数据
(defun c:JCJG_SJ_PreData ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (JCJG_SJ_PreData)
  )
  (Un_Reactor)
)

;;;绘制街沟草图
(defun c:JcJG_SJ_DrawCT ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (JcJG_SJ_DrawCT)
  )
  (Un_Reactor)
)

;;;分段布置街沟
(defun c:jcjg_sj_fdbz ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (JcJG_SJ_FdBz)
  )
  (Un_Reactor)
)

;;;删除街沟分段
(defun c:JCJG_SJ_DelFD ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (JCJG_SJ_DelFD)
  )
  (Un_Reactor)
)

;;;编辑街沟分段
(defun c:JCJG_SJ_EditFD ()
  (En_Reactor)
  (#ppas "ZigzagChannelDesign")
  (JCJG_SJ_EditFD)
  (Un_Reactor)
)

;;;删除布设点
(defun c:JCJG_SJ_DelGorS ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (JCJG_SJ_DelGorS)
  )
  (Un_Reactor)
)

;;;添加雨水口
(defun c:JCJG_SJ_AddGully ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (JCJG_SJ_AddGully)
  )
  (Un_Reactor)
)

;;;添加分水点
(defun c:JCJG_SJ_AddWatershed ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (JCJG_SJ_AddWatershed)
  )
  (Un_Reactor)
)

;;;移动雨水口
(defun c:JCJG_SJ_MoveGully ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (JCJG_SJ_MoveGully)
  )
  (Un_Reactor)
)

;;;移动分水点
(defun c:JCJG_SJ_MoveWatershed ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (JCJG_SJ_MoveWatershed)
  )
  (Un_Reactor)
)

;;;自动调整雨水口
(defun c:JCJG_SJ_AutoAdjust ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (JCJG_SJ_AutoAdjust)
  )
  (Un_Reactor)
)

;;;检查坡度
(defun c:JCJG_SJ_CheckGrade ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (JCJG_SJ_CheckGrade)
  )
  (Un_Reactor)
)

;;;保存街沟设计文件
(defun c:JCJG_SJ_Save ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (JCJG_SJ_Save)
  )
  (Un_Reactor)
)

;;;另存为街沟设计文件
(defun c:JCJG_SJ_SaveAs ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (JCJG_SJ_SaveAs)
  )
  (Un_Reactor)
)

;;;选择草图
(defun c:JCJG_SJ_SelSketch ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (JCJG_SJ_SelSketch)
  )
  (Un_Reactor)
)

;;;编辑缘石顶线
(defun c:Jcjg_Sj_EditKerbLine ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (Jcjg_Sj_EditKerbLine)
  )
  (Un_Reactor)
)

;;;修改标尺高度
(defun c:Jcjg_Sj_ChangeRuleH ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (Jcjg_Sj_ChangeRuleH)
  )
  (Un_Reactor)
)

;;;雨水口表
(defun c:Jcjg_Sj_GullyCount ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (JCJG_SJ_GULLYCOUNT)
  )
  (Un_Reactor)
)

;;;更新表头数据
(defun c:Jcjg_Sj_UpdateHead ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (JCJG_SJ_UPDATEHEAD)
  )
  (Un_Reactor)
)

;;;定义缘石顶线
(defun c:Jcjg_SJ_DefineKerbTop ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (Jcjg_SJ_DefineKerbTop)
  )
  (Un_Reactor)
)

;;;统计平面雨水口
(defun c:Jcjg_SJ_CountPlaneGully ()
  (En_Reactor)
  (if (IsLoaded_ZZC)
  (Jcjg_SJ_CountPlaneGully)
  )
  (Un_Reactor)
)
;;;帮助
(defun c:ZZChelp (/ w_path)
  (setq w_path (strcat (HY_GetInstallDir) "ZigzagChannel\\Help")
        w_path (strcat w_path "\\ZigzagChannel.chm")
  )
;;(startapp "winhlp32" w_path)
  (startapp "hh" w_path)
  (princ)
)