Visual LISP, AutoLISP and General Customization

Reply
*Upton, Brent
Message 1 of 10 (52 Views)

Making a menu

52 Views, 9 Replies
06-19-2001 11:41 PM
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
*Scott, John
Message 2 of 10 (52 Views)

Re: Making a menu

06-20-2001 12:14 AM in reply to: *Upton, Brent
Are you inserting the exact same block each time?
*Bell, R. Robert
Message 3 of 10 (52 Views)

Re: Making a menu

06-20-2001 12:17 AM in reply to: *Upton, Brent
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
|
|
*Upton, Brent
Message 4 of 10 (52 Views)

Re:

06-20-2001 12:24 AM in reply to: *Upton, Brent
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?
>
>
*Scott, John
Message 5 of 10 (52 Views)

Re:

06-20-2001 12:57 AM in reply to: *Upton, Brent
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.
*Upton, Brent
Message 6 of 10 (52 Views)

Re:

06-20-2001 12:59 AM in reply to: *Upton, Brent
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.
>
>
*Scott, John
Message 7 of 10 (52 Views)

Re:

06-20-2001 01:02 AM in reply to: *Upton, Brent
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
[--]
*Upton, Brent
Message 8 of 10 (52 Views)

Re:

06-20-2001 01:08 AM in reply to: *Upton, Brent
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
> [--]
>
>
>
*Donald_Butler
Message 9 of 10 (52 Views)

Re: Making a menu

06-20-2001 02:45 AM in reply to: *Upton, Brent


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
>
>
*Upton, Brent
Message 10 of 10 (52 Views)

Re:

06-20-2001 02:51 AM in reply to: *Upton, Brent
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
> >
> >
>
>

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community