It is common problem to select and delete object by accident and realize that the object is missing after you have done some more things on your drawing.
Other situation would be if you have deleted something and after a little time you realize that it would be good to have your object back.
Yes, we all know about UNDO command. We see it in every software and it is one of the most important commands in AutoCAD. However if we want to bring back last erased object, we would have to lose all other commands that we have used after deleting it.
The OOPS command, yes OOPS! What this command does is retrieving the Last Erased Object, without affecting any other newly placed object or command. On the other hand UNDO will retrieve the Last Command you have used.
OOPS command can be very powerful and useful I will try to create one little example just to help you understand it better:
Note: You can also use OOPS after BLOCK or WBLOCK because these commands can erase the selected objects after creating a block.
You cannot use OOPS to restore objects on a layer that has been removed with the PURGE command.
For today’s post, we are going to look at a tool that automatically creates Polyline around the Outside of Multiple Objects.
This can be really useful when we need to compute some overall areas. For example, if we have several parcels and we want to get the whole area they take. Or if we have some irregularly shaped objects and we want to compute their area – like river outline.
The command – LINEWORKSHRINKWRAP
The tool’s command is LINEWORKSHRINKWRAP. Civil 3D will automatically auto-fill the command if we type in “Linewo” so don’t worry if you can’t remember the whole thing… After starting the command we just have to select objects from which we want to create the outer polyline.
Note: This tool works with all AutoCAD objects like line, polyline, circle, etc. as well as with Civil 3d objects like corridors, surfaces, etc.
It is absolutely normal for us to add numbers in AutoCAD. Sometimes there are hundreds of numbers and if we have to renumber them (which happens very often) it is really a pain. For example, we have to number all the columns in a building, or we have to renumber the stations of road alignment. Of course we can use special software for some tasks but now we will look at how to deal with this problem in simple AutoCAD. Since don’t have time to click and modify 100 objects, we will use a command called TCOUNT it is part of AutoCAD’s Express Tool
What this tool does is to add sequential numbering to text and mtext objects as a prefix, suffix, or replacement text. It can be used for Text objects as well as Mtext objects. To use the command we will just go through these simple steps:
To start the command we have to type in command line TCOUNT, Autocad will ask us to select objects – we will just select text objects and hit enter.
After selecting objects we will have to decide how to sort our objects. We have 3 options – X, Y, Select order.
X – Determines numeric order by increasing x-coordinates of the object.
Y – Determines numeric order by decreasing y-coordinates of the object.
Select order – Numeric order is determined in the same order the objects were selected.
AutoCAD will ask us to specify starting number and increment (Start, increment). Here we will enter the start number for example 10 then type in comma and increment for example 1 (10,1). Then we hit enter. We also can use a negative increment. To use it we just have to type in minus sign (10,-1)
The last thing we have to choose is – Placement of numbers in the text. Here we have 4 options – Overwrite, Prefix, Suffix, and Find&replace..
Overwrite – Replaces selected text with numbers.
Prefix – Adds numbers in front of the text
Suffix – Adds numbers at the back of the text
Replaces a user-specified text with a number
For example, we have this text objects:
CHOCOLATE Example 1: Start number 1, increment 2, added as prefix:
5 CHOCOLATE Example 2: Start number 5, increment -5, added as a suffix:
CHOCOLATE -5 Example 3: Start number 10 increment 10, overwrite:
A lot of times we have some lines, polylines, arcs, etc. placed on top of each other. This is very irritating and often times we make mistakes by accidentally clicking on wrong object. These duplicate objects also make our drawings big, bulky and slow. So it would be great if we delete, rejoin all of them and get rid of all overlapping things.
However sometimes we have big drawings with many people working on different parts and those overlaps happen. If we have for example 20 overlapping objects it can take us several minutes just to find them, delete duplicates or join those which are not complete.
There is one very useful command – OVERKILL. It may sound scary but it is just what we need! The command itself finds all overlapping objects and has some settings. So we can choose what exactly do we want to have as a result. Here are the steps have to go through:
We start the command by typing OVERKILL in command lane and hitting enter
AutoCAD will ask us to select objects. Here we would select objects that we want to edit. Or we can type ALL to select all the objects in the drawing.
When we have selected objects and hit Enter a window will pop up here you can see the different options we have.
Tolerance – Controls the precision with which the command makes comparisons. If value is 0 objects must match before OVERKILL modifies or deletes one of them.
Ignore Object Property – Here we can select these object properties we want to ignore during comparison
Options – This is the really cool stuff.
Optimize Segments Within Polylines – If we have individual lines or arcs within selected polylines they will be erased. It also compares separate objects like lines and arcs and deletes them too.
Here we have two sub-options Ignore Polyline Segment width (Ignores segment width) and Do Not break Polylines (Polyline objects are unchanged)
Combine Collinear Objects That Partially Overlap – Combines overlapping objects into single one.
Combine Collinear Objects When Aligned End To End – Objects with common endpoints are combined
Maintain Associative Objects – We can select that if we want Associative objects to remain unmodified.
This is ALL we are ready to ELIMINATE duplicate objects!
If you want to Optimize your drawing even more be sure to check out the post about Drawing files SLOW AS HELL!!
Today we are going to look at one really simple task – writing text in capital letters. There are many people who prefer writing text in drawings in capital letters. There are also people who like writing with small letters.
Why do we even have to read about something like this we can use Caps Lock right?
Well, we indeed can use Caps Lock, turn it off or turn it on when we need it. However there are many cases when we use AutoCAD and for example Microsoft Word simultaneously. We write with Capital Letters in AutoCAD and then with Small and Capital letters in Word. Suddenly our General Notes for example are written with small letters.
Change Small letters to Capital and vice versa. Solution?
First thing that comes in mind, is to delete everything, turn on Caps Lock and write it again.. Since we are lazy and
don’t have time to write all the text again we can simply use „Change Case“.
We just have to double click on our text (this works for Mtext as well as for text objects), then we select the part of text we want to change. After selecting we right click on it and at the menu we can choose „Change Case“ then it will show us two options “UPPERCASE” and “lowercase”. By selecting one of those two options we can make all our text written with Capital letters or with Small letters.
We can also use the shortcut keyboard combination – „Ctrl+Shift+U“ for UPPERCASE and „Ctrl+Shift+L“ for lowercase.
Here is what happend to our General Notes:
Capital letters by default? Autocorrect cAPS Lock and All CAPS ?
There are two more options that can prevent those minor mistakes from happening.
We can use All CAPS option to set Capital letters by default even if we have our Caps Lock turned off. We can activate this option by entering the Text editor (by double clicking on MText object) and clicking on Auto CAPS.
Autocorrect cAPS Lock on the other hand corrects our text if we forgot our Caps Lock on and we want to type with normal Capital and Small letters.
Here is an example:
How many times have you forgotten to send a referenced drawing, .ctb file, font or image? I personally a lot, of course after that there is an angry call from a client who can’t see the attached files or images. It is very depressing to make such a mistake especially for young professional.
There is a reversed problem. How many times someone has sent you a project or has burned a disc with missing links between drawings or missing entire drawing, image, font, etc?
There is a very elegant solution to this problem – eTransmit!
Even now after so many years of AutoCAD existence a lot of users are not aware of eTransmit. It simply is a tool that combines all files connected to your current drawing and creates an archive of them.
Here we will learn how to use eTransmit in simple steps:
To start eTransmit tool we can type in command line ETRANSMIT or we can click on AutoCAD logo>Publish>eTransmit.
Note: Upon starting eTransmit AutoCAD will automatically ask you if you want to save your drawing before you continue. Usually, we hit ok since there could be a correction made after the last save.
When we see the eTransmit window we can click on Transmittal Setup to set up our options. After clicking on Transmittal Setup a window will pop up where we can choose either to modify the standard setup or to create new. In the example, we will click modify.
A new window will pop up called Modify Transmittal Setup. Here we can see that AutoCAD provides a lot of different options concerning our package.
1. Transmittal type and location
– First, we pick the package type – we can choose from zip file or folder, I personally prefer .zip
– Second is File format here we can choose a different (older) version of AutoCAD files. However, it is better to stick with current version unless we have specific requirements. We can also pick drawing format with exploded AEC Objects. For example, if we are using Civil 3d our profiles, alignments etc. will be exploded into simple AutoCAD objects like polylines, lines, arcs etc.
– We want to leave the box of visual fidelity checked because if we uncheck it could harm our annotative objects (if we have one)
– Transmittal file folder is our input folder we can change it if we want.
– Transmittal file name – here we can set predefined name for our package. We will leave it as it is because we want AutoCAD to ask us every time for a name.
2. Path Options – Here we are choosing our folder organization. If we want to be sure that our path won’t be broken we can choose “Place all files in one folder”.
3. Actions – here we are choosing from different actions that AutoCAD can automatically complete for us. I find interesting “Bid external references” since some cad users are not familiar with the external reference, sometimes bind them all in master file can be a good idea.
4. Include options – Here we can choose what to include in our package – here we can check all boxes but the last one which is “Include unloaded file references”. Since we have unloaded our reference I assume that our client doesn’t need to see it. If you want you can send them too.
We can hit OK and complete our eTransmit package.
When we are back in Create Transmittal window we can hit OK again
here AutoCAD will ask us about .zip filename, we type in the name and click Save.
Blocks and Xrefs they look so similar if a person is new to AutoCAD. However there are a lot of experienced users who are so used to blocks that they don’t even try to learn what an Xref is.
The main difference between Block and Xref is that Block is part of the drawing while Xref is an entire new drawing file. Being so different in their definition they are suitable for entirely different tasks. Of course you can make drawing file with your door and attach it as external reference to for example your main floor plan, but that won’t be smart solution.
Blocks are usually used when we need to duplicate small complex objects that can exist hundreds of times in one drawing. They are great tool that can minimize errors in drawings, make files lighter and accelerate our work. For example table block or door block. When we create our own library with blocks it becomes really easy to create our drawings. Here is an example of Sign block library.
So let’s make a list of the tasks that would need using blocks:
We have lots of identical objects in our drawing. Like the traffic organization example or doors in architect’s floor plan:
We want to edit multiple objects at once. For example if we want to enlarge our doors we can simply edit the block from block editor.
We want to create bill of quantity for different unified object. For example we want to know how many 3′ doors we have. Just select the block and hit select similar.
We can create report using blocks in the drawing using Data Extraction. For example we can create coordinate report for curb curves.
We want to send just a part of drawing to a client. This could be made easily with command WBLOCK.
We can use dynamic blocks. Dynamic blocks have extended functionality, with one dynamic block we can replace several normal ones.
With all those great benefits why on earth would I want to use Xref then?
We already disguised What is Xref? Why should we use it?so there is no need to explain again what exactly is external reference. Now when would we prefer to use Xref rather then block:
When there are other specialists that work on other part of the project and we need their work referenced in our drawing. We can actually use block either, but when a correction is made to the drawing we wan to have attached, block won’t upgrade and we would have to edit it or replace it in the current drawing.
When we want to attach the same base drawing in multiple drawings. For example: We have main floor plan as base and then create furniture drawing, water and sewer drawing, electricity plan etc. We can again use blocks, but it is way more flexible to use Xref.
Using Xref makes our drawing less complicated and lighter. If we have a very complex drawing, with a lot of nested blocks, our file can easily get corrupted
The only disadvantage of xref in those situations is that referenced drawings can easily get lost. This usually is due to forgetting about them when we send mails or if we try to use host drawing in different computer.
I would suggest reading the post about Attaching Xrefsso you will know how to properly attach an Xref and the post about Xref – choosing our Path Type.
If we want to send drawings that contain Xrefs the best way for us to do this is to use eTransmitcommand. That way we won’t left any file behind.
Our journey across Xref possibilities continues with one little task many of drafters would neglect and won’t spend time to learn more about it, but I personally think it is important to know When and How to edit your referenced drawings.
Of course as most of the things in AutoCAD, editing can be done in several ways. Here we would talk about which way is more suitable for specific situation.
Find and open your Xref
1. If we are working in drawing with some Xrefs attached to it, the first way of editing one of the drawings is to go into the folder of our project and open the file. It is great but sometimes we have to go through several directories until we get to the project folder. For example the folder for this exercise is located in E:\BACKUP\PROJECT America\2016\Property Staking\CS TEST\Drawings.
It is a lot of clicking with the mouse and I usually don’t recommend it. However there are some cases in which this could be useful like:
Editing Drawing that is still not attached but would be in the future.
You are lazy and want to lose some work time in clicking hehe
Open Xref through Host drawing
2. Opening the Xref directly from host drawing. This could be done in 4 ways:
– We go to external reference menu by typing “XR” in command line, then right click on Xref we want to edit and click “Open”
– Click on Xref, then right click and hit “Open Xref”
– By selecting the reference we want to edit and then look at the ribbons, there we would see “Open Reference”
– By typing “XOPEN” in command line and then select the reference which we want to open.
I would recommend fist method for the first couple of tries because if we have nested references we can easily see which one we need without the chance of missclicking.
As we can see here we are having nested reference and we can choose to edit it directly.
Note: Usually if we have selected nested drawings and hit Open Xref or type XOPEN or select Open Reference AutoCAD will ask us which reference we want to open.
When would we use this method?
When we want to see the original drawing with it’s original settings – colors, linetypes etc.
When we want to copy something from Xref to clipboard. This will not work with the third method “Edit Xref In-Place“
When our referenced drawing is having some fancy objects like Objects from Civil 3d. We would like to open the reference and work with those objects freely. This will not work with the third method “Edit Xref In-Place” either.
When we want to paste objects into the referenced file in it’s original coordinates. This is very useful because we often use drawings drawn in local coordinates (architects love everything to be horizontal and vertical) and then attach those drawings to projects in specific coordinates (state coordinate system, country coordinate system, world coordinate system etc.)
When we have other data in the referenced drawing not visible in the host drawing that we have to edit. For example some tables, profiles, layouts etc.
Edit Xref in-place
3. Third method of editing External references is Edit Xref In-Place. This is very interesting and very interactive method. In many cases it could be the fastest way to edit some objects in the referenced drawing.
As the name suggests editing the reference is made in the host drawing while we can see all the objects from it.When we start editing the reference all it’s objects become solid and all the host’s object get faded. The great thing is that all the settings (colors, linetypes etc.) are kept as they are set in the host drawing.
For example: If we want to move this furniture a little bit to the west we can see where exactly the pavement ends.
There are again 3 ways to enter in the Edit Xref In-Place mode:
– By selecting Xref, then right click and hit “Edit Xref in-place..”
– We select the reference we want to edit and then look at the ribbons, there we would see “Edit Reference In-Place”
– Type “REFEDIT” in command line and then select the reference which we want to open. Note: Usually if we have selected nested drawings AutoCAD will ask us which reference we want to open.
When would we use Edit Xref In-Place?
When we want to edit something connected with the host drawing (As the first example)
When the referenced drawing is in different coordinates it could be a bit confusing to find the object we want to edit.
Here is an example:
We want to delete the table which is in the East part of our drawing.
When we open the external reference the same table is hidden by some ugly hatches in the North part of the drawing.
When we want to paste objects to the reference but we want to use host’s coordinates
When we want to move objects from reference to the host drawing or vice versa. This can be done by using Add to Working set and Remove from Working set commands. When we enter in Edit Xref In-Place mode they are located in the right corner of the ribbon.
To move object from reference to host we just have to select the object and then click on Remove from Working set.
Moving objects from host to reference can be done by selecting the object and then clicking on Add to Working set.
To save changes in the external drawing we just have to click on Save Changes button which is located in the ribbon again.
I think we now are ready to edit every Xref in no time.
In the previous post about Xrefs we talked about the definition of external references and what are they used for. Here we will learn how to properly attach an Xref and what are the different options.
How to attach Xref?
Before we attach drawing we need to have it, so in this example we will use a drawing of walls, doors and windows of a house for our base.
Now, for example, we will make a new drawing called Furniture in which we will put some of the furniture of the house. There are two ways to attach DWG file:
We go to Insert ribbon then click on Attach.
A window will pop up here we find the drawing we want to attach and click Open.
Note: Don’t forget to select File type at the bottom!
The second method is preferred by me. Here we will type in command line “XR” and hit enter. Now a window will pop up, here we can see all the attached external references and we can work with them. Since we have no references attached we go to the upper left corner and click on the small arrow there we can see Attach DWG.. and click on it. New window will pop up here we select our drawing and hit Open.
Note: As you can see we can attach not only DWG files but Images, DWF, DGN etc.
After clicking on Open an Attach External Reference window will pop up. Here we will go through all the options step by step
Preview – Here we can see a preview of the drawing that is going to be attached
Browse..- If we have missclicked we can go and browse for another drawing
Reference type – We have two options Attachment and Overly you can find details in Xref Attach or Overly? What is the difference?, but long story short if we use Overly we don’t see nested drawings if we use Attachment we see all nested drawings.
Show details – Nothing interesting here only the file path
Scale – Here we can scale our reference drawing by X, Y, and Z or we can choose Specify On-Screen and specify the scale dynamically. For our example, we won’t touch anything because we want the drawing to be the same size as the original.
Insertion point – We can choose a specific insertion point by X, Y and Z or we can choose one On-screen. We will again leave it as it is.
Path type – Here we have 3 options – No path, Full Path and Relative path. In post Xref – choosing our Path Typeyou can have a detailed explanation of all Path Types.
Rotation – We are asked to choose rotation for our reference if we want one, we can also rotate it On-screen. For the example we will leave it to 0.
Block unit – This shows us the scale factor of our xref. Since both of the drawings are set to feet scale factor is 1.
Now we click OK and we will have our main floor drawing attached to furniture dwg.
Don’t worry if you messed up with some of the options you can always correct them in the drawing!
We will have to type “zoom” command (or just “Z“) and then “Extents” to see our x ref attached and we can start adding some furniture.
Set multiple properties of multiple objects to ByLayer with one command!
Today we will look at one really interesting and very useful command that i recently found about. It’s called SetByLayer and what this command does is simply change Color, Linetype, Lineweight, Material and Transparency of all object you have selected to “ByLayer“. It really comes in handy when you receive drawing from someone for example architect, or if you are using an old drawing that you have drawn and forgot about it.
Now we will look at one little example how and when the command may be a life saver.
Here we have drawing of site improvements. We want to change the color of all architect’s objects to color 8. That is because it will look great with our .ctb file.
I find it extremely easy just to select all x-ref layer and put them into color 8. However as we you can see there are some walls, doors and text left with its forced color.
Now we will just open the x-ref type in SETBYLAYER. Upon starting the command you will
see in the command line “SETBYLAYER Select objects or [Settings]: type “S” and a window will pop up. Here you can choose what you want to change – Color, Linetype, Lineweight, Material or Transparency. Make your choice and hit OK.
After setting up our preferred options (I will leave all checked) we can select objects. In the example i will select all by typing “All” in command line. Now AutoCAD will ask us if we want to change ByBlock to ByLayer we will hit Yes. Then it will ask if we want to include Blocks. In that case we will chose Yes again if you want to keep blocks with forced settings you can always select No, and we are ready!
Last step is to go back in our drawing and reload the External Reference. Now you can see the selected objects are changed to BYLAYER.