AutoCAD Visual LISP / AutoLISP :: Custom Menu Will Not Stay Loaded Between Restarts On 2005

Aug 2, 2012

This is related to AutoCAD 2005 only:

I have a custom menu file which is NOT located in the support path but rather is on a server drive for all AC 2005 user's to access. When I load this menu in AC 2005 and then restart, it is gone and has to be reloaded. This is happening for all 2005 users in this office. With AC 2009 we use CUI and that custom file is also located on the server, not in the support path, but the 2009 machines are working fine. It is only the AC 2005 users who keep loosing their menu item each morning.

I have done extensive searching on this and it appears to be a common problem but the thing which is also common to all the posts and articles I read on it is that none of them offer a resolution which actually works.

View 1 Replies


ADVERTISEMENT

AutoCAD Visual LISP / AutoLISP :: Dialog Image From 2005 Not Displaying In V2012

Mar 13, 2012

I'm trying to bring a lsp routine up to date and it's almost as if I'm a newbie again.  A dialog image worked okay in 2005 but in version 2012 displays poorly.  So I made a new slide in 2012 and saved it to the same name as the old one,  HobMasterDialog.sld, and placed it in the same folder as the old one.  However, when the dialog appears the rectangular area for the image is blank.

What am I forgetting?

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To List All Of Loaded Programs (LSP / FAS)

Jun 11, 2013

I want to list all of loaded lisp programs in AutoCAD (both .lsp and .fas) It's easy for .ARX files: (vlax-safearray->list (vlax-variant-value (vlax-invoke-method (vlax-get-acad-object) 'listarx)))

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Append Directories To SFSP With Raster Design Loaded

Oct 16, 2013

I am in the process of creating 2 lisp routines, one that loads Support file search paths on the network and one that adds support file search path locally. Each routine will be run depending on the ability of ACAD to find a file on the server. I noticed that when I add the new directories the default AutoCAD folders get replaced. I researched this and found that using the SETENV and ACAD I can include the default support paths. 

The issue I am running into is that not all default folders are being added to AutoCAD when I used the ACAD variable. A plugin folder under Program Data is listed in the original install, but it is not listed when I add my directories and used the ACAD variable to add the default directories. The same thing happens when raster design is installed. The help folder and the install directory for raster are not carried over when using the ACAD variable. 

I am attaching the coding for the lisp routine adding server paths. Is there some syntax I can add to tell it to append to the list instead of replacing the SFSP list?

(vl-load-com)
(setq files (vla-get-files
(vla-get-preferences (vlax-get-acad-object))
)
)
(setq SERVNM (getenv "servername"))
(setq SLSERV (STRCAT "\\" SERVNM))
[code].........

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: POP Menu Position

Jun 27, 2012

How can I get the position (POPn ) where a menu is, considering the other menus loaded (ACAD, Expres.. etc)

For example:

File  Edit  View  Insert .  .Express  WIndow  Help  DOBLADO  PCSMEN. .. and I need to know the position of DOBLADO.

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Execute Macro In CUI Menu

Oct 30, 2013

I have tried to find information about this, but I am having a hard time. So i need to explain what I am doing.

I would like to be able to use commands stored in the cui menu file, initially this is done using our tablets, but our tablet drivers cannot work with windows 7 and autocad, nor can i get any that do, (i have tried over 20 different drivers).

So, instead of making a lisp function for every macro. I need to be able to use some of them.

Can I execute one of these macros using "MENUCMD" ? , I have all the information i need to do it but cannot figure it out menucmd does not seem to have an option to actually run the macro, and if it does It only seems to be able to do that with popup menus.

 Currently i use the ribbon and add them in there, but want to know If i can do so just with lisp. and create my own on-screen tablet menu.

Here is an example of one of the macro's in the cui i need to use.

And here it is in the cui menufile:

UNDER-> <MacroGroup Name="User">
<MenuMacro UID="MMU_WT1[A-5]">
<Macro type="Any">
<Revision MajorVersion="17" MinorVersion="1" UserVersion="1" />
<ModifiedRev MajorVersion="17" MinorVersion="2" UserVersion="1" />
<Name xlate="true" UID="XLS_6804">WT1[A-5]</Name>
<Command>^C^CDTEXT C .125 0 </Command>
</Macro>
 
So.. that is my question how can i use that command via lisp..

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Use Civil Menu Macro

Oct 7, 2011

I would like to use the following macro from the LDD 2004 Civil menu (yes, we are still using 2004!): ^C^C^C^P(cd_mnl)(zz_sdsk '(ad_xsutl 2));LDD.  The macro is Zoom to Station from the Cross Section pulldown menu. How to use this in a LISP routine, or an equivalent LISP command?  (The user won't be supplying the station number.  The station number will be extracted from a selection set of objects with attribute blocks with equivalent station numbers.)

Each cross section has an attribute block associated with it, which lists all the details for that section, including station.  The macro must be using that block (listed in a database, perhaps?) to find the station in the dwg. 

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Image Tile Menu

Oct 24, 2013

I am upgrading from 2010 to 2013 and am having a problem with my image tile menu not showing my  slides. The dialog box comes up but none of the slides can be viewed. I am using the macro $I=acadbja.GENPLAN1 $I=*  Is there an updated command the super cedes this command?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Unresolved Menu Groups

Oct 24, 2006

During the creation of an Enterprise CUI, I somehow was left with Unresolved Menu groups, as shown in the attachment. Any thoughts on how these can be removed?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Edit Customized Pop Menu

Sep 13, 2011

We have had custom toolbars for many years that included custom pop menus etc. Now that we are running cuix customizations how do I edit these customized pop menus? Do I need to rewrite this stuff in lisp, vba, .net, whatever?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Custom CUI For Blocks

Jan 11, 2014

I was on an older cad and am now moving to 2014.. my previous cad was heavily customized the old school way, I have decided to learn the CUI (and dynamic blocks)

My old cad has blocks on a drop down menu.. click BATH menu than WC icon, a macro sets the correct layer than inserts the WC.. took time to setup but pretty simple and straight forward (see attached for menu syntax). I also made a toolbar BATH and on that toolbar I made a WC icon.. that’s what I use the most

couple of questions

1) do I have to make a new command in CUI for each block to do the same thing?
2) I looked into the design center, but seems like its too many steps but it seems a toolbar with an icon on it, clicking the icon and a macro sets layer and insert block is still pretty quick..??
3) if a toolbar with an icon is still a fast and less step method, can I open the block and somehow make an icon of it? if so where do I put it?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Create A Pop Up Menu Triggered By A Function Key?

Dec 29, 2011

I would like a small menu to pop up near the cursor like the middle mouse button menu, but based on some other function key or quick key shortcut. 

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Toggling Check Mark In A Menu

Oct 8, 2013

I am trying to add an on and off  checkmark via lisp to an item in a pull down menu.

It can be done with diesel but only on system variables.

In my case i can't use sysvars - only lisp.

I tried (menucmd ....) but I get nil.

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Loading A Menu Wipes Out Workspaces?

Apr 7, 2012

I have some legacy menus that are quite large.  I have tried to create a new workspace, and that seemed to work o.k.

UNTIL I used menuload to try to load the old menu.  At the point all the defualt workspaces were wiped out somehow.

I would like to have access to both the default workspaces and then also by switching to a custom workspace, my legacy menus.

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Menu Swapping - Migrating To CUIX From MNS

Jan 1, 2010

I read Robert Bell's document “Migrating from MNU to the CUI” (Autodesk University 2007) with interest. I have been using 2005 up until now and I am finally forcing myself to get to grips with 2010.

I managed to get it to work after much trial and error through the CUI transfer interface.My customizing makes use of a lot of swapping pull-down menus, which swap in and out based on current later setting.A typical command would be:

(MENUCMD "P15=RCASPOPS.mfireeqp") where RCASPOPS is my swapping menu loaded at POP15.

Then I would use (MENUCMD "P15=*") to force the “mfireeqp” area of the pull-down menu to display.Trouble is, when I CUIload RCASPOPS, it does not seem to recognize the various areas of the menu.Here is a part of that subsection of RCASPOPS:

***MFIREEQP
[FireProtEquipLayers]
[--]
[0]0;
[defpoints]defpoints;
[X-Refs]x----ref;
[code]...

Typically the whole of RCASPOPS is loaded but when I try to force it to display, the whole of it pops on the screen (well, the top of the file does anyway) and not just the subsection I want.

Is this a syntax issue with the newer AutoCad?Also notice that I use the -> and <- for fly-out sections of the menu - is there a syntax issue with this? I notice that the future support of drop down swapping menus is not guaranteed. What is the alternative?

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Shortcut Menu In Partial Menus?

Aug 26, 2008

I have made an extra CUI that is loaded as a partial CUI.

Now I want to add a context-sensitive shortcut menus like this: POP504, OBJECT_AEC_DOOR.

The problem is that this shortcut menu only shows up if I add the shortcut menu to the main CUI file. If I add it in some partial CUI it never shows.

Does shortcut menus only work from within the main CUI?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: 2014 And Keyboard Context Menu Key

May 17, 2013

Switching from 2010 win xp to 2014 win 7. I need my specific user interface  , and cant replicate it because of this issue  :

I used to press context menu key on keybard to make edit menus pop up . In 2014 even though its same settings  (show context menus and time sentive click)  i ve lost this ability .

Either menus dont appear at all or they are replaced by the small command line context menu. I think this suggest new command line features are messing with right click options any variable i can turn off , or else to go back to normal.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Delete Toolbar From Partial CUI Menu

Feb 15, 2013

I have a company .cuix menu that is loaded as a partial menu to the main acad.cuix file. I want to delete all the toolbars and pull down menus associated with it and leave the other stuff in place. This is in Autocad 2011 but should also translate to 2013. So far, I have tried opening the CUI menu, going to the company.cuix partial menu and deleting the toolbars. Then I hit save, then Apply. Toolbars disappear and pulldown menus go away. But when I reload AutoCAD they come back.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Getting Legacy Screen Menu To Show Up?

Jun 27, 2013

through the groups here I have found the redefine screenmenu command, but I cannot find how to get the screen menu up on the screen as it is not an option in the display options any longer.

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Page UP/DN Control Key For Menu Accelerators?

Sep 18, 2001

I doubt there is since they aren't listed in the control keys list in the help file, but it doesn't hurt to ask. I'm trying to simulate the CTRL+PG UP/DN feature of Excel to switch between tabs. I'm might just have to 'up' and 'down' arrow keys.

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Open Standard Drawing From Menu

Sep 4, 2012

I have a small number of drawings that I use very often. I would like to make a menu item to open a certain drawing but I keep getting stuck when the drawing name should be entered automatically.I use the code

^C^Cfiledia;0;open;"test.dwg";filedia;1;

The drawing is my support file search path and the name is unique. How do I get this to work properly?When running this command:

Command: filedia
Enter new value for FILEDIA <1>: 0
Command: open

Enter name of drawing to open <C:previous.dwg>:

*cancel*
Command: "test.dwg"
Unknown command ""TEST.DWG"".  Press F1 for help.
Command: filedia
Enter new value for FILEDIA <0>: 1

It asks what file to open and suggests the last opened file, and whatever I tried so far this keeps happening.

*.scr files are not allowed on our network, I can't create or rename files to *.scr. Of course I could ask the admins to allow this but I think our security policy is more important than me having a button to open a file.

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Menu Link - Run IPE With String 270 When Click Amr

Feb 10, 2013

i have in Drive C a file "Steel.lsp" have function called IPE

in this function have this line 

(setq n (getstring "
Enter IPE Height :"))
 
i loaded it

i created a menu and command in it called "Amr"

no i need when i click Amr Run IPE with string 270 then click enter

i need all this happen automaticlly when i click on "Amr" on menu

how???

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Create Custom Controls

Apr 17, 2012

I want my application to include a useful Ribbon interface that displays custom properties, read from my custom objects.

I have found the existing Ribbon Control Elements, but I want to use custom controls, not the pre-canned controls.

Is there a generic programmable input box for the AutoCAD Ribbon?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Custom Keyboard Shortcut

Jun 13, 2013

I want to make a keyboard shortcut that will turn on/off my osnap, polar, and otrack.I would be fine with setting F3 to do this, or any other key really.I like to be able to turn these off on the fly, but it is getting old having to press all three.

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Custom Fields / Scales

Apr 25, 2012

I've successfully written a lisp routine to insert a scale bar dynamic block with attributes, gather the object id of a user selected viewport, and write fields to attributes for each of the numbers across the top of the typical scale bar as well as the scale name, for both architectural and civil units. I'm trying to come up with a similar dynamic blocklisp routine combination to do the same with view titles, and the associated scale callout. The catch in this case is that I'd like to display the scale as "NTS" if it isn't a proper scale. The "standardscale" object property option in the field dialog box gives me almost exactly what I want, except that non-standard scales are displayed as "CUSTOM" as opposed to "NTS". Moreover, I’d like this to update on the fly, if the viewport scale changes, the scale callout needs to change also, back and forth from “NTS” to a standard scale if need be.

is there a way to change that (CUSTOM NTS)? My research online seems to indicate that the nuts and bolts of fields are deeply rooted in ObjectARX, which is something I know very little about?

The natural followup to that question is, if I can't change "CUSTOM" to read "NTS", is there a way to wrangle this whole thing with reactors? I'm envisioning object reactors, created as a part of the insertion routine, for each individual instance of the block (there could very well be several in a layout, and multiple layouts in detail drawings), that would call another routine to evaluate the viewport scale, and if it didn’t match a list of standard scales, write NTS to the attribute. My issue is that reactors seem to only associate with one object, in this case that’d be the viewport, the reaction would cause the reactor to call the routine, but how does the routine know which block to update? Is there something from the viewport properties that I can add to the block name (or some other property) which will allow the routine to figure out which block to edit?

I’ve attached my scale bar code, and block, as reference context for how I plan to set the view title up.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Is There Anyway DwgProps / Custom Tab Can Be Dumped

Nov 13, 2012

I use DwgProps > Custom tag to log revisions to our company templates.Then when trouble shooting CAD issues I can look at what template rev level the drawing was started from.

Is there anyway that DwgProps can be removed from the drawing?

I am not looking for a solution to do this... I just wondered if there could be someway a particular drawing file might have somehow lost the DwgProps > Custom entries.

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Alias With Custom Command

Mar 6, 2013

I'm trying to get familiar with AutoCAD. Google and didn't manage to solve a problem :

In AutoCAD LT 2013, I created a custom command called Special fillet :

Name : Special filletDescription : Round a polylineCommand display name : SFILLETMacro : ^C^C_fillet;p;r;0.1

I created two aliases at the end of acadlt.pgp :

SF,         *SFILLET
C,          *COPY

When i type C, it works fine (just a test) but although it appears correctly in the Command prompt, SF doesn't work and it keeps telling me : UNKNOWN COMMAND "SF"

Last thing, if I create an icon in a toolbar with the special fillet command : it works fine...

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Custom Balloon Notification

Sep 29, 2011

Is there any way i can create my own custom balloon notification to alert the detail of any new or updated menu items?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Custom Ribbon Tab Is Not Visible?

Nov 7, 2011

I have tried everything even un-installing and re-installing. I have customized programs that have been working properly for months by many individuals. These include custom menus, toolbars and ribbon tabs. One day last week one of the ribbon tabs disappeared. The crazy thing is if I load the .cuix file as an Enterprise cui, everything is visible and works just fine. BUT, when I load it as a partial cuix file the ribbon tab does not show up. The custom menus come in, my custom toolbars work and show up just fine but the dag blasted ribbon tab won't show up.

Yes, it's marked as visible. I've done and redone the cui editor, customized my workspace again and again checking every piece of information. I need to have it loaded as a partial cui file as I am the author of these tools that hundreds of people in my company depend on.

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Temporarily Reposition The Menu Bar From Top To Middle Of Screen?

Jan 1, 2012

have had the good fortune to have recieved a Christmas present (o.k. to myself) a new Dell 30" monitor with 2560 x 1600 resolution.

The only thing I am finding troublesome as you might be able to see by the attached screen shot, is that now my autocad menus are, as expected at the top of the screen.  This new size of monitor brings with it the problem that you now have to travel your mouse a great distance to reach the menu bar items.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Calling Image Tile Menu From Routine?

Nov 18, 2011

What is the code to call an image tile menu from a lisp command. I currently have a menu item that calls this image tile menu: $I=TYPSMBL1 $I=* but I want to have a keyboard shortcut as well "SL".

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved