Jump to content

how to make Lisp program a menu in autocad


Begde

Recommended Posts

Heres an example menu just use Menuload to load it, its a text file .mnu It has also secondary menu's within a menu. The -> is open group

 

***MENUGROUP=CADTUTOR

***POP15

**CADLIB

 

[->LISP1 A-B]

[Add 2 Level]^C^C(LOAD "add-to-levels")

[Add-pits-drain]^C^C(LOAD "Add-pits-drain")

[Allbylayer]^C^C(LOAD "Allbylayer")

[

[->LISP2 C-D]

[->CARPARKS]

[No carparks]^C^C(load "how many carparks") carpark

[

[Chain-Off]^C^C^p(LOAD "CHAIN-OFF")

[

Link to comment
Share on other sites

Dear BIGAL,

I tried to manage a menu as you describe and I have three problems:

- I have to load the menu file each time I start autocad

- The LISP files are not functioning and an error massage of unknown command appears each time I type the shortcut command

-How can I have this menu loaded in autocad annotation and draft screen.

I am using autocad 2012

the code is:

***MENUGROUP=HEATING LOOP

***POP1

[Heating Circuits Drawing]

[uNDERFLOOR HEATING]^C^C(LOAD "Underfloor heating-2")^C^CHEATGRID

[FILLET PL]^C^C(LOAD "fillet polyline")^C^CFR

Link to comment
Share on other sites

2 things both the same you need your lisps directory path to be included in the acad support search directory list same with your menu's. eg ours are server\autodesk\supportfiles

 

Config files support

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...