this happen to my routine

You have provided insufficient data to diagnose your problem, except to say that likely, your routine is failing to complete an entmake of an insert; could you maybe post the routine?
 
(defun C:ddat (/ year month day)
(setvar "cmdecho" 0)
(setq scl (getvar "dimtxt"))
(setq sc (/ scl 2))
(setq pt1 (getpoint "Insert point.."))
(setq date (getvar "CDATE")
date (rtos date 2 4)
year (substr date 3 2)
month (substr date 5 2)
day (substr date 7 2)
)
(setq date (strcat day "/" month "/" year))
(command "INSERT" "sdate" pt1 sc sc 0 date)
(princ)
)

randy benson said:
You have provided insufficient data to diagnose your problem, except to say that likely, your routine is failing to complete an entmake of an insert; could you maybe post the routine?
 
"Unterminated Complex Entity" could mean there's something wrong with your block named "sdate" ... otherwise, your code looks like it should work.
___
 
(setvar "attdia" 0)

Paul Turvill said:
"Unterminated Complex Entity" could mean there's something wrong with your block named "sdate" ... otherwise, your code looks like it should work.
___
 
Code looks good.
When I get this message, it is usually caused by a (nil), either in the pt1, sc, or the block i'm inserting has more attributes than I thought it did. (2 maybe?). Re-block with (1) attrib. Var sc could be nil. If (= sc nil)(setq sc "0.125") Also check / set sc to string value (rtos sc). Other than that I don't have a clue.
Bob
 

Latest threads

Back
Top