Author Topic: convert SOLID hatch to USER HATCH  (Read 1725 times)

0 Members and 1 Guest are viewing this topic.

domenicomaria

  • Swamp Rat
  • Posts: 724
convert SOLID hatch to USER HATCH
« on: March 14, 2021, 10:48:30 AM »
Is it possible to convert SOLID hatch to USER HATCH ?
Without use "command" ?

(setq htch-obj (vlax-ename->vla-object (car (entsel) ) ) )
(vlax-put-property htch-obj "PatternName" "user")

doesn't work !


BIGAL

  • Swamp Rat
  • Posts: 1409
  • 40 + years of using Autocad
Re: convert SOLID hatch to USER HATCH
« Reply #1 on: March 14, 2021, 08:22:14 PM »
The pattern is set to read only so one solution, yes using command (command "HATCHEDIT" ent "P" "ANSI-whatever" "" "")
A man who never made a mistake never made anything

Stefan

  • Bull Frog
  • Posts: 319
  • The most I miss IRL is the Undo button
Re: convert SOLID hatch to USER HATCH
« Reply #2 on: March 14, 2021, 11:15:19 PM »
Code - Auto/Visual Lisp: [Select]
  1. (vla-setpattern htch-obj acHatchPatternTypeUserDefined "_USER")

domenicomaria

  • Swamp Rat
  • Posts: 724
Re: convert SOLID hatch to USER HATCH
« Reply #3 on: March 15, 2021, 04:04:19 AM »
Code - Auto/Visual Lisp: [Select]
  1. (vla-setpattern htch-obj acHatchPatternTypeUserDefined "_USER")

yes

thank you !

BIGAL

  • Swamp Rat
  • Posts: 1409
  • 40 + years of using Autocad
Re: convert SOLID hatch to USER HATCH
« Reply #4 on: March 15, 2021, 09:23:45 PM »
Nice to know can overide the RO.
A man who never made a mistake never made anything

ribarm

  • Gator
  • Posts: 3264
  • Marko Ribar, architect
Re: convert SOLID hatch to USER HATCH
« Reply #5 on: June 28, 2022, 12:23:20 AM »
"USER" would set it for us all?
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube