-
AutoHatch LISP
Good day!
Could you please help me create a routine to create Hatch automatically.
For example:
Solid Hatch Pattern
Instead of typing H command and then select a hatch pattern.
I will just enter H1 (Code) for solid hatch pattern and then click or select area directly. Without opening the hatch dialog box.
H2 for Net hatch pattern so on and so forth.
Thank you in advance.
-
Re: AutoHatch LISP
Hi,
Instead of codes, you can open the palette via ctrl+3 and from there you can hit the desired hatch pattern then pick a point in the target closed area on the screen.
-
Re: AutoHatch LISP
Hi Tharwat,
Thank you for your time & suggestion. But I am more comportable typing commands.
I do appreciate your suggestion.
Hope you can help me on this.
-
Re: AutoHatch LISP
Simply this:
Code:
(command "_.-hatch" "P" "Solid" "\\" "")
-
Re: AutoHatch LISP
Hi Tharwat
It works very well!
One more thing, could you please revised it so I can pre-set each routine properties to the following below:
Annotative = Yes
Angle =
Scale =
Associative = No
Background Color =
Thank you so much for always helping me. You helped me couple of times.
-
Re: AutoHatch LISP
Can you do all of those things from the command line? Do you know the keys to press to do those? You can adjust the code Tharwat posted to suit your needs. To add additional options to the code, enclose each typed set of keys within quotation marks ("). For Annotative, you would add this to his code.
Code:
(command "_.-hatch" "P" "Solid" "AN" "Y" "\\" "")
Try the -hatch command to see what command line options are available. To allow for user input, use the pause option in place of your request for user input.
-
Re: AutoHatch LISP
Hi Opie
I tried what you said but its not working & I can't figure out how.
Could you help me fix the routine below:
(Defun C:NET () (command "_.-hatch" "P" "NET" "AN" "Y" "LA" "L-Hatch" "ANGLE" "0" "Scale" "10" "Associative" "N" "Background Color" "253" "\\" ""))
Thank you so much
-
Re: AutoHatch LISP
When you type all of those items within each set of quotation marks, what happens? Where does it fail?
Unless you are specifying the Solid hatch type, then you must answer the scale and angle prompts when changing the hatch pattern name.