TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: 2e4lite on January 08, 2014, 09:42:05 PM
Title:
the fill pattern scale
Post by:
2e4lite
on
January 08, 2014, 09:42:05 PM
How to dynamically change the fill pattern scale?
Title:
Re: the fill pattern scale
Post by:
Kerry
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)
Title:
Re: the fill pattern scale
Post by:
CAB
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 (http://www.theswamp.org/index.php?topic=26444.30)
Another
http://www.theswamp.org/index.php?topic=26448.msg319545#msg319545 (http://www.theswamp.org/index.php?topic=26448.msg319545#msg319545)
Title:
Re: the fill pattern scale
Post by:
2e4lite
on
January 09, 2014, 08:37:51 PM
Thank you both for enthusiastic reply!