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
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
the fill pattern scale
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: the fill pattern scale (Read 2861 times)
0 Members and 1 Guest are viewing this topic.
2e4lite
Guest
the fill pattern scale
«
on:
January 08, 2014, 09:42:05 PM »
How to dynamically change the fill pattern scale?
Logged
Kerry
Mesozoic relic
Seagull
Posts: 11654
class keyThumper<T>:ILazy<T>
Re: the fill pattern scale
«
Reply #1 on:
January 08, 2014, 11:45:07 PM »
From the help file
Code - Auto/Visual Lisp:
[Select]
;; Find the scale of the hatch pattern
(
setq
patternScale
(
vla-get-PatternScale
hatchObj
)
)
(
alert
(
strcat
"The scale of the hatch pattern is "
(
rtos
patternScale
2
)
)
)
;; Change the scale of the hatch pattern
(
vla-put-PatternScale
hatchObj
(
+
patternScale
2
)
)
(
vla-Evaluate
hatchObj
)
(
vla-Regen
doc
:vlax-true
)
If you mean interactively dynamic ( using grread or some such) I don't have a sample handy.
You could also modify the DXF code representing hatch scale (dxf 41 I think would work)
«
Last Edit: January 08, 2014, 11:53:28 PM by Kerry
»
Logged
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.
CAB
Global Moderator
Seagull
Posts: 10401
Re: the fill pattern scale
«
Reply #2 on:
January 09, 2014, 08:58:15 AM »
Here is one and there are others I think:
http://www.theswamp.org/index.php?topic=26444.30
Another
http://www.theswamp.org/index.php?topic=26448.msg319545#msg319545
«
Last Edit: January 09, 2014, 09:37:13 PM by CAB
»
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.
2e4lite
Guest
Re: the fill pattern scale
«
Reply #3 on:
January 09, 2014, 08:37:51 PM »
Thank you both for enthusiastic reply!
Logged
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
the fill pattern scale