Is this lisp possible?

Is this lisp possible?

Anonymous
Not applicable
815 Views
5 Replies
Message 1 of 6

Is this lisp possible?

Anonymous
Not applicable

Is this lisp possible?

 

I have 250 drawings that I want to apply hatches to. The

drawings will have about 4 hatches each. There are

about 30 hatches but most of those hatches have

several colors which brings the choices to about 100.

 

Many of the hatches are custom or imported hatches so

they are located in a different location than ordinary

autocad hatches.

 

If there weren't so many choices it would be easy to use

inherent properties and import a master list into the drawing but

with 150 hatches autocad will bog down.

 

One way to do it would be to bring a block into each drawing

that will have all the choices by using inherent properties for the

hatch and lisp for the colors. The colors are going to be for the hatch

and the background and they will be RGB colors with a three

number description.

 

Another way would be to use text like the old menu days

and have the user click on a text such as “Marigold, yellow”

and have the lisp chase down the hatch that is marigold, the

color that is 255,252,5 and the background that is 213,251,216.

 

Would this work?

Thanks

 

0 Likes
816 Views
5 Replies
Replies (5)
Message 2 of 6

cadffm
Consultant
Consultant

Sure. Simple Menumacro, simple Lisp (command, - start from whereever you want (toolbar,menu,ribbon,toolpalette)

OR TOOLPALETTE Hatchtools <- Is this an option for you?

 

Create all hatches combination (color, pattern..) and drag them to your new MyHatches1-3 Toolpalettes.

Sebastian

0 Likes
Message 3 of 6

Anonymous
Not applicable

I am using ac2013 and it comes with tool palettes. I have never used tool palettes before

but this seems like it would work for what I want to do. If I set up all of the hatches as a tool palette

will I need to be concerned about autocad bogging down?

 

Thanks for the help

0 Likes
Message 4 of 6

cadffm
Consultant
Consultant

No, the tooldefinition is not part of the file and the program needs only to read the definitions if you are using them.

 

But: 150 "normal"=simple contours, should slowing down your file.

Note: Hatchpattern definitions are not stored in the dwg like a block, or dimstyle,

Hatches are created on the fly by reading the hatchpattern definition file,

each hatch have there own "hatch pattern definition" if you want to describe it that way.

 

1. Whenever possible, use Objectselection mode, not pickoint.

2. Use sensful scaling values.

3. Use well designd hatchpattern definition (easy to say, i now.)

 

Short: Can you upload such a sample file? (with 150 hatches that slowing down your file),

i am interesting in to see you special hatch pattern.

 

 

 

Sebastian

0 Likes
Message 5 of 6

Anonymous
Not applicable

Most of the hatches are standard autocad hatches but I also want to use some imported hatches

and some I created with Hatchkit, a software for designing hatches.  I will try and upload the master list. 

0 Likes
Message 6 of 6

scot-65
Advisor
Advisor
As long as the custom hatch patterns are in a Support File Search Path (SFSP)
you should be good to go. Keep in mind when editing existing hatch, AutoCAD
must first find the external file (.PAT) of same name or inside acad.pat.

???

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes