jmcshane
2006-12-04, 01:37 PM
Hi,
I am trying to write this routine to scale hatch patterns.
The properties of the hatch change, but I just can't seem to
reflect these changes on screen.
Would anybody have any idea's??
Here's what I have so far.
(defun c:HatchTScale () ;(/ EntitySel EntityName OldHatch )
(vl-load-com)
(while
(setq EntitySel (entsel "nSelect Entity: "))
(setq EntityName (car EntitySel))
(setq OldHatch (vlax-ename->vla-object EntityName))
(vla-get-patternScale OldHatch)
(vla-put-PatternScale OldHatch 0.1)
(vla-update OldHatch)
)
)
[ Moderator Action = ON ] What are [ CODE ] tags... (http://forums.augi.com/misc.php?do=bbcode#code) [ Moderator Action = OFF ]
I am trying to write this routine to scale hatch patterns.
The properties of the hatch change, but I just can't seem to
reflect these changes on screen.
Would anybody have any idea's??
Here's what I have so far.
(defun c:HatchTScale () ;(/ EntitySel EntityName OldHatch )
(vl-load-com)
(while
(setq EntitySel (entsel "nSelect Entity: "))
(setq EntityName (car EntitySel))
(setq OldHatch (vlax-ename->vla-object EntityName))
(vla-get-patternScale OldHatch)
(vla-put-PatternScale OldHatch 0.1)
(vla-update OldHatch)
)
)
[ Moderator Action = ON ] What are [ CODE ] tags... (http://forums.augi.com/misc.php?do=bbcode#code) [ Moderator Action = OFF ]