mojo8997 Posted May 12, 2010 Posted May 12, 2010 i pulled this off the other day but now i cant remember how its done, all i want to do is use vlax-ldata-put to write data to an object then vlax-ldata-get to get it back, can someone show me a simple example to refresh my mind please, thanks =) Quote
Lee Mac Posted May 12, 2010 Posted May 12, 2010 Examples: (defun c:LDWrite ( / ent ) (vl-load-com) (if (setq ent (car (entsel "\nSelect Object to Write Data to: "))) (vlax-ldata-put ent "Data-Test" "Lee Mac")) (princ)) (defun c:LDRead ( / ent dat ) (vl-load-com) (if (and (setq ent (car (entsel "\nSelect Object to Read Data: "))) (setq dat (vlax-ldata-get ent "Data-Test"))) (alert dat)) (princ)) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.