View Full Version : macro that brings up "create-part menu" and struc
Robert Aronsson
07-28-1998, 08:39 PM
How can I make a macro that brings up "create-part menu" and show the structure-browser I have tried with (progn) and (defun) but with bad results I can get up browser or create-part menu but not both! Any idees?
Markus Kuehl
07-30-1998, 01:32 AM
From where do you want to invoke your "macro"? Toolbox, toolbar, menubar? One solution for the toolbox would be: Execute this line in the Enter-Command line or add it to your pesd_customize file: (add_toolbox_button :label "Part&Browser" :action '(progn (put-buffer "create_part") (UIC-SHOW-STRUCTURE-BROWSER))) If you want to have a toolbar or menubar button with this kind of functionality, add for example "Group: Part & Assy -> Command: New Part" to your toolbar or menubar and select the just added command in the result (right) column. Hit "Edit Selection ..." below the column. Now, you can adapt this command to your needs: Type in the command text field the following LISP expression: (progn (put-buffer "create_part") (uic-show-structure-browser)) That's it! Hope this helps.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.