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

how to delete a linetype in drawings?

37 REPLIES 37
SOLVED
Reply
Message 1 of 38
aqdam1978
8067 Views, 37 Replies

how to delete a linetype in drawings?

Hi,

 

I have some drawing that contains PHANTOM2 linetype.

I can't delete this linetype from my drawings!

does anybody has any idea?

 

Please see the attached drawing.

 

Thanks,

Abbas

 

37 REPLIES 37
Message 2 of 38
mid-awe
in reply to: aqdam1978
Message 3 of 38
aqdam1978
in reply to: mid-awe

Hi,

 

it's not part of imported DGN drawing.

Becuse I used "DGNPURGE" command and the result was:

Purged 0 unreferenced complex linetype records (of 0).
Purged 0 unreferenced strokes (of 0).

 if you are intersetd to test, please download attached hotfix for having "DGNPURGE" command.

 

Thanks,

Abbas

 

 

 

Message 4 of 38
aqdam1978
in reply to: mid-awe

Hi,

 

I tried WBLOCK (Entire drawing) too, It does not purge the linetype:

 

(defun C:ReWriteDWG ( / f)
  (setq f (strcat (getvar 'dwgprefix) (vl-filename-base(getvar 'dwgname)) "_wblock.dwg"))
  (if (findfile f) (command "-wblock" f "Y" "*") (command "-wblock" f  "*"))
)

 

 Thanks,

Abbas

 

 

 

Message 5 of 38
mid-awe
in reply to: aqdam1978

The linetype must be in use. I tried digging around and could find nothing. I wish that I could help.

I thought about "Super Purge" but I can't pay $30 just to see if it will work. I did notice that your drawing is almost totally blank. Why not start over?
Message 6 of 38
aqdam1978
in reply to: mid-awe

Hi,

 

I deleted all entities and purge one of my drawing and then uploaded here to show you! It's suprising, It's blank and empty drawing but if you uses STATUS command you will see:

There are 140 objects in the PHANTOM2.dwg!! (system variables,....)

 

Thanks,

Abbas

 

Message 7 of 38
hmsilva
in reply to: aqdam1978

Abbas,

Wblock, Entire drawing option...

Works for me!

 

Henrique

EESignature

Message 8 of 38
aqdam1978
in reply to: hmsilva

Hi Henrique,

 

but I can see PHANTOM2 linetype.

please see the attached screenshot.

 

Thanks,

Abbas

Message 9 of 38
hmsilva
in reply to: aqdam1978

Abbas, I can't...

 

PHANTOM2x.PNG

EESignature

Message 10 of 38
mid-awe
in reply to: hmsilva

I'm with Abbas, Henrique. When I open the drawing I still see the Phantom2 linetype. QuickSelect reports nothing in the drawing, but obviously that is false.
Message 11 of 38
hmsilva
in reply to: mid-awe

Hi mid-awe,

It's weird, are you using AC2013 too?

 

Henrique

EESignature

Message 12 of 38
mid-awe
in reply to: hmsilva

Yes. AC2013 with all service-packs installed.
Message 13 of 38
hmsilva
in reply to: mid-awe

@Abbas

and

@mid-awe

 

I'm using AC2014, and I don't have in this pc AC2013, but attached is a dxf, open it with the notepad and you can see that there is no reference to PHANTON2 ltype...

 

Henrique

EESignature

Message 14 of 38
mid-awe
in reply to: hmsilva

Henrique, that did it. I opened the DXF in AC2013 directly and it is clean. Maybe Abbas can do the same & save as 2013DWG?
Message 15 of 38
aqdam1978
in reply to: hmsilva

Henrique,

 

you can see our dxf too.

 

..............
AcDbLinetypeTableRecord 2 PHANTOM2 70 0 3 Phantom (.5x) ___ _ _ ___ _ _ ___ _ _ ___ _ _
..............

 

Thanks,

Abbas

 

Message 16 of 38
hmsilva
in reply to: aqdam1978

Abbas,

the first thing I did was to create a dxf from the first dwg you posted, and open it with notepad and I have seen the PHANTOM2 linetype...

 

Henrique

EESignature

Message 17 of 38
mid-awe
in reply to: aqdam1978

Abbas, You should look into any application that you have loading automatically. I opened the dxf file that Henrique provided and there is no reference to Phantom2 in the file. Also, once opened in AutoCAD 2013, I do not find the reference either.

 

* I saved the dwg for you. I did attach it below.

Message 18 of 38
hmsilva
in reply to: aqdam1978

Abbas,

 

when you create the block did you select the Entire drawing option?

wb_all.PNG

this is the option I use, when I want to "clean" the dwg...

 

Henrique

EESignature

Message 19 of 38
aqdam1978
in reply to: mid-awe

Hi,

 

YES, there is no PHANTOM2 linetype in your attached dwg file.

 

but my problem stills!

I cant delete it!

There is no auto load program for my AutoCAD.

 

this is your file:

 

scr.png

 

Thanks,

Abbas

 

Message 20 of 38
aqdam1978
in reply to: hmsilva

Hi Henrique,

 

yes, I did it both via WBLOCK dialog and also by lisp.

 

disappointed 😞

 

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

Post to forums  

Autodesk Design & Make Report

”Boost