Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

block editor path shortcut

1 REPLY 1
Reply
Message 1 of 2
Anonymous
297 Views, 1 Reply

block editor path shortcut

 

 

Could a .lsp file work with the block editor so that double-clicking a block will make it skip straight to the editor without displaying the "Edit Block Reference" dialoge?

 

1 REPLY 1
Message 2 of 2
aqdam1978
in reply to: Anonymous

Hi,

 

Try this:

 

;Block Editor shortcut
;written by Abbas Aqdam
(defun c:BBE ( / e obj )
  (while (/=(type(setq e (car(last(nentsel "\nSelect any BLOCK to edit: "))))) 'ENAME))
	(setq obj (vlax-ename->vla-object e))
	(if  (= (vlax-get-property obj 'ObjectName) "AcDbBlockReference")
	  (command "_.BEDIT" (vlax-get-property obj 
		(if (vlax-property-available-p obj 'effectivename)'effectivename 'name))
	  );command
	);if
);defun

 

 

hope to helps 

 

Abbas

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost