aryanarch Posted October 27, 2010 Posted October 27, 2010 hi.. i have some lisps every time i need them.. i want those lisps loading when i open auto cad. and how i creat a tool bar with icons for those lisps.. thank u. 1 Quote
ReMark Posted October 27, 2010 Posted October 27, 2010 (edited) Your Customization Guide covers the creation of toolbars. Refer to the chapter entitled User Interface Customization. Another source of information is Michael's Corner, a monthly feature of CADTutor, written by Michael Beall. Click on the button above. Note that there is an archive of all past columns written by Mr. Beall that can be accessed as well. Edited October 27, 2010 by ReMark Quote
ReMark Posted October 27, 2010 Posted October 27, 2010 Creating a new toolbar in AutoCAD 2007 Type CUI at the command line then press Enter. On the Customize tab, under the heading, Customization in All CUI Files, right-click on Toolbars and on the flyout select New then Toolbar. Notice that a new toolbar [Toolbar1] has been placed at the bottom of the Toolbars tree (left-hand pane). Enter a new name. Let’s call ours MyLisps. Click off to the side in a blank area. MyLisps has been added to the tree. Click on the toolbar MyLisps and update the Properties in the left-hand pane. Properties that you can change are: -Description -Default Display -Orientation -Default X location -Default Y location -Rows -Aliases Example. For Descriptions you might type: My custom lisp routines. Example. For Aliases you might type: TB_MyLisps,ML Any new commands you created can now be dragged and dropped onto your toolbar. When done click on Apply then on the OK button. AutoCAD will pause to incorporate the changes you have just made and when you are returned to your screen the new toolbar will be visible. It will also be listed in the Toolbar menu when you right-click at the edge of any toolbar. Quote
alanjt Posted October 27, 2010 Posted October 27, 2010 Please don't eMail me directly asking the same question. Quote
Lee Mac Posted October 27, 2010 Posted October 27, 2010 Please don't eMail me directly asking the same question. He got you as well eh... Quote
ReMark Posted October 27, 2010 Posted October 27, 2010 Guess I wasn't on the mailing list. Yeah! You guys get all the fan mail. Quote
TheZman Posted October 28, 2010 Posted October 28, 2010 You may be more of a button user the command line but one other thing to have AutoCAD automatically start with lisp routines loaded: Command line: appload go to contents. find your .lsp's you want to have loaded at startup and add them. You will need to do this anyway if you plan on using your lisps from a custom made toolbar. Quote
Lt Dan's legs Posted October 28, 2010 Posted October 28, 2010 You will need to do this anyway if you plan on using your lisps from a custom made toolbar. if you only use toolbar buttons try something like this: ^C^C(load "c:\\location\\filename.lsp");lispprogramname; Quote
alanjt Posted October 28, 2010 Posted October 28, 2010 if you only use toolbar buttons try something like this: ^C^C(load "c:\\location\\filename.lsp");lispprogramname; Don't forget to account for the routine already being loaded. Won't hurt anything, but why load what's already there?eg. ^C^C(or c:NAME (load <FileLocation> nil));NAME You could also use (if (not, but I just like (or. Oh yeah, Reese, you should read this link about load/autoload (to avoid errors). http://www.cadtutor.net/forum/showthread.php?47364-Repeating-a-command-on-different-files-...ehm&p=322010#post322010 Quote
Guest cad2007 Posted October 31, 2010 Posted October 31, 2010 Creating a new toolbar in AutoCAD 2007 Type CUI at the command line then press Enter. On the Customize tab, under the heading, Customization in All CUI Files, right-click on Toolbars and on the flyout select New then Toolbar. Notice that a new toolbar [Toolbar1] has been placed at the bottom of the Toolbars tree (left-hand pane). Enter a new name. Let’s call ours MyLisps. Click off to the side in a blank area. MyLisps has been added to the tree. Click on the toolbar MyLisps and update the Properties in the left-hand pane. Properties that you can change are: -Description -Default Display -Orientation -Default X location -Default Y location -Rows -Aliases Example. For Descriptions you might type: My custom lisp routines. Example. For Aliases you might type: TB_MyLisps,ML Any new commands you created can now be dragged and dropped onto your toolbar. When done click on Apply then on the OK button. AutoCAD will pause to incorporate the changes you have just made and when you are returned to your screen the new toolbar will be visible. It will also be listed in the Toolbar menu when you right-click at the edge of any toolbar. i have created the Toolbar...And i am created the Subtool bar also depending upon my main created tool bar.Here how can i insert my codes?and alias hw to mention for the codes? Quote
Recommended Posts
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.