Assigning an action to a dynamic block parameter in the block editor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
I have dozens of block references to which I would like to add a dynamic parameter.
I handled adding the paramter:
(command "_-bedit" (cdr (assoc 2 (entget blk))))
(command "_bparameter" "point" "label" "Name" '(0 0 0) '(0 1 0) 1)
(setq par (entlast))
But I have a problem with assigning an action to this parameter, specifically with paramter selection.
I tried to do this in the following ways:
Command: (command "_.BACTION" "move" par)
_.BACTION
Select parameter: move
*Invalid selection*
Expects a single object.
; error: Function cancelled
or:
Command: (command "_BActionTool" "move" par)
_BActionTool
Enter action type [Array/Lookup/Flip/Move/Rotate/Scale/sTretch/Polar stretch]: move
Select parameter:
Select parameter: nil
or even:
Command: BACTION
Select parameter: !par
<Entity name: 21c039a9f50>
and constantly prompts: Select parameter
I also try with ssget instead of entlast, but wothout success.
Have a good day!