(defun fa_razb ( / )
(setq path_ritm_sudno (vl-registry-read "HKEY_LOCAL_MACHINE\\SOFTWARE\\ЦНИИТС\\РИТМ-СУДНО" "path"))
(setq fo (open (strcat path_ritm_sudno "\\Project.txt" ) "R"))
(read-line fo)
(read-line fo)
(read-line fo)
(read-line fo)
(read-line fo)
(read-line fo)
(setq VSPOM_ORDER_DIR (read-line fo))
(close fo)
(setq ORDER_DIR (substr VSPOM_ORDER_DIR 6))
(setq spis_file (vl-directory-files (strcat ORDER_DIR "DWG") "*.DWG" 1))
(setq le_spis_file (length spis_file))
(setq i 0)
(vl-file-delete (strcat path_ritm_sudno "\\tmp\\FasLasStat.txt"))
(setq fo (open (strcat path_ritm_sudno "\\tmp\\myscript.scr") "w"))
(while (< i le_spis_file)
(write-line "_.OPEN" fo)
(write-line (strcat ORDER_DIR "DWG\\" (nth i spis_file)) fo)
(write-line "(np_l \"fa_stat_f_l.vlx\")" fo)
(write-line "(one_pos_stat2)" fo)
(write-line "_.SAVE" fo)
(write-line (strcat ORDER_DIR "DWG\\" (nth i spis_file)) fo)
(write-line "_.CLOSE" fo)
(setq i (+ i 1))
)
;(write-line "(np_l \"fa_stat_f_l.vlx\")" fo)
;(write-line "(fa_svod_f_l)" fo)
(close fo)
(setvar "SDI" 0)
(command "_.delay" 0)
(command "_.SCRIPT" (strcat path_ritm_sudno "\\tmp\\myscript.scr"))
;(vl-file-delete (strcat path_ritm_sudno "\\tmp\\myscript.scr"))
(fa_svod_f_l2)
)
(defun one_pos_stat2 ( / )
(alert "1")
)
(defun fa_svod_f_l2 ( / )
(alert "2")
)