×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Deleting Dimensions from the Command Line

Deleting Dimensions from the Command Line

Deleting Dimensions from the Command Line

(OP)
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.

RE: Deleting Dimensions from the Command Line

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

RE: Deleting Dimensions from the Command Line

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.

RE: Deleting Dimensions from the Command Line

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

RE: Deleting Dimensions from the Command Line

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.

RE: Deleting Dimensions from the Command Line

Dear Tigrek,

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

Regards,
Farzad

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources