Help with load command

Help with load command

Anonymous
Not applicable
2,401 Views
25 Replies
Message 1 of 26

Help with load command

Anonymous
Not applicable

I created a few shapes with mkshape. 

But every time i restart autocad I need to LOAD again the shx files. 

How to let autocad load automatically the shx files at startup? 

0 Likes
Accepted solutions (2)
2,402 Views
25 Replies
Replies (25)
Message 2 of 26

Moshe-A
Mentor
Mentor
Accepted solution

@Anonymous  hi,

 

this is true and it's the same as fonts. to load a font file you use STYLE (text style) command. to load a shape file you use LOAD command.

 

to solve your issue,  add this line to your acad.lsp/acaddoc.lsp:

 

(command "load" "YourShxFile")

 

Moshe

 

0 Likes
Message 3 of 26

Anonymous
Not applicable

I opened the lsp file(I hope  the right one) , where exactly I put this line? 

Right after "autolad"

16022583828231027861207612140905.jpg

0 Likes
Message 4 of 26

cadffm
Consultant
Consultant

For new drawings are templates and shx in supportpathes.. 

for my ltypes

 

 

I like to learn everytime,

for what are you using shapes?

 

 

Sebastian

0 Likes
Message 5 of 26

cadffm
Consultant
Consultant

This is acad2018doc.lsp, this file is not for users, you have to create your own acaddoc.lsp

for own stuff!

Sebastian

0 Likes
Message 6 of 26

Anonymous
Not applicable

I created a rectangles of layout sizes like A0, a3...

And I want to pull them when ever I want to create a coordinated frame.

I am sure there is a better solution, but I have only this lisp that makes layout from rectangle

0 Likes
Message 7 of 26

Anonymous
Not applicable

Oh, I will try that

Where should I put the shx files, and if the files in c:/file/shape. Shx

I put the full address in the command? 

0 Likes
Message 8 of 26

Moshe-A
Mentor
Mentor

Shani hi,

 

i attached acad.lsp for you. you can place here:

C:\Users\<your profile>\AppData\Roaming\Autodesk\AutoCAD XXXX\RXX.X\enu\Support

 

<your profile> is your profile name.

 

XXXX is your product version.

RXX.X is acadver

you will see these numbers as you browse-in

 

acad.lsp

(command "load" "YourShape.shx")

edit the file and replace "YourShape" with your new created shx file, omit the .shx than exit\save it.

than restart AutoCAD and the new shapes will be available.

 

Moshe

 

0 Likes
Message 9 of 26

Anonymous
Not applicable

Yes!  Thank you.

I put the files in the fonts folder. 

Work like a charm.

By the way, I didn't wrote the full path

0 Likes
Message 10 of 26

Moshe-A
Mentor
Mentor

although it works, it is wrong to place acad.lsp in fonts folder.

please mark this as your solution

 

Shabat Shalom

Moshe

 

 

 

0 Likes
Message 11 of 26

Anonymous
Not applicable

I wasn't clear, I placed the shx files in the fonts folder. The lsp file I placed in the autocad main folder. 

Shabat shalom ya melekh

0 Likes
Message 12 of 26

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

.....

I put the files in the fonts folder. 

....

By the way, I didn't wrote the full path


That's right -- you don't need to include the path if it's something in the Support File Search Path list.  But I agree with @Moshe-A that there's a better place.  I would suggest the one that ends in \support:

SupportPath.PNG

Kent Cooper, AIA
0 Likes
Message 13 of 26

Anonymous
Not applicable

what is the difference? 

0 Likes
Message 14 of 26

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

what is the difference? 


Mostly just that if it's not a font, it doesn't seem appropriate to put it in the fonts folder.  The one with a path similar to this:

  C:\Users\kcooper\AppData\Roaming\Autodesk\AutoCAD 2019\R23.0\enu\Support

is probably really the best place, because it's where AutoCAD keeps related kinds of things, such as linetype and hatch pattern files.

 

I actually make a separate folder for my own support-like things such as that [the one in my image above the highlighted one, where you don't see the entire line].  It is not version-specific, so when I upgrade to a newer version, I simply add that folder to the Support File Search Path list, and all my custom things are immediately available -- I don't need to copy them from a folder for the previous version into a folder for the new version.

Kent Cooper, AIA
0 Likes
Message 15 of 26

Anonymous
Not applicable

apperantly it doesn't do what i was planning 😞

i am looking for a polyline predesign shape list, i created a similiar list but not as polyline.

how can i do that?

i attached a video that describe what i did. can i make somthing like that, that make a polyline and not a SHAPE or a BLOCK?demo.gif

0 Likes
Message 16 of 26

Moshe-A
Mentor
Mentor

Shani,

 

Why block is not appropriate? you can create a rectangle block for each standard sheet A4/A3/A0 that has the size of 1:1 at insert you can scale it by the scale needed.

 

example:

assuming you are working in meters?!

let's take the A3 size 420x297 mm , draw a rectangle 0.42x0.297 and make it block

now at insert

if you need it in 1:   100 scale it by   100

if you need it in 1:   250 scale it by   250

if you need it in 1:1000 scale it by 1000

 

after the scale you can explode it

 

it is so simple if you go on the right track.

 

Moshe

 

 

0 Likes
Message 17 of 26

Anonymous
Not applicable

i will explain.

my main goal was to create a rectangle for another lisp, a frame maker with coordinates(video attached).

i thought that i can make the frames with SHAPES, but it only works with polyline.

i didn't find any other option to create this kind of menu/list of layout sizes from polyline.

demo2.gif

0 Likes
Message 18 of 26

Moshe-A
Mentor
Mentor
Accepted solution

@Anonymous  hi,

 

Attached shtfrm.zip file contain a lisp program to do what exactly what you want.

 

enjoy

Moshe

 

0 Likes
Message 19 of 26

john.uhden
Mentor
Mentor

@Moshe-A  wrote, "you can scale it by the scale needed."

That sounds like the days before paperspace.  It appears that he is making a rectangular title block border in modelspace.  I think it's been a few decades now since (almost) all of us put our title blocks in paperspace layouts at 1:1.

I should be more gentle; there is a huge difference between stupidity and ignorance.

John F. Uhden

0 Likes
Message 20 of 26

Sea-Haven
Mentor
Mentor

Mosshe-a You should have described what is in the vlx file, some images etc I would not load even though I trust you.

 

There is a lot of make rectangs following a pline as in road designs then make all the new layouts at a user scale with view rotated to suit.

0 Likes