Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hatch's gone bad

Status
Not open for further replies.

folkker

Civil/Environmental
Mar 2, 2005
1
0
0
US
When I use a hatch pattern at coordinates 0,0,0 everything looks great. If I use a hatch anywhere else the hatch looses its patterns and looks like a bunch of broken lines. I can drag and drop, copy or move the hatch to the other location with no ill effect. If I try to edit or create a new one then it’s deformed once again. Please help.
 
Replies continue below

Recommended for you

[ul]
[li]hatch at 0,0,0 and move...normally it works[/li]
[li]use the SV SNAPBASE[/li]
[/ul]

regards, Lothar

ADT 2004
ACAD 2002
 
Nice little lisp that takes care of that problem

(defun c:hpf (/ om sb pt)
(setq om (getvar"osmode"))
(setvar "osmode" 15359)
(setq sb (getvar "snapbase"))
(setq pt (getpoint"\nSnap to Any Point on Broken Hatch Pattern: "))
(command "snapbase" pt)
(command"hatchedit" pt "" "" "" "")
(setvar "osmode" om)
(command "snapbase" sb)
(princ)
)

Wish I remembered where this lisp came from...probably here ;)

 
Status
Not open for further replies.
Back
Top