mojo8997 Posted May 12, 2010 Share 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 Link to comment Share on other sites More sharing options...
Lee Mac Posted May 12, 2010 Share 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 Link to comment Share on other sites More sharing options...
mojo8997 Posted May 14, 2010 Author Share Posted May 14, 2010 thanks a lot lee! Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted May 14, 2010 Share Posted May 14, 2010 You're welcome Mr Mojo Quote Link to comment Share on other sites More sharing options...
alanjt Posted May 14, 2010 Share Posted May 14, 2010 You're welcome Mr Mojo LoL Mr. Mojo Risin Quote Link to comment Share on other sites More sharing options...
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.