Jump to content
Ahankhah

Needed a code to do cuiload absolutely like CUILOAD command.

Recommended Posts

Ahankhah

Dear CAD programmers, As you know when commands called from AutoLISP code, dialog boxes are suppressed and the command prompts for data entry from command line. Some of these commads for instances are "LAYER", "ARRAY", "BLOCK", "BOUNDARY", "PLOT", etc.

Some of these commands with dual behaviuor, has different results, one of them is "CUILOAD".

Could any one show a way to load a customization group into AutoCAD menus, and force it to view all its menus (Toolbars, Menus, Ribbons)?

 

Sorry if I am not totally clear...:oops: Indeed English is my third language (after Persian and Azeri):wink:.

Edited by Ahankhah

Share this post


Link to post
Share on other sites
Ahankhah

Let me explain it clearer.

Suppose you have a customization (menu) file with a Toolbar menu and a Pulldown menu.

 

When you invoke "CUILOAD" command, a dialog opens and you can select the file to "Load" it. After closing the dialog box, you will see both Toolbar and Pulldown menus of the new menugroup in the screen.

 

But if you call the command in AutoLISP code:

(command "_.CUILOAD" filename)

only Toolbar appears and you must issue "CUI" command to show the Pulldown menu.

 

How is it possible to open Pulldown menu automatically?

Share this post


Link to post
Share on other sites
Ahankhah

I think find a part of my answer here: Load CUI with Menu Macro.

Should any one explain how to use (vla-InsertInMenuBar) to put desired pulldown menu in the proper location?

Share this post


Link to post
Share on other sites
Ahankhah

Here explained ways to force desired pulldown menu visible: Network CUI

Many thanks to alanjt and Lee Mac.

Edited by Ahankhah

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...