banner



How Can I Clean My 3d Autocad Drawing So It Go Faster

Back

Cleaning Up AutoCAD Drawings

A necessary part of many AutoCAD® users' day is cleaning up cartoon files.  Not all users set up their drawings with your use in listen, and sadly some don't set it up with everyone'due south use in mind.  There are a diversity of reasons that AutoCAD users would need to clean up drawings.

  • MEP users who receive updated backgrounds from architects or civil engineers.
  • Architects who receive clients' prototypical drawings that demand to be converted to the architects' standards.
  • Architects who receive civil drawings to clean upwards for an architectural site plan.
  • Autodesk® Revit® users who need to make clean up AutoCAD drawings earlier linking or, in some cases, importing them into Revit.
  • Architects and engineers who clean upwards their drawings before sending them to an outside consultant or possessor.
  • Archivers who need to clean up drawings for archival purposes.

Many times, users volition clean up drawings merely when they have to, such as for errors (crashing drawings, disability to import in to other applications), or files existence too big to email, etc.  By keeping the cleanup procedure simple and automating equally much every bit possible, information technology is more likely to get done on a regular basis.  As nosotros all have experienced, issues tend to hit on borderline day.

Everything starts with expert habits and procedures.  Get-go by keeping your drawings lean and efficient.  Use standard layers, linetype, and text styles.  Use polylines, and polygons when creating objects, use explode as a last resort and use blocks/dynamic blocks to represent your cartoon data. Automate your drawing standards, and object insertion processes verses copying one job to create some other.   Sometimes, even with expert drawing practices, files will demand to be cleaned up. And when dealing with exterior users, cleanup is a lot more likely.

AutoCAD has some built-in tools that tin help brand the drawing cleanup process much easier. These tools can be used individually to handle certain cleanup tasks, or they tin be used in conjunction with others to handle larger cleanups.  A few of the tools that you may find useful are "Purge," "Inspect," "Selectsimilar," AND Wblock.

A brief outline of what y'all would utilize each command for and and so a more than detailed description of how they can be used for your cleanup purposes follows, as well as some case scripts on how to automate their use for cartoon cleanup.  Some of these commands have dialog and command line options, so depending on your productivity style, yous have options.  If you lot are a mouse dialog, ribbon, or toolbar user, I encourage you to consider the command line versions to increase your productivity.  The command line can exist a powerful production option, especially when combined with shortcuts and Macros.

  • PURGE: Removes unused named objects, such every bit cake definitions and layers, from the drawing using a dialogue or the command line.
  • Inspect: Evaluates the integrity of a drawing and corrects some errors (control line).
  • SELECTSIMILAR: A uncomplicated method to select objects based on like properties such as layer, color, name, or line weight.
  • WBLOCK: Saves selected objects out of the current cartoon or converts an existing cake to a specified external drawing file.

PURGE

Over time, drawings get bloated with unnecessary and outdated data.  This can include unused layers, linetypes, fonts, styles, and blocks.  By getting rid of these inapplicable items you proceed your drawings lean. Lean drawings use less memory and take less storage requirements, thus saving drive space, fill-in space, load and save times, and email overhead.  Lean drawings besides are less probable to become corrupt.  The following types of unused named objects tin can exist removed from the electric current drawing: block definitions, dimension styles, groups, layers, linetypes, and text styles.  It will also remove cypher-length geometry and empty text objects.  The PURGE command will not remove unnamed objects (see below for unnamed blocks).

Purge tin be washed from the control line or through a dialog box.  For various scenarios you may use one or the other.  See Effigy A for the Purge dialog box from AutoCAD 2022.  The dialog shows that basically no items are available to exist purged.  If you change the elevation option from "View items you can purge" to "View items y'all cannot purge," you tin can encounter all the things that are non "purgeable." Are these still being used?  These can include styles, linetypes, layers, plot styles, and and so on. If you lot don't think you lot are using these, but items will not purge, then bank check some of the following.

Blocks:

  • Could it be nested inside another block?
  • Is information technology an fastened Xref?
  • Is information technology an anonymous block that merely won't purge? (*A…)

Layers:

  • Is it a standard AutoCAD layer (0 or Defpoints)?
  • Is it used in function of a block definition?
  • Is it ready electric current?
  • Does information technology have a block inserted on it?

Styles:

  • Could it be used in a dimension or mleader way?
  • Is it set current?

Linetypes:

  • Could it be used in a layer that is not beingness purged?
  • Is information technology set up electric current?
  • Is it part of a cake definition?

Figure A: Purge Dialog (Version 2022)

-PURGE (control line)

Purge too allows y'all to remove unused 'named' objects from a cartoon at the command prompt.  You lot tin can only remove i level of nested items at a fourth dimension, and then y'all may need to repeat the process until at that place are no items left to be purged.   (Create a macro or script to automate this.) The PURGE control will too remove un-named objects (nada-length geometry or empty text and mtext objects starting in 2022). Even when using the "All" selection, purge by default will not remove REGAPPS**.   Basic prompts and typical responses are below when typing "-purge" (the quotes are not required).

Enter type of unused objects to purge:   "A"
Enter name(southward) to purge:    "*"
Verify each proper noun to exist purged?   "N"

** One particular that will need an extra step is "REGAPPS." Regapps are a byproduct of objects with extended entity data (xdata). When yous delete an xdata object, a REGAPP ID remains.  To remove these, yous must exercise it from the command line.

–Purge <enter> R <enter> * <enter> North <enter>

Anonymous/Un-Named  Blocks

Annoying items that pitter-patter up quite often are the infamous "united nations-named"or "anonymous" blocks or groups.  These testify upwards as *A123, *A124, *X12, *D13, etc. You may have noticed that when you ran Audit, at that place were far more blocks in your drawing than you lot idea at that place should be.  This builds over time every bit you continue to use old projects for new work and when you utilize outside vendors or consultants' drawings.  Information technology can exist very frustrating to find ane,000 blocks in a drawing that do not evidence up in your cake list and will not purge!  Some of these are created past AutoCAD for hatch patterns [*X nnn], associative dimensions [*D nnn] and some are created by AutoLISP routines.   For me this happens a lot when working with drawings from civil and architectural offices.  To remove the blocks that are not being used, you tin utilize the Wblock or –Wblock command (see WBLOCK).

*Unnn = anonymous blocks
*E### = anonymous not-uniformly scaled blocks
*X### = anonymous hatches
*D### = anonymous dimensions
*A### = bearding groups

Audit

From time to time y'all volition get a file that requires recovery to open it, or during a working session you will get an fault suggesting that a recovery may exist necessary.  I way to proceed your drawings healthy is to be proactive and run the audit command.  Audit is a good maintenance tool to run on your drawings to keep them clean of most errors.  When you get drawings from outside firms, this is a must-do pace.  If a drawing contains errors that Audit cannot fix, endeavor using RECOVER to open the drawing and correct its errors.

Audit is a command line tool.  Following are the prompts and options.

  • Type "Inspect"
  • The following prompt is displayed.
    • Fix any errors detected? [Yep/ No].  You would typically cull "Yes," unless you're just looking to come across if the drawing has errors.
  • When the routine is done it will give you a condition written report of how many objects it audited and how many errors it institute and corrected.  Running Purge prior to an Audit will often reduce the overhead of auditing items you exercise non intend to keep anyway.

Note: If Inspect or RECOVER do non work and your notwithstanding getting errors, try inserting the troubled cartoon into a make clean empty drawing, EXPLODE it, PURGE, and do a SAVEAS.

SELECTSIMILAR

How many times take you worked on a cartoon where you were just looking to go simply line work or but text isolated on a layer?  You lot try to freeze or isolate text or dims just to discover out that half the drawing disappeared. This is a mutual consequence with diverse trades where everything associated with a specific topic is on a single layer. For example, an architectural drawing has a ceiling plan layer: "A-CLG" that includes the filigree, the lights, the diffusers, the notes, and the dimensions all on one layer—in different colors (ugh!).  Or how nearly an HVAC cartoon that has the principal ducts, flex ducts, and supply grille/diffuser blocks all on a single "M-SUPPLY" layer.  Sometimes you only need the lights or grid or supply grille locations, just doing layer isolate (another handy tool) gives you everything.  Selectsimilar to the rescue!

Selectsimilar provides you with a way to select objects based on similar characteristics. Objects based on properties such equally layer, color, or lineweight tin be grabbed rapidly with this command.  Admission the command past typing "selectsimilar" at the command line or from the right-click shortcut menu afterwards you've selected an object. What is selected will depend on the current SELECTSIMILARMODE value.

If you have objects with a dissimilar color being included when selecting objects based on colour, note that objects are considered similar if they are gear up to "BYLAYER." This as well includes backdrop similar linetype, lineweight, plot style, cloth, and transparency.  For case, you may get text or line work selected even though they are not the same color if their color property is set to BYLAYER.

To select like objects, you lot can type "SELECTSIMILAR" (create a shortcut similar "SS") or select an object that represents the category of objects you want to select, right-click, and choose "SELECT SIMILAR."

Note Only objects of the same type (lines, circles, polylines, etc.) are considered similar. Yous tin alter other shared backdrop with the SELECTSIMILAR control, using the "SE" (Settings) option.

The Settings dialog box controls which properties must match for an object of the same type to be selected.

[AW-2013-12-AutoCAD-Image-0004.png]

  • Colour – Considers objects with matching colors to be similar.
  • Layer – Considers objects on matching layers to be similar.
  • Linetype – Considers objects with matching linetypes to be like.
  • Linetype scale – Considers objects with matching linetype scales to exist similar.
  • Lineweight – Considers objects with matching lineweights to be similar.
  • Plot style – Considers objects with matching plot styles to be similar.
  • Object style – Considers objects with matching styles (such as text styles, dimension styles, and table styles) to be similar.
  • Name – Considers referenced objects (such as blocks, xrefs, and images) with matching names to be similar.

SELECTSIMILARMODE

To automate the SELECTSIMILAR control in a macro or script you would utilise SELECTSIMILARMODE.  As with many AutoCAD commands, each combination of options has a flake code (numerical value).  Some examples:

  • Select color just = 1
  • Select Color and Layer = 3
  • Select Color and Proper noun = 129
  • Select Layer and Name = 130

To determine these values, run the SELECTSIMILAR command, type SE, and toggle the options. Then run the SELECTSIMILARMODE command to notice the numeric value of these options.

I use "130" near oftentimes.  This allows me to isolate named objects similar "Text" on the same layer.  Using Selectsimilar to select a slice of text on a layer would select all text on that layer - no matter what style or color it is.  Selecting a polyline with the 130 setting would select all polylines on that layer - no thing what color. Selecting a block would only select other blocks with the same name on that layer.  Each of these is useful when selecting items that you may wish to delete or motion to another layer.

WBLOCK

The WBLOCK (Write Block) control is probably best known for saving selected objects or a block within a drawing to an external cartoon file.  WBLOCK can be a very powerful cleanup tool in your arsenal.   Probably the most mutual method of drawing extraction is to type WBLOCK and follow select the options in the dialog to save parts of a cartoon to a specific bulldoze and binder.

The dialog gives you three options: You tin can choose a block inside the drawing, the entire cartoon, or objects that you desire to selectively 'write out' of the drawing.  When selecting objects, you lot select a base bespeak, select the desired objects, and and then select a new proper noun and path where your file is to be saved.

Y'all also have the option to access the quickselect dialog to select items via a properties filter.

You can likewise employ WBLOCK from the command line.  To apply WBLOCK at the command line, add a hyphen in front of the command, due east.g., -WBLOCK.
Information technology will and so prompt yous to enter a name of an existing cake or define a new drawing. Y'all have 3 options hither.

  • Blazon an existing cake proper noun within the cartoon that you want to "write out." (Use if you accept created a block in the current drawing and you lot desire it now saved out to your master library or a project folder.)
  • Hitting enter and a new drawing will be created with the proper name y'all entered in the previous dialog.  You will be able to select an insertion signal and select the objects to write-out.  (Use if you want to selectively write out objects to a new drawing file.)
  • Type an asterisk '*' which volition cause it to write out the unabridged drawing.  (Employ to exercise a mass cleanup of your drawings in a single sweep.)

When cleaning up client drawings or your own from rogue information that has been inserted (often through copy-paste operations), this is a very powerful tool.  This handy method writes the entire drawing to the new output file, except for unreferenced symbols.  Model space objects are written to model space, and paper space objects are written to paper infinite.

If you use the dialog to do your WBLOCK operations, even when y'all selectively choose your objects, takes all the junk with it that you already can't purge.

Try this:

  • Open a cartoon that has unpurgeable items (bunch of *A1nnn blocks) Say "A1.DWG".
  • Plow On, Unlock, and Thaw all your layers.
  • Blazon WBLOCK and choose the "Objects" pick.
  • Select everything in your drawing (crossing, window, etc.).
  • For the Destination, choose a new file name "A1-Objects.DWG."
  • Type Inspect and see how many objects are in the drawing.
  • Compare your size to the original A1.DWG.

And then try this, with the drawing still open:

  • Blazon WBLOCK and choose the "Entire drawing" option.
  • Choose a new name "A1-Entire.DWG."
  • Type Inspect and run across how many objects are in the drawing.
  • Compare all your sizes now.
  • : )

Wblock Results:

Before:

(Already Purged), Inspect reports 114,900 objects and 3,478 blocks - four,327 KB.

After:

WBLOCK (Unabridged drawing pick OR –Wblock with "*"), Audit reports 4,600 objects 71 blocks - 291 KB (93 percent smaller).

The 2nd option removes all those unused and unpurgeable items that the first would not. See how much faster your drawings open, save, and close.

++ Exist careful, though, as both of these methods will remove any Layer States in the drawings.

AUTOMATE YOUR CLEANUP Procedure

Past combining a mixture of the tools in a higher place along with some other AutoCAD commands, yous can reduce the cleanup time dramatically with Macros, Scripts and Scriptpro.  Although macros accept been my standard automation tool, information technology is often easier to use scripts and then that you tin do batch automation with Scriptpro, a free utility from Autodesk that can be found on the Autodesk website.

Case macros:

SuperSave:

^C^C -PURGE;A;*;Due north; -PURGE;A;*;N;AUDIT;Y;-PURGE;A;*;N;ZOOM;East;SAVE;CLOSE;

Superpurge: (includes Regapps and WBlock)

^C^C-PURGE;A;*;Due north;AUDIT;Y; -PURGE;A;*;Northward;-PURGE;R;*;Northward;AUDIT;Y;-PURGE;A;*;N;-WBLOCK;

Sample Macro in CUI

DeleteSimilar:

^C^CSELECTSIMILARMODE; 130;SELECTSIMILAR;/ERASE;P;

Note: be sure to define your "like" mode in your script/macro by setting the "selectsimilarmode" value.

If you have to commonly bind and relieve your drawings to an older version (SAVEAS), you tin have a Macro setup only for that.
^C^CZ;Due east;-PURGE;A;;N;Audit;Y;-PURGE;A;;Due north;-PURGE;R;*;N;-PURGE;A;;Due north;BINDTYPE;1;-XREF;B;*;SAVEAS;2004;

There is not one "super cleanup" command or macro tool that will work for everyone, only you tin can get pretty shut to what volition equate to "your" super tool with a lilliputian thought.  Look at your cleanup process—what are you lot repeating or what is customer "A" ever requiring equally part of the cleanup process?  Automate these items using the tools above and tweak as necessary for each customer.

Let'south say y'all want one ultimate macro that varies slightly by client, but is pretty consistent overall.  Some things you may desire:

  • Set consistent Units – Use the units command options.
  • Want the drawings to exist lean and error gratuitous – Use Audit and Purge.
  • All items to exist colour by layer – Use the SETBYLER command (Thaws and Unlocks all layers).
  • Want the layers to be consequent – Use customer-specific Layer States.
  • For clients that use the standard AutoCAD font mode every bit "their" standard – Rename it to Curvation-STANDARD.
  • Saved when zoomed to extents – Use Zoom, extents.

The below macro would reach that and would take literally seconds to run.

^C^C-UNITS;four;16;1;0;0;N; -LAYER;T;*;ON;*;UNLOCK;*;; -PURGE;A;;N;Inspect;Y;-PURGE;A;;N;SETBYLAYER;ALL;;Yep;Yep;Z;E;-LAYER;A;I; F:/CUSTOM/LAYER_STATES/CLIENT_NAME/CLIENT.LAS;R;DESIRED_STATE;;; -RENAME;S;STANDARD;Curvation-STD;Z;East;SAVEAS;

Items in BOLD would vary by client.

If every job is totally unique for you lot and you need a generic macro, you would remove the layer states option above and you may want to skip the SETBYLAYER command every bit it may give undesired results when plotting.

Afterwards the macro runs, you could use some of the other tools mentioned above to clean up the drawing fifty-fifty further.

Standardization, automation, and training are the all-time tools for increasing your efficiency in whatever process in AutoCAD.  Once you observe out which tools (commands/macros/scripts/LISPs) are your go-to items and you have a gear up process, you tin whip through the drawing cleanup procedure.  Over time I have standardized on many of the above commands and macros, but I am ever looking for new options to reduce any repetitive or fourth dimension-wasting tasks.

Exam

Test, Test, Test!  When incorporating new tools and methods into your arsenal or cleanup process, be sure to test on non-production drawings or at least copies of drawings before you implement these every bit standard tools.  Each office may take unique file requirements that need to be considered when implementing these processes.

OTHER TOOLS

This commodity past no means covers all the tools available for cartoon cleanup, but these are some very useful ones that when used individually or in conjunction with others can make your drawing cleanup process become much faster.  Every bit at that place are a multitude of options and tools available in AutoCAD for cleaning up your drawings, I encourage you to look in to some of these other powerful commands and AutoCAD options:

SETBYLAYER:

Sets selected objects to color BYLAYER (as they should be).  You can as well use this to modify the linetype, lineweight, cloth, and transparency to BYLAYER.  Like SELECTSIMILAR, SETBYLAYER has a mode value (SETBYLAYERMODE) that can be set (i.east., for colour only the value is 113). I typically do NOT alter linetype to BYLAYER every bit it is a common scenario to have a linetype prepare to past entity merely on the same layer with other line types.

FILTER:

To create saved option sets.

QUICK SELECT (QSELECT):

Use to select unlike types of objects that share the same properties such equally color, linetype, plot style, lineweight, transparency, etc., and build a choice assail the fly.

OVERKILL

Use to remove duplicate items in a cartoon that share the same space (i.due east., doors, walls, lights, etc.) right on peak of one another.  This oftentimes happens when binding similar XREFs or copying items and inadvertently selecting the aforementioned origin and destination point and not realizing it.

Clean efficient drawings brand for happy users!

Source: https://www.augi.com/articles/detail/cleaning-up-autocad-drawings

Posted by: hardwickdonew2000.blogspot.com

0 Response to "How Can I Clean My 3d Autocad Drawing So It Go Faster"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel