selection of dynamic block parameters & actions

selection of dynamic block parameters & actions

robert06
Collaborator Collaborator
1,175 Views
4 Replies
Message 1 of 5

selection of dynamic block parameters & actions

robert06
Collaborator
Collaborator

What are the object types of dynamic block parameters and actions, is there a list available?

To ssget in block editor all rotate actions etc or all linear parameters etc.

 

0 Likes
1,176 Views
4 Replies
Replies (4)
Message 2 of 5

robert06
Collaborator
Collaborator

The goal would be lisps for instance:

a) editing Bactionset by selecting all objects but Actions

b) adding Rotate Action to all Angle Parameters and adding all objects but Actions to their bactionsets.

 

How to select actions and parameters in lisp?

0 Likes
Message 3 of 5

robert06
Collaborator
Collaborator

No help from here, i probably did not make myself clear, so it took half a year to get this to lit up 😄

 

*ACTIONENTITY, *PARAMETERENTITY

0 Likes
Message 4 of 5

robert06
Collaborator
Collaborator

Still, I can't use lisp selection set in Bactionset command. This should modify the action set in block editor by adding all objects and then remove all actionentities:

 

(defun c:bak ()
(setq sae (ssget "_x" '((0 . "*ACTIONENTITY"))))
(command "bactionset" pause "M" "all" "R" sae "")
(princ)
)

 

 

at entering R for Remove, I get:
Select object to add to action set or [Remove]: r ; error: Function cancelled

0 Likes
Message 5 of 5

robert06
Collaborator
Collaborator

this is it

 

(defun c:btra (/ set1) ;;Create rotation bactiontool with selection set of all objects but Actions
(setq set1 (ssget "X" '((-4 . "<NOT")(-4 . "<AND")(0 . "*ACTIONENTITY")(-4 . "AND>")(-4 . "NOT>"))))
(command "bactiontool" "r" pause set1 "")
(princ)
)