Start a conversation

Editing Linetypes

Linetypes for MicroSurvey CAD based programs are stored in a text file with the extension "lin."

On a 64 bit computer look for:

MicroSurvey CAD:

C:\Program Files\MicroSurvey\<MSCAD201X>\Icad.lin

or:

C:\Program Files\MicroSurvey\MSCAD202X\UserProfile

If you use embeddedCAD look in:

C:\Program Files\MicroSurvey\embeddedCAD 201X\UserDataCache\Support

or:

C:\Program Files\MicroSurvey\embeddedCAD 202X\UserDataCache\en-us\Support

The location varies if you are using inCAD with an Autodesk Product

Modify these files by right clicking and using Windows Notepad to open and edit. 

With a Vista or Windows 7 computer you will need to copy the file to your desktop first before you edit it, and later copy it back.  The operating system won't allow Notepad to open files in the Program Files location unless you have your system customized.

You can edit the files that contain the definition of the linetypes, follow the same format but vary the length of the dash and spaces to get the size you need, just call it a different name.

Samples below...

[CENTERLINE] Descr=____ _ ____ _ ____ _ ____ _ ____ _ ____ _ ITEMS=1 1=1.25,-0.25,0.25,-0.25

[DOT] Descr=. . . . . . . . . . . . . . . . . . . . . . . . . . . ITEMS=1 1=0, -0.25

See below for some notes explaining the linetype definition codes:

Linetype defined

A closer look at the linetype will tell what each part means. Each item is separated by commas.

*MAP,--- Map ---

where

  • *MAP is the name of the linetype
  • ---Map---- is the description of the linetype (or an attempt to create a "Preview" of what the line will look like once it is created using typed characters)

A,1.0,-0.5,["Map",standard,S=1,R=0,X=0,Y=-0.5],-3.0

where

  • A is A-type alignment (which always begins and ends lines and arcs with a dash)
  • 1.0 is the length of the dash
  • - designates a space
  • 0.5 is the amount of space before text
  • brackets ([ ]) enclose string, text stylename, and transform
  • "Map" is the text string
  • standard is the text style
  • S is the text height for this case, or scale of height set in text style
  • R is the rotate, set to zero relative rotation
  • X is the xoffset, set to no offset
  • Y is the yoffset, set to .5
  • -3.0 is the distance between dashes (the area where the text resides)

This example will rotate the text relative to whatever way the line is angled and keep the text aligned with the dashes. To have the text always be horizontally placed on the screen, replace the R=0 with A=0.

 

 

 

Another option, if you have a copy of AutoCAD hanging around, is to copy the ACAD.LIN file into MSCAD and use it; we can read their format.

NOTE - this can also be done with the hatch pattern files from AutoCAD. The new Special Linetypes in AutoCAD which support shapes and text are supported in MSCAD and MapScenes, but it is important that any shape files are available in the program search paths.

You may also find that if you change the value of LTSCALE (type it in at the command prompt), you can change the length of the dashes and spaces in the linetype. You may need to type in REGEN after completing the LTSCALE command, to see the changes on the lines.

 

Creating Complex Linetypes with Shapefiles - you will need access to AutoCAD to create the shapefiles 

1) First open your shape or design your shape in AutoCAD. Then go to the ExpressTools>Tools>Make Shape 

2) After you've created your shapefile you'll be required to use the COMPILE command to create an .SHX file 

3) Then insert the newly created shapefile into the CAD drawing using the SHAPE command.

4) You can then use the Make Linetype in the Express Tools>Tools>Make Linetype to create your complex linetype. 

5) After you have created the .lin file using your shapefile open this up in notepad and copy the text and place it at the end of the Icad.lin file located here: C:\Program Files\MicroSurvey\MSCAD20XX

6) Place the .SHX file you created in the fonts folder located here: C:\Program Files\MicroSurvey\MSCAD20XX\fonts

7) After you re-load the Icad.lin file the linetype will be available in MSCAD 

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Jason Poitras

  2. Posted
  3. Updated

Comments