Results 1 to 1 of 1

Thread: lisp for hatching

  1. #1
    I could stop if I wanted to
    Join Date
    2004-07
    Location
    Baton Rouge, Louisiana
    Posts
    254
    Login to Give a bone
    0

    Default lisp for hatching

    I have been trying to figure out way to write a lisp routine that would do a specific hatch pattern for showing demolition work on drawings.
    what it should do is when you pick on a object or line. the lisp file would draw a box around the item selected at specific distance specified drawing and then it should auto select that object and hatch it and then erase the box. we have a certain hatch pattern that we use (dots). I have actually written some lisp code as a command that sets the pattern and hatch scale:

    (DEFUN C: DH4 ()
    (COMMAND "LAYER" "M" "DEMOHATCH" "")
    (COMMAND "LAYER" "C" "163" "" "")
    (SETVAR "HPANG" 0)
    (SETVAR "HPASSOC" 1)
    (SETVAR "HPNAME" "DOTS")
    (SETVAR "HPSCALE" 25)
    (SETVAR "HPSEPARATE" 1)
    (initdia)
    (COMMAND "HATCH")
    )

    sorry for the all the all caps, that's how they want me to do code.
    just trying to find away to get the hatching done faster and looking nice and neat

    - - - Updated - - -
    Last edited by vtmiii; 2017-10-22 at 11:03 PM. Reason: simley face

Similar Threads

  1. 2016: Hatching
    By tim_newsome in forum AutoCAD General
    Replies: 3
    Last Post: 2017-06-27, 02:29 PM
  2. hatching
    By Dianmed in forum AutoCAD General
    Replies: 2
    Last Post: 2009-07-02, 05:20 PM
  3. Hatching
    By graham.54990 in forum AutoCAD LT - General
    Replies: 1
    Last Post: 2009-02-26, 12:47 PM
  4. CIP Hatching
    By David Harrington in forum Revit Structure - General
    Replies: 0
    Last Post: 2005-10-14, 08:30 PM
  5. Hatching
    By dlampley.41310 in forum ACA General
    Replies: 2
    Last Post: 2005-06-08, 05:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •