Professional Documents
Culture Documents
Stamp
Stamp
(setvar "HIGHLIGHT" 0)
;switch off highlight
(setvar "CMDECHO" 0)
;switch off command echo
(if ss1
;if any are found
(progn
;do the following
(setq count 0
;set the counter to zero
);setq
ed (entget en)
;get the entity list
);setq
(if (= "STAMP")
;if the block name is "STAMP"
found T
;set the flag
);setq
);end if
);while & if
(if found
;if the flag is set
);if
);progn
);if
(setvar "ATTDIA" 0)
;switch off dialogue boxes
(command "Insert" "Stamp" "0,0" "" "" "" thedate thetime plotby)
;insert the block and fill in the attribute data
(setvar "ATTDIA" 1)
;switch the dialogues back on
(setvar "HIGHLIGHT" 1)
;switch Highlight On
(setvar "CMDECHO" 1)
;switch Cmdecho On
(princ)
);defun
;===============================================================
(defun dxf(code elist)
);defun
;===============================================================
(defun TODAY ( / d yr mo day)
(setq d (rtos (getvar "CDATE") 2 6)
yr (substr d 3 2)
mo (substr d 5 2)
day (substr d 7 2)
);setq
(strcat day "/" mo "/" yr)
);defun
;;;*-----------------------------------------------------------
(defun TIME ( / d hr m s)
(setq d (rtos (getvar "CDATE") 2 6)
hr (substr d 10 2)
m (substr d 12 2)
s (substr d 14 2)
);setq
(strcat hr ":" m ":" s)
);defun
;;;*------------------------------------------------------------
(princ)
(defun C:TIMESTAMP (/ ss1 count emax en ed blkn found thedate thetime plotby)
;define function and declare variables as local
(setvar "HIGHLIGHT" 0)
;switch off highlight
(setvar "CMDECHO" 0)
;switch off command echo
(if ss1
;if any are found
(progn
;do the following
(setq count 0
;set the counter to zero
);setq
ed (entget en)
;get the entity list
);setq
(if (= "STAMP")
;if the block name is "STAMP"
found T
;set the flag
);setq
);end if
);while & if
(if found
;if the flag is set
);if
);progn
);if
(setvar "ATTDIA" 0)
;switch off dialogue boxes
(command "Insert" "Stamp" "0,0" "" "" "" thedate thetime plotby)
;insert the block and fill in the attribute data
(setvar "ATTDIA" 1)
;switch the dialogues back on
(setvar "HIGHLIGHT" 1)
;switch Highlight On
(setvar "CMDECHO" 1)
;switch Cmdecho On
(princ)
);defun
;===============================================================
(defun dxf(code elist)
);defun
;===============================================================
(defun TODAY ( / d yr mo day)
(setq d (rtos (getvar "CDATE") 2 6)
yr (substr d 3 2)
mo (substr d 5 2)
day (substr d 7 2)
);setq
(strcat day "/" mo "/" yr)
);defun
;;;*-----------------------------------------------------------
(defun TIME ( / d hr m s)
(setq d (rtos (getvar "CDATE") 2 6)
hr (substr d 10 2)
m (substr d 12 2)
s (substr d 14 2)
);setq
(strcat hr ":" m ":" s)
);defun
;;;*------------------------------------------------------------
(princ)
(defun C:TIMESTAMP (/ ss1 count emax en ed blkn found thedate thetime plotby)
;define function and declare variables as local
(setvar "HIGHLIGHT" 0)
;switch off highlight
(setvar "CMDECHO" 0)
;switch off command echo
(if ss1
;if any are found
(progn
;do the following
(setq count 0
;set the counter to zero
);setq
ed (entget en)
;get the entity list
);setq
(if (= "STAMP")
;if the block name is "STAMP"
found T
;set the flag
);setq
);end if
);while & if
(if found
;if the flag is set
);if
);progn
);if
(setvar "ATTDIA" 0)
;switch off dialogue boxes
(command "Insert" "Stamp" "0,0" "" "" "" thedate thetime plotby)
;insert the block and fill in the attribute data
(setvar "ATTDIA" 1)
;switch the dialogues back on
(setvar "HIGHLIGHT" 1)
;switch Highlight On
(setvar "CMDECHO" 1)
;switch Cmdecho On
(princ)
);defun
;===============================================================
(defun dxf(code elist)
);defun
;===============================================================
(defun TODAY ( / d yr mo day)
(setq d (rtos (getvar "CDATE") 2 6)
yr (substr d 3 2)
mo (substr d 5 2)
day (substr d 7 2)
);setq
(strcat day "/" mo "/" yr)
);defun
;;;*-----------------------------------------------------------
(defun TIME ( / d hr m s)
(setq d (rtos (getvar "CDATE") 2 6)
hr (substr d 10 2)
m (substr d 12 2)
s (substr d 14 2)
);setq
(strcat hr ":" m ":" s)
);defun
;;;*------------------------------------------------------------
(princ)
(defun C:TIMESTAMP (/ ss1 count emax en ed blkn found thedate thetime plotby)
;define function and declare variables as local
(setvar "HIGHLIGHT" 0)
;switch off highlight
(setvar "CMDECHO" 0)
;switch off command echo
(if ss1
;if any are found
(progn
;do the following
(setq count 0
;set the counter to zero
);setq
);setq
(if (= "STAMP")
;if the block name is "STAMP"
found T
;set the flag
);setq
);end if
);while & if
(if found
;if the flag is set
);if
);progn
);if
(setvar "ATTDIA" 0)
;switch off dialogue boxes
(command "Insert" "Stamp" "0,0" "" "" "" thedate thetime plotby)
;insert the block and fill in the attribute data
(setvar "ATTDIA" 1)
;switch the dialogues back on
(setvar "HIGHLIGHT" 1)
;switch Highlight On
(setvar "CMDECHO" 1)
;switch Cmdecho On
(princ)
);defun
;===============================================================
(defun dxf(code elist)
);defun
;===============================================================
(defun TODAY ( / d yr mo day)
(setq d (rtos (getvar "CDATE") 2 6)
yr (substr d 3 2)
mo (substr d 5 2)
day (substr d 7 2)
);setq
(strcat day "/" mo "/" yr)
);defun
;;;*-----------------------------------------------------------
(defun TIME ( / d hr m s)
(setq d (rtos (getvar "CDATE") 2 6)
hr (substr d 10 2)
m (substr d 12 2)
s (substr d 14 2)
);setq
(strcat hr ":" m ":" s)
);defun
;;;*------------------------------------------------------------
(princ)
(defun C:TIMESTAMP (/ ss1 count emax en ed blkn found thedate thetime plotby)
;define function and declare variables as local
(setvar "HIGHLIGHT" 0)
;switch off highlight
(setvar "CMDECHO" 0)
;switch off command echo
(if ss1
;if any are found
(progn
;do the following
(setq count 0
;set the counter to zero
ed (entget en)
;get the entity list
);setq
(if (= "STAMP")
;if the block name is "STAMP"
found T
;set the flag
);setq
);end if
);while & if
(if found
;if the flag is set
);if
);progn
);if
(setvar "ATTDIA" 0)
;switch off dialogue boxes
(setvar "ATTDIA" 1)
;switch the dialogues back on
(setvar "HIGHLIGHT" 1)
;switch Highlight On
(setvar "CMDECHO" 1)
;switch Cmdecho On
(princ)
);defun
;===============================================================
(defun dxf(code elist)
);defun
;===============================================================
(defun TODAY ( / d yr mo day)
(setq d (rtos (getvar "CDATE") 2 6)
yr (substr d 3 2)
mo (substr d 5 2)
day (substr d 7 2)
);setq
(strcat day "/" mo "/" yr)
);defun
;;;*-----------------------------------------------------------
(defun TIME ( / d hr m s)
(setq d (rtos (getvar "CDATE") 2 6)
hr (substr d 10 2)
m (substr d 12 2)
s (substr d 14 2)
);setq
(strcat hr ":" m ":" s)
);defun
;;;*------------------------------------------------------------
(princ)
(defun C:TIMESTAMP (/ ss1 count emax en ed blkn found thedate thetime plotby)
;define function and declare variables as local
(setvar "HIGHLIGHT" 0)
;switch off highlight
(setvar "CMDECHO" 0)
;switch off command echo
(if ss1
;if any are found
(progn
;do the following
(setq count 0
;set the counter to zero
);setq
ed (entget en)
;get the entity list
);setq
(if (= "STAMP")
;if the block name is "STAMP"
found T
;set the flag
);setq
);end if
);while & if
(if found
;if the flag is set
);if
);progn
);if
(setvar "ATTDIA" 0)
;switch off dialogue boxes
(setq thedate (today))
;calculate and format date
(command "Insert" "Stamp" "0,0" "" "" "" thedate thetime plotby)
;insert the block and fill in the attribute data
(setvar "ATTDIA" 1)
;switch the dialogues back on
(setvar "HIGHLIGHT" 1)
;switch Highlight On
(setvar "CMDECHO" 1)
;switch Cmdecho On
(princ)
);defun
;===============================================================
(defun dxf(code elist)
);defun
;===============================================================
(defun TODAY ( / d yr mo day)
(setq d (rtos (getvar "CDATE") 2 6)
yr (substr d 3 2)
mo (substr d 5 2)
day (substr d 7 2)
);setq
(strcat day "/" mo "/" yr)
);defun
;;;*-----------------------------------------------------------
(defun TIME ( / d hr m s)
(setq d (rtos (getvar "CDATE") 2 6)
hr (substr d 10 2)
m (substr d 12 2)
s (substr d 14 2)
);setq
(strcat hr ":" m ":" s)
);defun
;;;*------------------------------------------------------------
(princ)
(defun C:TIMESTAMP (/ ss1 count emax en ed blkn found thedate thetime plotby)
;define function and declare variables as local
(setvar "HIGHLIGHT" 0)
;switch off highlight
(setvar "CMDECHO" 0)
;switch off command echo
(if ss1
;if any are found
(progn
;do the following
(setq count 0
;set the counter to zero
);setq
ed (entget en)
;get the entity list
);setq
(if (= "STAMP")
;if the block name is "STAMP"
found T
;set the flag
);setq
);end if
);while & if
(if found
;if the flag is set
);progn
);if
(setvar "ATTDIA" 0)
;switch off dialogue boxes
(command "Insert" "Stamp" "0,0" "" "" "" thedate thetime plotby)
;insert the block and fill in the attribute data
(setvar "ATTDIA" 1)
;switch the dialogues back on
(setvar "HIGHLIGHT" 1)
;switch Highlight On
(setvar "CMDECHO" 1)
;switch Cmdecho On
(princ)
);defun
;===============================================================
(defun dxf(code elist)
);defun
;===============================================================
(defun TODAY ( / d yr mo day)
(setq d (rtos (getvar "CDATE") 2 6)
yr (substr d 3 2)
mo (substr d 5 2)
day (substr d 7 2)
);setq
(strcat day "/" mo "/" yr)
);defun
;;;*-----------------------------------------------------------
(defun TIME ( / d hr m s)
(setq d (rtos (getvar "CDATE") 2 6)
hr (substr d 10 2)
m (substr d 12 2)
s (substr d 14 2)
);setq
(strcat hr ":" m ":" s)
);defun
;;;*------------------------------------------------------------
(princ)