Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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

  • Thread starter Thread starter -
  • Start date Start date
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.
 
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

Back
Top