Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Delete ALL “drawing scales”,

51 REPLIES 51
SOLVED
Reply
Message 1 of 52
JamaL9722060
10172 Views, 51 Replies

Delete ALL “drawing scales”,

 

Delete ALL “drawing scales”,

 

I couldn’t figure out if there is a way to delete all “drawing scales” (attached) in one go. The delete should include all scales even those which are used in the drawing. One drawing scale is required to be kept which is 1:1.

 

 

Is that possible

 

Thank you

 

Best

 

Jamal

---------------------------
Jamal Numan
51 REPLIES 51
Message 21 of 52
ВeekeeCZ
in reply to: JamaL9722060

Message 22 of 52

JamaL, you would have to go through all the elements, then assign 1:1, then delete scales from each element. Probably could be done, (im not sure how) but probably not what you want to do, as any annotative objects would revert to the 1:1, and look funny with the rest of the drawing.

Message 23 of 52
JamaL9722060
in reply to: ВeekeeCZ


Thanks BeekeeCZ.

The link is useful but couldn’t find out which lisp can delete all “annotative scale” even the used ones

---------------------------
Jamal Numan
Message 24 of 52
ВeekeeCZ
in reply to: JamaL9722060

Try this. It's from post no. 12, posted by Gile.

Message 25 of 52
JamaL9722060
in reply to: ВeekeeCZ

Thank you BeekeeCZ.

My issue here is that I need to delete ALL the “annotation scales” EVEN the used ones. Purge will delete only the unused “annotation scales”.

Is deleting ALL the “annotation scales” EVEN the used ones still possible?

---------------------------
Jamal Numan
Message 26 of 52
ВeekeeCZ
in reply to: JamaL9722060

OK, try this, I added one function called PURGESCALESALL.

But all the credit belongs to Gile.

Message 27 of 52
JamaL9722060
in reply to: ВeekeeCZ

Thank you BeekeeCZ for the prompt help,

 

The “PurgescalesAll” deletes the “annotation scales” and the OBJECTS! This is dangerous. What I meant is to have a lisp that deletes all the “annotation scales” but without deleting objects from the drawing.

---------------------------
Jamal Numan
Message 28 of 52
ВeekeeCZ
in reply to: JamaL9722060

I have no such as experience. On my sample drawing it definitely not erase any objects! Otherwise I would not post that.

But maybe I am missing something and it cause some other problems... just leave it.

 

Message 29 of 52
hmsilva
in reply to: JamaL9722060


@JamaL9722060 wrote:

The “PurgescalesAll” deletes the “annotation scales” and the OBJECTS! This is dangerous. What I meant is to have a lisp that deletes all the “annotation scales” but without deleting objects from the drawing.


Hi Jamal,

 

the Giles's 'PurgeScales.lsp' posted by BeekeeCZ, should not delete objects...but if an object have only one annotative scale set to this object, and you run the 'PurgeScalesAll' this object will not be visible (possibly with 1: 1 scale, will be so small that you can't see it)... 

Try this new version of Gile's 'PurgeScales.lsp'  where no longer exists the 'PurgeScalesAll' function.

If you run 'PurgeScales', only '1:1' and scales in use will not be deleted...

 

Hope this helps,
Henrique

 

EESignature

Message 30 of 52
JamaL9722060
in reply to: hmsilva

Thank you Henrique for the input.

 

The lisp file of BeekeeCZ does exactly what I’m looking for except the fact that it does delete the Objects that are associated to the deleted annotation scales. By the way, after applying the lisp command the file needs to be closed and open to see that objects are deleted!

 

Please, have a look on the attached images. All what I wanted to do is to delete all the annotation scales regardless whether they are used or not.

 

The dwg file is attached in the next post.

---------------------------
Jamal Numan
Message 31 of 52
JamaL9722060
in reply to: JamaL9722060

the file below is attached

AnnotativeScale_03.dwg

---------------------------
Jamal Numan
Message 32 of 52
ВeekeeCZ
in reply to: JamaL9722060

Try?!

Message 33 of 52
JamaL9722060
in reply to: ВeekeeCZ


Thanks BeekeeCZ.

I’m still getting the same results. The objects associated to the deleted annotation scales get deleted (attached)

What might be the issue?

Could you please re-send me the lisp file? May you please change its name to “DeleteAllAnnotationScales”

 

Clip_74.jpg

---------------------------
Jamal Numan
Message 34 of 52
hmsilva
in reply to: JamaL9722060

Hi Jamal,

 

Sorry, buytI don't have AutoCAD in this laptop.

Later, when back home, I'll test it.

 

@ВeekeeCZ

 

Hi BeekeeCZ,

Did you reproduce that behavior, with the 'PurgeScalesAll'?

 

Henrique

EESignature

Message 35 of 52
ВeekeeCZ
in reply to: hmsilva

Using PURGESCALESALL on Jamal's dwg got the same poor results as Jamal.

 

In dwg I previously posted, I was cheating little bit. Since Jamal use all annotations annotative I turned the annotative off using Properties Palette, then run PURGESCALES, then turned the annotative back on. Its 30 sec job. Is this the way it might work, Jamal? Definitely it's a cleaner way than using PURGESCALEALL.

Message 36 of 52
hmsilva
in reply to: ВeekeeCZ


@ВeekeeCZ wrote:

...

. Since Jamal use all annotations annotative I turned the annotative off using Properties Palette, then run PURGESCALES, then turned the annotative back on. Its 30 sec job. Is this the way it might work, Jamal?


Nice workaround, BeekeeCZ. Smiley Happy

 

Henrique

EESignature

Message 37 of 52
hmsilva
in reply to: JamaL9722060


@JamaL9722060 wrote:

...

 May you please change its name to “DeleteAllAnnotationScales”


Hi Jamal,

 

the attached quickly-written code, uses BeekeeCZ's workaround, and all main functions are from Gilles Chanteau...

 

Hope this helps,
Henrique

EESignature

Message 38 of 52
ВeekeeCZ
in reply to: hmsilva

Thank you Henrique for coding it (and fixing up my mess caused by single semicolon..).
Message 39 of 52
hmsilva
in reply to: ВeekeeCZ

You're welcome, BeekeeCZ.


Henrique

EESignature

Message 40 of 52
JamaL9722060
in reply to: hmsilva

Thank you Henrique and BeekeeCZ for the distinct effort. It works like a charm

Best

Jamal

---------------------------
Jamal Numan

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

Post to forums  

Autodesk Design & Make Report

”Boost