Start a conversation

Custom Hatch Patterns

IntelliCAD and AutoCAD (the CAD engine used as the basis for embeddedCAD and inCAD) are delivered with a range of Predefined hatch patterns that you can access when you open the Boundary Hatch Dialog:

If you need to create your own hatch patterns, you can modify the hatch pattern definition file icad.pat in a text editor by copying it from its normal location, making changes, and replacing it:

C:\Program Files\MicroSurvey\MSCAD****\patterns\icad.pat

C:\Program Files\MicroSurvey\embeddedCAD ****\UserDataCache\en-us\Support\MSEmbed.pat

C:\Program Files\Autodesk\AutoCAD ****\UserDataCache\en-us\Support\ACAD.pat

NOTE: Hatch pattern definition files can be exchanged between IntelliCAD and Autodesk products.

The hatch pattern definitions are mostly coordinates, see below for how the ANSI134 pattern is defined:

*ANSI34,ANSI Rubber, Plastic
45, 0,0, 0,0.75
45, 0.176776695,0, 0,0.75
45, 0.353553391,0, 0,0.75
45, 0.530330086,0, 0,0.75

The formatting of the pattern definition is described briefly in this article from AutoCAD:

The process of defining the hatch patterns can be tedious, but an open source lisp routine is available that makes the hatch pattern definition a simple process.

Visit the CADalyst website to download their Hatchmaker.lsp routine:

cadalyst

*NOTE: embeddedCAD does not allow the use of lisp routines. You will need to use either inCAD or MicroSurvey CAD to create hatch patterns.

  1. Instructions to follow in MicroSurvey CAD or other IntelliCAD based product:
  2. Start a new drawing.
  3. Set your current layer to 0 and your
  4. Set your current linetype to continuous.
  5. Load the new lisp file (see this article for details)
  6. type DRAWHATCH in the command line
  7. A dialog pops up informing you that you can draw points and lines to define the hatch pattern. You must work within the square shown and leave the snap settings as they are:
  8. When finished, type SAVEHATCH
  9. A note appears reminding you that your lines must correspond to the limit and snap settings mentioned in step 7
  10. <Enter>
  11. You are now prompted to select the entities inside the box that define your hatch pattern.
  12. Select all the lines and nodes, but not the box
  13. <Enter>
  14. The contents of your hatch pattern definition will appear in the command line. (TIP: If you want to manually edit your *.pat file you can copy this text directly into the text editor, but in this document we'll follow the automated process)
  15. A prompt appears: Briefly describe this hatch pattern: Type a comment for your hatch pattern
  16. <Enter>
  17. A prompt appears so you can set the name for the *.pat file.
  18. Browse to your desktop
  19. Type the exact name of your new hatch pattern. Use all capitals and include no spaces.
  20. A message appears: "Your Hatch pattern is ready to use."
  21. Next, we need to create a slide file so that you can view a thumbnail of your hatch pattern in the bhatch dialog.
  22. type CONFIG
  23. Pick Display
  24. Colour scheme
  25. Select Background
  26. Change background colour to white
  27. Turn off display of grad
  28. Type MSLIDE
  29. You will be prompted to save the file. Navigate to your desktop, and assign the same name you used in step 19
  30. Now close MicroSurvey CAD. View your desktop, and you will find two files:
    1. HATCHPATTERNNAME.pat
    2. HATCHPATTERNNAME.sld
  31. Copy your original *.pat file from the program files location mentioned at the beginning of this article onto your desktop.
  32. (Just to be safe, create a backup of the original *.pat file)
  33. Open the original *.pat file in a Text editor. At the bottom there is a space for you to add new definitions:
  34. Open your new HATCHPATTERNNAME.pat file in the text editor
  35. Copy the contents of the file into your original *.pat file:
  36. Save the *.pat file on your desktop
  37. Copy the *.pat file into its original location
  38. Copy your *.sld file into: C:\Program Files\MicroSurvey\MSCAD2020\patterns
  39. Start MicroSurvey CAD
  40. BHATCH
  41. You should now be able to find your hatch pattern in the "Other Predefined" group:

If you wish to share your customization with other users in your office, simply distribute the *.pat file and any *.sld files you have created. Restart the program to have your changes take effect.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. James Johnston

  2. Posted
  3. Updated

Comments