Author Topic: the fill pattern scale  (Read 2804 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?

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]
  1.  
  2.     ;; Find the scale of the hatch pattern
  3.  
  4.     (setq patternScale (vla-get-PatternScale hatchObj))
  5.     (alert (strcat "The scale of the hatch pattern is " (rtos patternScale 2)))
  6.                  
  7.     ;; Change the scale of the hatch pattern
  8.     (vla-put-PatternScale hatchObj (+ patternScale 2))
  9.     (vla-Evaluate hatchObj)
  10.     (vla-Regen doc :vlax-true)
  11.  
  12.  
  13.  


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 »
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 »
« Last Edit: January 09, 2014, 09:37:13 PM by CAB »
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!