• Skip to main content
  • Skip to primary sidebar
blog.draftsperson.net

blog.draftsperson.net

the art of technical drawing

blog.draftsperson.net

Hatch Pattern does not start where I want it

February 22, 2003 Leave a Comment

Written by Allan, 22 Feb 2003

Applies to:

  • AutoCAD 2004 and below
  • May also apply to R14

Problem:

The Hatch Pattern does not start where I want it. Example of CMU hatch:

Reason:

SNAPBASE needs to be set where you wish the hatch pattern datum to begin from. Solutions:
  1. Set the SNAPBASE system variable, to the bottom left hand corner (see picture above).
  2. Use this AutoLISP code to edit the hatch pattern, after it has be created.
(defun c:AHSP (/ OBJ PT1 XCORD YCORD SP1 SB1)
(setvar "cmdecho" 0)
(setq
SB1 (getvar "snapbase")
OBJ (entsel "nSelect Hatch pattern to edit:")
PT1 (getpoint "nSelect new starting point of hatch pattern:")
XCORD (car PT1)
YCORD (cadr PT1)
SP1 (list XCORD YCORD)
)
(setvar "snapbase" SP1)
(command "-hatchedit" OBJ "p" "" "" "")
(setvar "snapbase" SB1)
(princ)
); end of c:AHSP

Filed Under: AutoCAD Bugs & Problems, AutoCAD Tips

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Subscribe to our Youtube Channel

Categories

  • American Steel Industry (4)
  • AutoCAD Articles & Reference (24)
  • AutoCAD Bugs & Problems (19)
  • AutoCAD Tips (28)
  • AutoCAD Tutorials (42)
  • AutoLISP Routines (145)
  • AutoLISP Tutorials (15)
  • CAD Standards (6)
  • Civil 3D (7)
  • Civil Drafting (4)
  • Dimensions (2)
  • Drafting Funnies (71)
  • Drafting History (9)
  • Drafting Standards (65)
  • Electrical Drafting (2)
  • General IT reference (10)
  • Geometry (15)
  • GIS (2)
  • Office Life Hacks (1)
  • PT (1)
  • Revit Tutorials (53)
  • Steel Detailing (12)
  • Structural Drafting (23)
  • Technical Dictionary (45)
  • Useful Website Links (19)

Provided for free with no warranty ยท Log in