Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Making a menu

9 REPLIES 9
Reply
Message 1 of 10
Anonymous
247 Views, 9 Replies

Making a menu

Hey all,
I'm trying to make a menu that automatically inserts a block. For some
reason, instead of firing up the insert command, I get the last command that
I used.

My block file is located in c:\acad\blocks\insul.dwg

My menu just has to insert that block.

Any help?

Brent U
9 REPLIES 9
Message 2 of 10
Anonymous
in reply to: Anonymous

Are you inserting the exact same block each time?
Message 3 of 10
Anonymous
in reply to: Anonymous

Where's your menu macro?

--
http://www.acadx.com


"Brent Upton" wrote in message
news:9EC06A93855F7CE14ABDD49073162EFC@in.WebX.maYIadrTaRb...
| Hey all,
| I'm trying to make a menu that automatically inserts a block. For some
| reason, instead of firing up the insert command, I get the last command
that
| I used.
|
| My block file is located in c:\acad\blocks\insul.dwg
|
| My menu just has to insert that block.
|
| Any help?
|
| Brent U
|
|
Message 4 of 10
Anonymous
in reply to: Anonymous

Well, I have multiple files, but I just want to get one working before I go
on.

I fixed the one error where it just runs the last command, but now when I
insert the block I pick a point, and then when I try to scale, if I right
click for enter it enters a weird scale and I can't right click again to set
rotation. Blow is my macro.

***MENUGROUP=INSERT_BLOCKS

***POP1
[Standard Blocks]
[->Windows and Doors]
[<-Windows and doors block 1]^C^Cinsert
//NFSAPDC/EXPORT/Drawings/Blocks/WIN-DOOR.dwg
[--]










John Scott wrote in message
news:f05caa9.0@WebX.maYIadrTaRb...
> Are you inserting the exact same block each time?
>
>
Message 5 of 10
Anonymous
in reply to: Anonymous

I know this does not involve your problem, but why don't you include the
block file path in your ACAD support search path and then you only have to
include the block name after INSERT rather than the entire file path? It
will certainly make things simpler for you if you are going to be doing many
more of these. Also, in the future if you move the files you only change one
support path rather than an entire menu file.
I am taking a look at your macro right now to see if I can solve
anything for you.
Message 6 of 10
Anonymous
in reply to: Anonymous

I have added the path and changed the line...I just want to get it working
this way before I get any deeper.

I've done this before with no problems...Something is working against me.



John Scott wrote in message
news:44247B7F857609ED1C7142FFC1994940@in.WebX.maYIadrTaRb...
> I know this does not involve your problem, but why don't you include
the
> block file path in your ACAD support search path and then you only have to
> include the block name after INSERT rather than the entire file path? It
> will certainly make things simpler for you if you are going to be doing
many
> more of these. Also, in the future if you move the files you only change
one
> support path rather than an entire menu file.
> I am taking a look at your macro right now to see if I can solve
> anything for you.
>
>
Message 7 of 10
Anonymous
in reply to: Anonymous

Give this a try. I used the same format for one of my blocks, minus the file
path, and it worked fine. I added a ";" after "^C^Cinsert"

***MENUGROUP=INSERT_BLOCKS

***POP1
[Standard Blocks]
[->Windows and Doors]
[<-Windows and doors block 1]^C^Cinsert;
//NFSAPDC/EXPORT/Drawings/Blocks/WIN-DOOR.dwg
[--]
Message 8 of 10
Anonymous
in reply to: Anonymous

I get an invalid block when I do that.

You know what, (EDITED) It won't save that much time anyhow.

Thanks for the ideas though...


John Scott wrote in message
news:81F7AF3C030F5B3F764DD7628CABA4B0@in.WebX.maYIadrTaRb...
> Give this a try. I used the same format for one of my blocks, minus the
file
> path, and it worked fine. I added a ";" after "^C^Cinsert"
>
> ***MENUGROUP=INSERT_BLOCKS
>
> ***POP1
> [Standard Blocks]
> [->Windows and Doors]
> [<-Windows and doors block 1]^C^Cinsert;
> file://NFSAPDC/EXPORT/Drawings/Blocks/WIN-DOOR.dwg
> [--]
>
>
>
Message 9 of 10
Anonymous
in reply to: Anonymous



Just put the block in your path and...

^C^C-Insert;INSUL; <-No spaces after the semi-colons

or...

^C^C-INSERT;c:\\acad\\blocks\\insul.dwg;

To be sure AutoCAD can find the file, type (findfile "INSUL.dwg") or at the
command line.

Donald Butler



"Brent Upton" wrote in message
news:9EC06A93855F7CE14ABDD49073162EFC@in.WebX.maYIadrTaRb...
> Hey all,
> I'm trying to make a menu that automatically inserts a block. For some
> reason, instead of firing up the insert command, I get the last command
that
> I used.
>
> My block file is located in c:\acad\blocks\insul.dwg
>
> My menu just has to insert that block.
>
> Any help?
>
> Brent U
>
>
Message 10 of 10
Anonymous
in reply to: Anonymous

SUCCESS!

Thanks again John.



Donald_Butler wrote in message
news:8F3020B470DF6A1D8FA843E2995097B7@in.WebX.maYIadrTaRb...
>
>
> Just put the block in your path and...
>
> ^C^C-Insert;INSUL; <-No spaces after the semi-colons
>
> or...
>
> ^C^C-INSERT;c:\\acad\\blocks\\insul.dwg;
>
> To be sure AutoCAD can find the file, type (findfile "INSUL.dwg") or at
the
> command line.
>
> Donald Butler
>
>
>
> "Brent Upton" wrote in message
> news:9EC06A93855F7CE14ABDD49073162EFC@in.WebX.maYIadrTaRb...
> > Hey all,
> > I'm trying to make a menu that automatically inserts a block. For some
> > reason, instead of firing up the insert command, I get the last command
> that
> > I used.
> >
> > My block file is located in c:\acad\blocks\insul.dwg
> >
> > My menu just has to insert that block.
> >
> > Any help?
> >
> > Brent U
> >
> >
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost