Message 1 of 7
Why dose vlax-get-property only accept single word strings in this lisp?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This is on civ3d but hopfully I am just missing a step in getting this to work in the programming:
(defun c:lbcng (/ ss i parcelLabel vlaObj lbl) (vl-load-com) (setq ss (ssget)) (setq i (sslength ss)) (while (not (minusp (setq i (1- i)))) (setq parcelLabel (ssname ss i)) (setq vlaObj (vlax-ename->vla-object parcelLabel)) (setq lbl (vlax-get-property vlaObj 'LineLabelStyleName)) (if (= lbl "Lot Labels") (vlax-put-property vlaObj 'LineLabelStyleName "Lot Labels Plus Minus" ) (vlax-put-property vlaObj 'LineLabelStyleName "CW house label" ))) (princ) )
So at the end of the lisp vlax-put-property vlaobj 'linelabelstylename will work if i put in "standard" but will not work with any argument strings more than one word.
Thanks in advance!
Shawn T