MartinSomerville Posted January 11, 2010 Posted January 11, 2010 hello again. I am wanting to run a lisp inside the block editor to create a dynamic block.. I can setup the parameters but when it comes to assigning an action to these properties, I can't! I am trying to insert the entity name of the parameter (eg a point parameter) in an acad command line : (command "baction" ParameterEntityName ....) but it doesn't select the entity - the only way I can is by manually selecting, which defeats reason for lisp.. These dynamic block properties seem a bit different as they don't have any other info besides their enames (-1 data) in the entget so I had to get the data through vlisp. anyone got any ideas on how to assign an action to a property with lisp in a dynamic block? Cheers Martin Quote
MartinSomerville Posted January 11, 2010 Author Posted January 11, 2010 mmmm... think i just made it work (command "baction" esel "move" "all" "") Sorry about that post but I thought i had tried that but maybe I only tried (command "baction" "move" esel "all" "") , which doesn't work. where esel is the entsel. I have to create one I think: (setq esel-bp-point-move-all (list ename-bp-point-move-all (list 0 0 0))) (command "BAction" esel-bp-point-move-all "move" ss "") ..anyway, it appears to work now so all good thanks 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.