Billibong Posted June 18, 2015 Posted June 18, 2015 Hi, I'd like to search all of my blocks using autolisp to find any with linear parameters. I can get a list of blocks but don't know how to specifically search for linear parameter. thanks Quote
Commandobill Posted June 18, 2015 Posted June 18, 2015 A couple places to start Lee-Mac in Cad tutor lee-macdotcom Quote
Billibong Posted June 18, 2015 Author Posted June 18, 2015 Hi Commandobill, Thanks for the quick reply. I'm using the Lee Mac code shown below and it returns a list of the parameter names and the values set for each one, which is great but I need to know which ones are "Linear parameters". Is there an assoc code for linear parameters? Thanks- (setq obj (vlax-ename->vla-object (car (entsel)))) (defun GetDynProps (obj) (mapcar (function (lambda (x / v) (list (vla-get-PropertyName x) (if (= 8192 (logand 8192 (vlax-variant-type (setq v (vla-get-value x))))) (vlax-safearray->list (vlax-variant-value v)) (vlax-variant-value v)) ) ) ) (vlax-invoke obj 'GetDynamicBlockProperties) );end mapcar ) Quote
Commandobill Posted June 18, 2015 Posted June 18, 2015 yes, however, it's not so easy. see here. Quote
Lee Mac Posted June 18, 2015 Posted June 18, 2015 This post may help you towards your goal: https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/searching-for-dynamic-blocks-with-visibility-perimeter-that-is/m-p/4710487#M317952 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.