Jump to content

add baction with lisp


Recommended Posts

Posted

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

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...