(defun c:final (/ fc3 control7 check5 list txt1 xlist primed txtdata point ecef gaussboaga control2 fp2)
(wenn (= Primariga nil)
(Progn)
(Alert "Sie müssen zuerst den ersten Gipfel definieren (Basislinie)")
(Auszug)
)
)
(setq fc3 (findfile "c:\\\\\autocadsupporto\\note\\\\\\\\\\nota.dat"))
(falls fc)
(vl-file-delete "c:\\\autocadsupport\\\note\\\nota.dat")
)
;---------------------------------------------------------------------------------------------------------------------------------------------------
(setq control7 nil)
(setq control7 (findfile "c:\\\autocadsupport\\\contatori\\counter.dat"))
(wenn (= Scheck 7 "c:\\autocadsupport\\contatori\\counter.dat")
(Progn)
(setq fp4 (open "c:\\\\\\autocadsupport\\\contatori\\counter.dat" "r"))
(setq count (read line fp4))
(setq Schritt (read-line fp4))
(Schließe fp)
)
)
;---------------------------------------------------------------------------------------------------------------------------------------------------
(setq control5 nil)
(setq control5 (findfile "c:\\\autocadsupport\\\dati\\\datirilievo.dat"))
(falls (= Scheck5 "c:\\autocadsupport\dati\datirilievo.dat")
(Progn)
(setq fp3 (open "c:\\\autocadsupport\\\dati\datirilievo.dat" "r"))
(setq aktuelles Datum (read-line fp3))
(setq ora1 (read line fp3))
(setq ora2 (read line fp3))
(setq pdop (read-line fp3))
(Schließe fp)
)
)
(startapp "c:\\autocadsupporto\liberty\\point.exe "c:\autocadsupport\\\\\\\\\\\point.tkn")
(Setq-Liste nil)
(sing)
(= Liste nil)
(Setq-Liste (entget (entsel))))
)
(princ "\n")
(vorher "Liste > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
(princ list)
(setq txt1 (assoc 1 list)
(princ "\n")
(princ txt)
(princ "\n")
(setq nomeentita (assoc -1 list)
(princ "\n")
(princ nomeentita)
(princ "\n")
(setq xlist (assoc -3 list)
(princ "\n")
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
(princ xlist)
(princ "\n")
(setq primed (car txt1))
(setq txtdata (car))
(princ "\n")
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
(princ txtdata)
(princ "\n")
(Satzname (nth 1 txtdata))
(setq ecef (nth 2 txtdata)))
(setq gaussboaga (nth 3 txtdata)))
(Setq Controllerstz (nth 4 txtdata)))
(Setq-Controller)
(princ "\n")
(Bezugsname)
(princ "\n")
(princ ecef)
(princ "\n")
(princ gaussboaga)
(princ "\n")
(Sectq-Punkt nil)
(setq notay nil)
(seq control2 nil)
(while (= Steuerung 2 nil)
(setq control2 (findfile "c:\\\autocadsupporto\\note\\\\\\\nota.dat"))
)
(setq fp2 (open "c:\\\\\\autocadsupporto\note\\\\nota.dat" "r"))
(Satzpunkt (Leselinie fp2))
(setq notay (readline fp2))
(Schließe fp)
(princ "\n")
(Punkt)
(princ "\n")
(princ notay)
(princ "\n")
(Satzq cxp (Substr. Ecef 1 11)
(setq cyp (substr ecef 13 11) ; hier 11
(Satzq czp (Unterstrich Ecef 24 11)
(setq cxpp (atof cxp)
(setq cypp (atof cyp)
(setq czpp (atof czp))
(princ "\n")
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
(princ "\n")
(princ cxp)
(princ "\n")
(princ)
(princ "\n")
(princ cyp)
(princ "\n")
(princ)
(princ "\n")
(princ czp)
(princ "\n")
(princ "\n")
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
(princ "\n")
(princ cxbb)
(princ "\n")
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
(princ "\n")
(princ cybb)
(princ "\n")
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
(princ "\n")
(princ czbb)
(setq diffx (* -1 (- cxbb cxpp)))
(setq diffy (* -1 (- Cybb cypp)))
(setq diffz (* -1 (- czbb czpp)))
(setq diffxx (rtos diffx)
(setq diffyyy (rtos diffy)
(setq diffzz (rtos diffz)
(setq xxyzz (strcat diffxx "," diffyyy "," diffzz))
(setq note2 (strcat name " - " notay " - " point))
(setq line (strcat "2|" point "0.000" xxyzz "0,00,0,0,0,0,0|pdop=" pdop "0.0000,000" note2 "|"))
(setq fp1 (open "c:\\\autocadsupport\\\\librettopregeo.dat" "a"))
(Schreiblinie fp1)
(Schließe fp)
---------------------------------------------------------------------------------------------------------------
(Befehl "_circle" gaussboaga "0.15")
(setq newtext (strcat " Punkt " - " Punktname))
(Befehl "_change" primiert """" """ """ Newtext)
(princ "\n")
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
(princ count)
(princ "\n")
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
(princ step)
(princ "\n")
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
(Punkt)
(princ "\n")
(setq count1)
(setq pointn)
(wenn (= Punkt (+ Graf1)))
(Progn)
(setq count2 (+ count1 10))
(setq count3 (itoa count2)
)
(setq count3 count)
)
(setq fp4 (open "c:\\\\\autocadsupport\\\contatori\\counter.dat" "w"))
(writ-line count3 fp4)
(Schreib-Linie Schritt fp4)
(Schließe fp)
(Satzq-Index)
;---------------------------------------------------------------------------------------------------------------------------------------------------
(subst "ok" xlist control)
(subst "ok" xlist control)
(Entfernungsliste)
;---------------------------------------------------------------------------------------------------------------------------------------------------
(Alert "Datum des letzten Gipfels gerettet")
) Endverfahren