ReachAndre
2009-07-28, 04:21 PM
Hello all,
I am trying to use quotation marks in a string. does anyone know how I may do this?
I am trying to get the %en0 to be used in quotations and the oid to be used as a value.
Found it = \"
(defun c:dttl (/ sp1 att1v att2v att3v bname oid oidv)
(setq oid (rtos (vla-get-ObjectId (vlax-ename->vla-object (car (entsel "\n Select Source Object: ")))) 2 0))
(setq oidv (strcat "%<\\AcObjProp Object(%<\\_ObjId " oid ">%).StandardScale \f "%en0">% "))
(alert (strcat "ObjIdVal = " oidv))
(princ (strcat "ObjIdVal = " oidv))
(princ))
Thanks all,
Andre
I am trying to use quotation marks in a string. does anyone know how I may do this?
I am trying to get the %en0 to be used in quotations and the oid to be used as a value.
Found it = \"
(defun c:dttl (/ sp1 att1v att2v att3v bname oid oidv)
(setq oid (rtos (vla-get-ObjectId (vlax-ename->vla-object (car (entsel "\n Select Source Object: ")))) 2 0))
(setq oidv (strcat "%<\\AcObjProp Object(%<\\_ObjId " oid ">%).StandardScale \f "%en0">% "))
(alert (strcat "ObjIdVal = " oidv))
(princ (strcat "ObjIdVal = " oidv))
(princ))
Thanks all,
Andre