Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting Dimensions from the Command Line 1

Status
Not open for further replies.

Guest
Hi, first timer here.

I have somebody asking me whether or not it's possible to delete dimensions using a command in the command line.
And if so, how do you do it?

thanks for any help you can offer.
 
Replies continue below

Recommended for you

Dear friend,

Your question is not clear. If you want to delete
dimension blocks, the ERASE command can be used. Otherwise,
you should specify exactly what do you want to delete.

Regards,
Farzad
 
If you mean a command like deldim which will then erase all dimensions on whatever layers, this does not exist but a lisp macro could do it. Simple.
 
Dear friend,

To delete all dimension blocks, you can enter the "ERASE"
command and type the below expression at the
"Select objects:" prompt and press ENTER two times.

(ssget "x" '((0 . "dimension")))

Notice to enter spaces same as above expressions.

Regards,
Farzad
 
Wel done, Farzad. Why not make it into a command, like
file deldim.lsp, containing

(defun DelDim()
(command "ERASE" (ssget "x" '((0 . "dimension"))) "")
)

or something like that.
 
Dear Tigrek,

That is a good idea. The AutoLISP source file can be
load by startup suite in APPLOAD dialog box.

Regards,
Farzad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor