MastroLube Posted April 9, 2015 Share Posted April 9, 2015 Hi there, I've a little question for you. Do you know if it's possible to control the distance among elements in an array action ? I'm able to change dynamic proprieties but not this one Example: test.dwg This is how I look at dynamic properties in develop mode: _$ (setq ent (vlax-ename->vla-object (car (entsel)))) #<VLA-OBJECT IAcadBlockReference 0000000047467ed8> _$ (SETQ props (VLAX-INVOKE ent 'getdynamicblockproperties)) (#<VLA-OBJECT IAcadDynamicBlockReferenceProperty 0000000046df3af8> #<VLA-OBJECT IAcadDynamicBlockReferenceProperty 0000000046df6c78>) Thanks, Dennis Quote Link to comment Share on other sites More sharing options...
Tharwat Posted April 9, 2015 Share Posted April 9, 2015 Try this routine Dennis and let me know . (defun c:test (/ d i s) ;;; Tharwat 09.Apr.2015 ;;; (if (and (setq s (ssget "_:L" '((0 . "INSERT") (2 . "`*U*")))) (setq d (getdist "\n Specify Distance :")) ) (repeat (setq i (sslength s)) (foreach x (vlax-invoke (vlax-ename->vla-object (ssname s (setq i (1- i)))) 'getdynamicBlockproperties ) (if (eq "Distanze1" (vla-get-propertyname x)) (vlax-put x 'value d) ) ) ) ) (princ) ) (vl-load-com) Quote Link to comment Share on other sites More sharing options...
MastroLube Posted April 10, 2015 Author Share Posted April 10, 2015 Hello Tharwat, thanks for your reply but it isn't what i'm looking for. Sorry, my bad, I'm not so good in English. I'll try to explain it better with some pictures Hope now it's more clear Dennis 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.