TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: d2010 on April 12, 2021, 06:54:03 AM

Title: How to purge all VISUALSTYLEs at line-command before qSave
Post by: d2010 on April 12, 2021, 06:54:03 AM
I want purge all "VISUALSTYLE/s" from attached.dxf
I need purge before saved the dwg with (saveas..)
I need the command from AutoCAD for erase all "VISUALSTYLE/s"
 ;-)
Code: [Select]
     0
  0
VISUALSTYLE
  5
20013
102
{ACAD_REACTORS
330
20008
102
}
330
20008
100
AcDbVisualStyle
  2
Dim
 70
    11
 71
     2
 72
     2
 73
     0
 90
        0
 40
-0.6
 41
-30.0
 62
     5
 63
     7
 74
     1
 91
        4
 64
     7
 65
   257
 75
     1
175
     1
 42
1.0
 92
        8
 66
     7
 43
1.0
 76
     1
 77
     6
 78
     2
 67
     7
Title: Re: How to purge all VISUALSTYLEs at line-command before qSave
Post by: Peter2 on April 12, 2021, 08:51:50 AM
Do you want to
a) purge the pure DXF code with an editor or
b) to purge it inside AutoCAD?

For b) use:
Code - Auto/Visual Lisp: [Select]
  1. (command-s "_-purge" "_visu" "*" "_n")