AutoCAD 2010 :: LSP Routines Will Not Run From Startup Suite 2012
Jan 27, 2012
Using ACAD 2012, 64-bit desktop
I have a number of .lsp routines that I have loaded into the startup suite. I have their location pathed correctly and at the top of the list in the support file search path under options.
Problem is...they load into the drawing when a drawing is opened, but they will not execute. If I type APPLOAD and re-load them individually, they all seem to work fine.
I'm only having this problem with the computers that are running 2012 in the office.
When I start Reference Manager, the program window opens but at the same moment a message window opens saying 'AutoCAD component has stopped working Windows is checking for a solution to the problem...'. A solution is not found, so I can only select 'Close program', and the program closes. I have run Reference Manager successfully a few weeks ago, and after that I haven't installed or removed Autodesk programs. I have Windows 7 64-bit, AutoCAD Mechanical 2012 SP2 and Factory Design Suite Ultimate 2013. I cannot use Reference Manager 2013 (which works) because it saves the files in 2013 format.
In Windows Control Panel / Troubleshooting I found a file with the following text:
Is it possible to tie the applications loaded in the Startup Suite to profiles? Many of our clients have speciic requirements and we have client-specific routines to quickly create their drawings and loading a profile that loads only their routines would be a time saver.
I have never seen this one before while running a lisp routine: error in dialog file "Y:LispSteel|stl.dc", line 1: warning: redefining object. Symbol:"stl"
stl is a lisp routine we use written in autolisp to insert structural steel members defined by dim files. We have never had a problem with this lisp routine even with the acad 2010 32bit windows XP machines.
- AutoCAD 2010 64bit - Winows7 64bit - Network conditions with acad lisps and blocks on the server. - I have included the stl.dcl file it is having trouble with.
We just upgraded to AutoCAD 2012 Architectural suite, With previous versions of AutoCAD we would be able to import groups using the customize pallets dialogue and Right click to import or export palette groups. These options seem to be missing.
How to lisp the function, where I'm trying to ultimately go with this anyway.
we have 2 standard office lisp files that are in our startup suites. the problem we are having is that they don't load when you start ACA so you have to go into the appload dialogue box and click on the load button. then close and restart ACA before they'll work (or drag and drop from the library...
I had been using AutoCAD 2012 x64 w/SP1 for quite a few months with no issues. A week or two ago I went to open a drawing and the program locked up. I tried opening AutoCAD via the desktop shortcut and directly from acad.exe and it locks up immediately. I tried uninstalling and reinstalling 2012, but the issue persisted. I tried uninstalling and reinstalling without any service packs. I normally don't use Windows Update and hadn't downloaded any updates prior to these issues, but I did it to see if it would fix the issue and it did not. I uninstalled 2012 and installed AutoCAD 2011 x64 only to have the same exact issue. I have an old version, AutoCAD 2002 that works fine, but my job always receives drawings not saved in 2000, and my convert tool sometimes fails to convert them to a version I can open. A friend of mine pointed me to this thread here: URL.... I am using Windows 7 x64 on a somewhat up to date PC that I built myself.
When starting acad with Startup set to 0 or when launching from a drawing on file, I do not have any problems, however, when Startup is set to 1, not only does the startup menu appear as a blank pop -up, but the AutoCAD splash screen just hangs without the program launching.
Could it be due to the fact that I am running a 64 bit System?
Having this problem with 2 lisp routines, i have autocad set up to load a certain profile. but every time I start autocad, i have to reload the 2 lisp routines thru appload.
I would like to have my autocad start with my osnap settings, grid off, ortho on, etc. I am not a fan of the grid, and I have to turn it off everytime I start a drawing. Is there a way to create this as a normal setup?
I have been given a new lap top plus the updated AutoCAD rev. 2012.Supposedly it is superior to my old laptop but... it runs slower, the mouse action is awful, it's like stirring cold porridge.
Anyway, I have spent the first week battling with various bits, trying to get it to look & feel like my previous laptop using 2010.
The big issue I have is upon start up. Rather than loading the standard AutoCAD "drawing 1" regardless, I want to have the browser open up so I can select the' previous drawings loaded on my last session or select a new drawing or browse folders to find the drawing I want.
how I managed to switch this on, back when I managed it on 2010 version.I have given up on running up & down the menus.
I have been getting fatal errors during my user account but not in my admin account. I logged in as admin and repaired Autocad Architecture 2010, using the system disk. I got back the report that Autocad was repaired. However, when I returned to my user account, I get an unhandled expection error when I start up Autocad.Architecture 2010. Do I need to uninstall Autocad Architecture 2010 and then reinstall or should I just pick the option to reinstall Autocad Architecture and then do I have to another registration code?
Why autocad always starts up with 2 layout tabs available on the drawing. In the template that I have created only one layout tab is available and if I create a new drawing according to that template after startup, only one layout tab is available. The template that I have created is set as the basic template for autocad, so it starts up using this template.
Now I want autocad to startup with only one layout tab available.
I'm doing a program in Visual Basic 2010. In one of the forms I put a button that when clicked must open AutoCAD 2012 and make a drawing in it. The user will decide where to save it.The steps are these:
1. I added the references Autodesk.AutoCAD.Interop and Autodesk.AutoCAD.Interop.Common to the Visual Basic Project. That's OK.
Dim acadApp As New AcadApplication 'Create an instance of an AutoCAD Application AcadApp.Application.Visible = True 'Show the instance of the AutoCAD Application Dim acadDoc As AcadDocument 'Create an intance of an AutoCAD Document acadDoc = acadApp.Documents.Open("C:Respaldo TesisDibujo2.dwg") 'Open a Document called Dibujo 2 'Draw a line Dim PT1(2) As Double [code].....
I recently loaded several versions of AutoCAD on to a Windows 7 machine. ALL versions will open a drawing if double-clicked from windows explorer, but if I try to open through AutoCAD, the program freezes as soon as I click on the "Open" button. This is true for AutoCAD 2010 through 2012.
Machine Specs:
Dell Optiplex 990 250GB HD 8GB Ram I7-2600 proc AMD Radeon HD 6670 (1Gb) Video Card
I also cannot open multiple instances of ANY version of AutoCAD in Windows 7.
PC - Dual core with 2Gb RAM 300Gb disc space running MS XP Sp3 (ALL Latest updates installed), latest NVidia drivers installed. I have looked at all previous inputs on this problem and carried out installation with Anti-Virus disabled, FIREWALL disabled, disconnected from network etc etc.
On attempting to start any of the package applications the software fails with an A.R.M. error.
How to make an iLogic routine run from a completely different document than the one it's in? I have tried everything from remotely changing properties to even editing a sketch in the model to try an trigger a routine. Nothing works. I have set triggers to fire when the part opens but opening the documents with code doesn't fire those triggers. It’s very frustrating to have to open each part in an assembly manually just to get all the routines to run.
I have a routine I wrote years ago for R12 and it worked fine. Now when I try it in 2000 it freezes Acad when I select the first button. The routine is for structural steel members and the idea is to select a country of origin which brings up a list, then select a section type from the list which brings up another list of all available sizes. You then select the size member you want then insert it into the drawing. There is also an option to explode the block on insertion. If I remove the (set_lista) section from the following line it doesn't freeze.
(action_tile "AUS" "(setq sectype AA)(setq Country 1)(set_lista)")
(set_lista) is a selection of lists, the list to use is determined by the variable "sectype".
I can select the country I want then cancel the dialog box and type (set_lista) at the command line then reopen the dialog box and the list is refreshed. Just won't do it automatically.
I have writted a set of lisp routines with dcl files that I have implemented in most versions of Autocad since release 14. I can install the toolbars in Autocad 2013 but when I try to execute on of the commands, either by toolbar icon or command line, I get the message "Unknown Command".
4 little helper functions to turn off & on the ToolTips associated with alignments. Handy for when you have a number of nearby alignments and you don't need the constant showing of all the data.
Intended for buttons, actual function names may be shortened for keyboard use.
|; (defun c:all-align-ttips-off () (if (ssget "x" '((0 . "AECC_ALIGNMENT"))) (progn (vlax-for ent (vla-get-activeselectionset (vla-get-activedocument (vlax-get-acad-object))) (vlax-put-property ent 'showtooltip :vlax-false) [code]....
I am trying to map values to my title block using an autolisp routine. I have entered (getenv "NEXTSHEET") & (getenv "PREVSHEET") into the descriptions fields and mapped these routines to 'NEXT_ATTRNAME' & 'PREV_ATTRNAME' attributes. When I run the title block updates no values appear on my drawing. Please note that I have included the program in my start-up suite. Please also note that when I enter 'NEXTSHEET' or 'PREVSHEET' on the command line, the routines are called and the correct values are shown on the command line. I just need these values to be visible on my drawing. I have attached the Autolisp routine that I am running.
I've gotten these two routines from different threads on here. One works with *text and blocks. The second works with multileaders.
I'd like to merge the two so one command can work with a selection set of any of the above objects (assume selection set of mixed objects - some multileaders, some text, some blocks)
(defun c:at ( / ss ang *error*)(vl-load-com)(ErrorHandler '("cmdecho" "osmode"))(setvar "cmdecho" 0)(setvar "osmode" 576)(setqss (ssget '((0 . "*TEXT,INSERT")))ang (getangle " Select two points along desired alignment:"))(mapcar'(lambda (x)(vla-put-rotation(vlax-ename->vla-object x)ang))(mapcar 'cadr (ssnamex ss)))(*error* nil))(defun c:test (/ ss ang i sset)(vl-load-com); Tharwat 17. 05. 2011 (if (and (setq ss (ssget ":L" '((0 . "MULTILEADER")))) (setq ang (getangle " Specify Rotation Angle :"))) (repeat(setq i (sslength ss)) (setq sset (ssname ss (setq i (1- i)))) (vla-put-TextRotation (vlax-ename->vla-object sset) ang)) (princ)) (princ))
I have hundreds of drawings I want to run through scriptpro with a script calling 3 different lisp routines. I have the 3 lisps working independantly but can't figure out how to get them to all run in one script.
Two of the Lisps are for redefining the title block in 2 different types of drawings that have different title blocks. The last lisp locks all viewports in all windows. I'll attach the 3 lisps I'm trying to merge in the script. I am not very versed in scripts and lisps so I'm guessing at least 2 of these lisps could be merged into a single lisp...
Here is what I have for the script file contents (which doesn't work):