BLOCKCREATEMODE or -BLOCK option mOde Retain

Wheelie22
Collaborator
Collaborator

BLOCKCREATEMODE or -BLOCK option mOde Retain

Wheelie22
Collaborator
Collaborator

They both don't work in ACADE2022, with the normal BLOCK command the 3 options work fine :

BLOCKCREATEMODE.png

But if I use -BLOCK it seems to ignore the BLOCKCREATEMODE setting, but it gives this on the command line :

-block Current settings: Object conversion=Delete

 

No problem, in the -BLOCK command there is the option mOde [Annotative/mOde] and than Retain [Convert to block/Retain/Delete]

 

But it always deletes the original objects. Does anyone have a solution for this ? 

 

0 Likes
Reply
Accepted solutions (1)
595 Views
4 Replies
Replies (4)

Wheelie22
Collaborator
Collaborator

Testing 1

If I change the BLOCKCREATEMODE it always changes the Block window and the -BLOCK command.

But not in a Lisp with the -BLOCK command :

  (command "-block"
	   PARTFR
	   "mOde"
	   "Retain"
	   (strcat "-1000" "," (rtos (- EX 100)))
	   "w"
	   (strcat "-1000" "," (rtos EX))
	   (strcat "-400" "," (rtos (+ EX -650)))
	   ""
  )

On the command line  it shows :

-block Current settings: Object conversion=Delete

and it does.

 

So the - Mode  - Retain does not work in a lisp. 😗

0 Likes

cadffm
Consultant
Consultant

it works on my side (2024.0.1)

Sebastian

0 Likes

cadffm
Consultant
Consultant
Accepted solution

I guess you don't habe an initcommandversion call first?

You need the (initcommandversion) in front of your command -Block call, to start the current -Block version while in automation,

or if you are using the old one (without the initcommandversion call), have to do an UNDO (one step) after block creation.

 

Note, some commands in automation (script,macro,(send)commnds..) are running in old versions,

in Menumacro you can force to use the current one by ^R or in Lisp by (initcommandversion)

Sebastian

0 Likes

Wheelie22
Collaborator
Collaborator

(initcommandversion 2)

Yes...

 

Thanks CADffm !

0 Likes