Saturday, September 27, 2008

Inserting a Block into your default template

This time let's talk about inserting a block into your drawing template.

There are two Phases to this operation. Phase I involves getting the block into a drawing. For Phase II we save that drawing as our template.

__________________________

Phase I

We begin by starting C&G then going to the Insert > Block Menu. It is important you use a fresh Drawing1.dwg.

Figure 1.


This action opens the Insert Block Dialog Box.

The Name field shows blocks which are already in your drawing. (To see a list of all the blocks in the drawing choose the choices button to the left of the name field.)

If you saved the drawing with a preview button you will be able to preview the image in the upper right corner of the dialog box.

Because we want to add a block that is not already part of the drawing we choose the Browse Button.
Figure 2.



Choosing Browse Opens the Select Drawing File dialog box. We then navigate to the appropriate location and choose the drawing to insert as a block. In this example we will insert a drawing called C-18.dwg

Figure 3.


We choose C-18 by using your mouse to left click on the name from the list of drawings stored in the active folder. If we left click once we see a preview in the upper left of the dialog box. We can also hover our mouse and (depending on your system settings) we will see an information box appear. When we are satisfied this is the file we want, we can double left click the file name or we can left click once then move the mouse down to the lower left and click open.

Figure 4.


"Opening" the drawing will take us back to our drawing. The block will be on your cursor. You can move your mouse to place the block.

Figure 5.


In this case however, do not do that. Instead, use the escape key to stop placing the block. Even though you did not place the block on the screen it is now part of the drawing.

_____________________

Phase II


Now that we have the block in Drawing1.dwg we want to make that our default template.

Here is how we do that.

From the Pull down menu go to File >Save. (You can use the keyboard shortcut or toolbar icon if you wish as either of those will get exactly the same result.)

Figure 6.

Executing this command brings up the Save Drawing As dialog box. (Note that this box only appears the first time you save a drawing. If you have a drawing that has already been saved and wish to save a copy you should use the File>Save As command.)

By default the Save As dialog box will save the drawing as a standard AutoCAD drawing file. This means you get a dwg file type. But that is not what we want.

Figure 7.


We want to save our drawing as a template. So we have to change the file type shown at the bottom of the dialog box. We want to save as an AutoCAD template. Template files have a dwt extension.

Figure 8.


When we change the Files of Type box to dwt the program automatically changes the current folder to the template storage folder.

Figure 9.


For CG 9 the default template is named CGSurv_9.dwt. (For CG 8 the default template name is CGSurv_8.dwt. For CG 7 the default is CGSu.dwt.)

Locate your default template and either double left click the file name or left click once then left click open.

Figure 10.


When you save a file with the same name as a file that already exists, you will get a warning box asking if you want to overwrite the existing file. In this case we do so choose Yes.

Figure 11.


Next, we get a Template Description Dialog Box. If you wish you can type a detailed description of the template and what it is designed to do. Or, if you wish you can leave the box blank. Either way this box provides input to the user and will not in any way affect your actual drawings. When you finish typing (or not typing) left click Ok.

Figure 12.


Your block is now a part of the drawing. To check you can go to the Insert>Block menu for confirmation.

Figure 13.


If you wish to make other changes to your template now is a good opportunity to do so.

When you have finished making those changes, I recommend closing then restarting
the program.

I will get into more details concerning blocks in a future post. Please subscribe to my blog feed or check back regularly.

Larry P

Sunday, August 24, 2008

Converting Old Dos Drawings

On thing that concerns (or should concern) long term users of C&G surveying software is the ability to use older versions of drawings, coordinate files, point groups and raw data files. There is good news for those concerned about accessibility of older files.

For the past several versions C&G has included the ability to convert the old PL files to dwg files. The process is really easy and fairly quick. Before I show you how the process works, I do want to issue a word of warning. When you convert a PL file, a new dwg will be created with that same name. If you previously had a dwg file with the same name as the original PL file, it will be over written without warning. Be careful when converting these old drawings. You can find yourself losing data when the existing file is over written.

With that warning, let me show you how to convert the old PL files.

Begin by starting the program.

There are two basic steps. First, we must Setup the process. During this setup we define the data path for CG Inserts. CG Inserts from the PL file will converted to CAD Blocks.

Go to the CGFile pull down menu. Choose CGFile>CGDos Drawings>Setup.

Figure 1.


When the CG Dos Drawing conversion Box opens, set the data path for any CG Inserts referenced in the PL file you wish to convert. In this case, the Inserts for our drawing are contained in data path c:\data\95060.

Figure 2.


When the data path is properly set, Choose OK.

Next we go back to the CGFile pull down menu. Choose CGFile>CGDos Drawings>Open Drawings.

Figure 3.


Next we choose the drawing we wish to open.

Figure 4.


After chosing the file and then Open, the process begins. The time necessary to complete the conversion will vary with the size of the drawing being converted. Simple drawings happen in a few seconds. More complex drawings will take a bit longer. (Even very large drawings should take less than a minute to convert.)

The the drawing layers being converted will show in the command line.

Once complete, the conversion successful dialog box will appear. Note the warning. I always encourage everyone to keep their color and pen width definitions consistant. Doing so will insure your old drawings will look the same as your new drawings and vice versa.

Figure 5.


Figure 6 shows the converted drawing. This particular drawing is a realitively simple preliminary drawing. The conversion not perfect. I sometimes have issues converting my title block. This is partly because I used attributes in my DOS drawings.

Also you'll find drawings containing "J" line types won't look the same when converted. (A CG Dos J line type is a double line offset from the center.) These do not convert properly to CAD because until recently AutoCAD did not support double offset lines.

Figure 6.




Larry P

Saturday, August 16, 2008

Draw Mapcheck and Input Scale Factor

I want to touch on a couple of topics with this post. One is a way to take a deed description written in units other than feet (or meters). The other function I want to highlight is new to CG Survey 9. The Draw Mapcheck function.

Let's start with a deed written in poles. (One pole equal 16.5 feet). Figure 1 shows a fairly typical Mapcheck file from my records.

Figure 1.


Notice the distance units I have in the Mapcheck file. The first deed distance is 10 poles. Insert each distance just as it appears in the deed.


Close the Mapcheck file and go to the CG Tools> CG Options Pull down menu. (Figure 2.)

Figure 2.


In the CG Options Dialog box you will find the Scale Factor Options in the lower left.

Figure 3.


Since we know 1 pole = 16.5 we change the Input Scale Factor to 16.5. Close the CG Options Dialog box by choosing the OK button at the bottom. (If you close the dialog box by clicking the red x in the upper right your changes will not be saved.)

Next let's take a look at the Draw Mapcheck function.

Go to the CG Draw > Draw Mapcheck function.

Figure 4.


The Draw Mapcheck dialog box allows us to do many things. At the top of the box you see we have to choose exactly which Mapcheck file we wish to work with. If needed, we can even edit the file by choosing the Edit File button.


Figure 5.



We have control of all the elements of a map. We can reduce the Mapcheck file to coordinates. We choose the starting and ending point numbers as well as coordinates for those points. See Figure 6.


Figure 6.


We can change the line type to be used. See Figure 7. If the line type you wish to use is not a part of the current drawing you can even add the type from a linetype file. See this post and this post for more details on linetype files.

Figure 7.


If we wish to draw calls on our map we can use the Calls Setup button to set them as we wish. See Figure 8.

Figure 8.


You change the point symbol and annotation settings by choosing the Drawing Settings button. See Figure 9.


Figure 9.



Once we have all our options set, choose the OK button. Your map is drawn and annotated per your choices. See Figure 10.

Figure 10.


Certainly this quick sketch is not ready to hand to a client; but, it does show you can quickly get data on the sheet. Minor moving of calls or point descriptions are easy at that point. Also note that our distances are shown in feet. The magic of the Input Scale Factor has converted the distances for us.

Finally, if we look at the reduced data we see the closure report and that the coordinates are correctly calculated in feet. See Figure 11.

Figure 11.



Larry P

Friday, August 8, 2008

Converting Raw Data Files to CGR

I had a call this week from a friend having some problems converting a TDS data collector file to a cgr file he could edit with his C&G Raw Data Editor.

I was able to help and thought it might make a good post for others. So, here is how you convert non-CG type files to CGR files.

First, you'll need to download the raw file to your hard drive. (Be sure you make note of the location of the file on your hard drive.)

Once the file is on your hard drive Open C&G and go to the CGTrav pull down. Select Data Collector Transfer.

Figure 1.


Next set the Data Collector Type file to match the raw data type you have. Remember the type is not the hardware type. It is the software type. In this case I was converting a TDS type file.

Figure 2.

Since you have the raw data file on your hard drive already, you need check the Use Disk File option. Then you click Browse. This will allow you to designate which file you want to convert.

Figure 3.

Usually when you get to the folder containing the file you wish to convert, you won't see the file listed. This is because C&G is looking for a file extension that may not match the actual extension of your file. If this happens, go to the bottom of the screen and change the Files of type button.

Figure 4.


You want to show All Files (*.*)

Figure 5.


If you have the correct folder you should see the file you wish to convert. Choose it now. In this case I wish to convert zion_tbrown.raw so I choose it.

Figure 6.


This will return you to the Data Collector Transfer box. Next we set the File Format on the Computer Options side of the CG Data Collector Transfer box. We set the File Format to C&G(*.cgr)

Once you have the File Format set you are ready to choose Transfer

Figure 7.


The transfer happens really quickly. Once done, the CG Transfer Report dialog box will pop up. This box allows you to choose the location and file name for the new file.

Figure 8.


If you choose a location and file that already exist, you have the option to replace or append the existing file.

Figure 9.

After taking care of these options you should receive a Conversion complete notice.

Figure 10.


If you wish to confirm the conversion Use the CG Editor to Open the file.


Figure 11.

You now have a cgr file ready to edit or ready to investigate using the Raw Data Graphic Viewer.

Larry P

Tuesday, July 22, 2008

A Large Utility Linetype

Let's apply the lessons learned in this post on Creating Custom Line types.

Let's create a special linetype for use with large overhead utility lines.

A line that looks something like this.



You can tinker with the size of the symbol and the exact spacing to get it looking exactly like you want.

First things first. You will need to define a Text Style. The reason we do this is because the tower symbol you see in the line is actually the capital "T" in a CAD font that comes with CG Software. The font file is called symap.shx


To define the text style, go to the Format Menu and select Text Style.




The Text Style Dialog box will come up.

Creating a new Text Style is a 4 step process.


Step 1. Select the NEW style button.



Step 2. Name the new style Map_Symbols
(It is very important that you spell this exactly
this way so you can copy and paste the text
located at the end of this tutorial.)



Step 3. Choose the Font Name you want associated with this Text Style.
(Be sure you choose symap.shx from the list.)


Step 4. Apply the changes then close the dialog box.



Now that you have the text style properly defined you are ready to work with the linetype definition file.

First you need to determine exactly where your linetype file is stored on your system. To do this go to the Format Pulldown menu and choose Linetype.




This should pull up the Linetype Manager Dialog box. Once there choose the Load button.




This will bring up the Load or Reload Linetypes Dialog box.
You will see the name of a line type file (extension lin) next to a button labeled File.

Choose the File button.



You can work with any linetype file you wish.
CG Survey 9 users should look for one called "CGSurv_9.lin"
Users of other versions should see a file with a similar name.


Pay attention to where this file is stored on your system.
We will need to open that file and make some changes.



Once you know the exact file name and data path
we are ready to open the file and make some changes.




As I mentioned in the previous post, be sure and open this file with a plain text editor NOT MSWord. I use Notepad for this. Start Notepad then Open a file.


We determined the location of the proper file just a bit ago so we would know exactly where to find the file.


Again, users of other versions of the software might find a slightly different name. This is the name of the file in CG Survey 9. If you don't see the file there check to see that Notepad is looking for all file types and not just text files.


Pay particular attention to any text in the file that is proceeded by two semi colons. This text is where the programmers leave users important information.

In this case we find a note telling us to make any changes need to be saved to the end of the file.




This must be an important message because here it is again.



Go to the end of the file and add these two lines of text. It should be fine to copy and paste from this post

*Major-Utility-Line
A,1,-.1,["T",Map_Symbols,s=.12,x=-.05,y=-.06],-.1

I know we covered this before, but lets take a moment or two to go over again exactly what this text means.


















You see now why we created the Text Style called Map_Symbols. Without that, this line definition won't look right.








I'm sure many (most?) of you will want to tinker with the various parts of the line definition to get the line looking exactly like what you have in mind. This should give you the information you need to do that.

Save the line definitions file and close Notepad.

Now you have to load the new line definition into your drawing.

Go to the Format Pulldown menu and choose Linetype.



From the Linetype Manager Dialog box choose the Load button.




Choose the File button.


Find the proper linetype file.
Highlight the linetype name "Major-Utility-Line" 1
choose OK. 2



Your new line type should now be a part of your drawing.


In a later tutorial I'll talk about how you save this file type to your prototype drawing so it is available when you open the program.

Larry P