Hatch scale

Hatch scale

k005
Advisor Advisor
467 Views
3 Replies
Message 1 of 4

Hatch scale

k005
Advisor
Advisor

Hello friends;


I'm doing a scan here. However, I could not adjust the hatch scale. Where am I making a mistake?


Thanks in advance to my helpful friend.

 

error :  BOUNDARY created 1 region; error: ActiveX Server returned the error: unknown name: scale

 

; Tarama (hatch) işlemi
     (setq txtHight (getvar "Textsize"))
    (setq hatchObj (vla-addHatch
                     (vla-get-modelspace
                       (vla-get-activedocument
                         (vlax-get-acad-object)))
                     acHatchPatternTypePreDefined
                     "ANSI31"
                     :vlax-true))
    (vla-put-Color hatchObj 9)
    (vla-put-Scale hatchObj txtHight)

  

    (foreach ent (vl-remove-if 'listp (mapcar 'cadr (ssnamex hsset)))
      (setq loopObj (vlax-make-safearray vlax-vbObject '(0 . 0)))
      (vlax-safearray-fill loopObj (list (vlax-ename->vla-object ent)))
      (vla-appendOuterLoop hatchObj loopObj))

 

 

0 Likes
Accepted solutions (1)
468 Views
3 Replies
Replies (3)
Message 2 of 4

Sea-Haven
Mentor
Mentor

Hmmm maybe not tested.

(vla-put-Scale hatchObj txtHight)

 ; PatternScale = 10.0 use dumpit.lsp

0 Likes
Message 3 of 4

Kent1Cooper
Consultant
Consultant
Accepted solution

That's not the right VLA Property name.  To see all VLA Properties so you can look for what the right one is called:

(vlax-dump-object TheVLAobject)

In this case:

(vla-put-Patternscale ....

Kent Cooper, AIA
Message 4 of 4

k005
Advisor
Advisor

Thank you very much. Ok. 🤗

0 Likes