Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
CAD Forums
»
CAD General
»
Topic:
Create a Hatch
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Create a Hatch (Read 1565 times)
0 Members and 1 Guest are viewing this topic.
Fabricio28
Swamp Rat
Posts: 670
Create a Hatch
«
on:
January 17, 2014, 06:57:39 AM »
Hi guys,
How Can I make a hatch with that dimension 0.625 x 1.25 meters??
Thank in advance.
Logged
Rob...
King Gator
Posts: 3824
Take a little time to stop and smell the roses.
Re: Create a Hatch
«
Reply #1 on:
January 17, 2014, 07:05:32 AM »
Draw a rectangle and hatch it?
Logged
CAD Tech
CAB
Global Moderator
Seagull
Posts: 10401
Re: Create a Hatch
«
Reply #2 on:
January 17, 2014, 07:40:11 AM »
http://www.theswamp.org/index.php?topic=4814.msg191815#msg191815
Logged
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.
Fabricio28
Swamp Rat
Posts: 670
Re: Create a Hatch
«
Reply #3 on:
January 17, 2014, 07:58:50 AM »
@ RobDraw
Thank you for suggestion. I'll try this out.
@ CAB
I don't know how to use that code to create my own hatch ( rectangle 0.625 x 1.25).
Maybe a lisp will be wonderful.
regards
Logged
CAB
Global Moderator
Seagull
Posts: 10401
Re: Create a Hatch
«
Reply #4 on:
January 17, 2014, 09:20:19 PM »
Start with this:
Code - Auto/Visual Lisp:
[Select]
(
defun
entmakex
-
hatch
(
L
)
;; By ElpanovEvgeniy
;; 03.04.2007 10:03:51:
(
entmakex
(
apply
'
append
(
list
(
list
'
(
0
.
"HATCH"
)
'
(
100
.
"AcDbEntity"
)
'
(
410
.
"Model"
)
'
(
100
.
"AcDbHatch"
)
'
(
10
0.0
0.0
0.0
)
'
(
210
0.0
0.0
1.0
)
'
(
2
.
"SOLID"
)
'
(
70
.
1
)
'
(
71
.
0
)
(
cons
91
(
length
l
)
)
)
;_ list
(
apply
'
append
(
mapcar
'
(
lambda
(
a
)
(
apply
'
append
(
list
(
list
'
(
92
.
7
)
'
(
72
.
0
)
'
(
73
.
1
)
(
cons
93
(
length
a
)
)
)
(
mapcar
'
(
lambda
(
b
)
(
cons
10
b
)
)
a
)
'
(
(
97
.
0
)
)
)
;_ list
)
;_ apply
)
;_ lambda
l
)
;_ mapcar
)
'
(
(
75
.
0
)
(
76
.
1
)
(
47
.
1
.
)
(
98
.
2
)
(
10
0
.
0
.
0.0
)
(
10
0
.
0
.
0.0
)
(
451
.
0
)
(
460
.
0.0
)
(
461
.
0.0
)
(
452
.
1
)
(
462
.
1.0
)
(
453
.
2
)
(
463
.
0.0
)
(
463
.
1.0
)
(
470
.
"LINEAR"
)
)
)
;_ list
)
;_ apply
)
;_ entmakex
)
(
defun
c:test
(
/
pt x y
)
(
setq
pt '
(
100
150
)
)
; lower left corner
(
setq
x
(
car
pt
)
y
(
cadr
pt
)
)
(
setq
h
(
entmakex
-
hatch
(
list
(
list
pt
(
list
x
(
+
y
1.25
)
)
(
list
(
+
x
0.625
)
(
+
y
1.25
)
)
(
list
(
+
x
0.625
)
y
)
)
)
)
;_ entmakex-hatch
)
;_ setq
)
Logged
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.
Fabricio28
Swamp Rat
Posts: 670
Re: Create a Hatch
«
Reply #5 on:
January 20, 2014, 09:15:29 AM »
Thank you CAB,
I was trying to create a hatch with dimension (0,64x1,20).
Select the perimeter that I want to hatch and create rectangle in it.
Logged
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
CAD Forums
»
CAD General
»
Topic:
Create a Hatch