AutoCAD 2010 :: Lisp To Run VB Not Working?
Mar 12, 2012
I am trying to run a DVB, file through a lisp routine, but it is telling me that the macro is not found. The macro is:
(DEFUN c:tm ()
(COMMAND "-vbarun" "txtmrg.dvb!RuntimeEvents.stylemerge")
(SETVAR "nomutt" 0)
(PRINC)
) ;_ end-defun
I have both the lsp and the dvb file in the same folder, and used appload to load the lsp routine.
View 1 Replies
ADVERTISEMENT
Mar 15, 2010
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.
View 9 Replies
View Related
Jul 25, 2012
We are moving from AutoCAD Map 3d ver 10 to ver 11. There's a lisp routine I use all the time and it doesn't seem to want to work in the newer version 11. this routine is supposed to fill but like I said doesn't work in ver. 11.
View 1 Replies
View Related
Aug 26, 2011
i'm trying to create a LispFunction in vb.net in visual studio 2010 (tried both .net 3.5 and .net 4.0) and it's like autocad is just ignoring them. is there a setting or something to disable .net LispFunctions from being loaded? CommandMethods work just fine, and i'm not seeing any errors. in fact i'm using the most basic of functions, just returning the arguments. and nothing. Any diagnostic or something to determine what's the matter?
<LispFunction("HelloWorld")>Public Function HelloWorld(args As ResultBuffer) As ResultBuffer Return argsEnd Function does nothing, when i setq a variable on it, it's just nil.
View 1 Replies
View Related
Dec 1, 2011
I have just upgraded from Map 2009 to 2012 4-bit and many of my lisp programs using map functions do not work. Is there an explanation for this and is there a new "catalog" of data extension function and such available somewhere?
View 5 Replies
View Related
Jun 15, 2012
I recently upgraded to a new PC.
We get a lot of files from customers where there are multiple drawing borders all in model space.
Sometimes as many as 150-200 borders in one file that we need to print for the shop floor.
Years ago, I wrote a LISP routine that prompts for printer settings (Fit or To scale, etc.) and then prompts for
2 corners of each border and then writes a script file and launches it to batch plot each drawing.
My thinking was that I had to manually pick each drawing anyway, this LISP routine saved me from having to issue the plot command over and over.
Anyway, since my PC upgrade, the LISP routine fails.
There is a line of code that answers the plot prompt for output device name where I have the same printer as always.
When the script runs up to that line, AutoCAD tells me that printer is "not found".
So then it keeps reading the rest of the script lines which answer other plot prompts and repeatedly says "device not found".
If I manually print, I can choose the same print settings in the dialog box that the script file has and it can "find" that same device.
Why I can print manually but the LISP/script file gives me a "not found" error.
BTW, when I upgraded my PC, I also upgraded AutoCAD from 2012 to 2013..
View 8 Replies
View Related
Mar 22, 2013
I upgrading all our lisp routines to 2013. I have a routing that modifies a block attribute. Then ENTMOD returns with the proper information. ENTUPD reurns the same enity name. The block never changes. The same routine woks in 2010.
View 1 Replies
View Related
Sep 4, 2013
One of our users has recently upgraded from AutoCAD 2005 to AutoCAD 2014. He has a LISP routine that will no longer work and I'm not sure why.
View 9 Replies
View Related
Aug 8, 2012
I know how to retrieve the entity information from the block, but can't figure out how to write the loop statement to loop, look for first attribute, assign to a variable, goto next attribute, assign to different variable, etc., etc...
In my research, most programs I've seen it execute the loop, assign to a variable, then print/put that data somewhere, loop again and utilize the same variable to print/put the next data somewhere.
I would like each attribute within a block to be assigned a separate variable.
View 7 Replies
View Related
Jul 25, 2012
The good news is that, if I were righting a routine that locks up AutoCAD, I'm finished. The bad news is that I'm not.
The code below is the portion of a routine where I have the user select 2 points and then pass those points to the Zoom command and the M2P osnap. The problem is that, when the Mid Between 2 Points osnap tries to use the first point, it returnns an "Invalid point" message, enters a loop and locks ACAD.
(defun C:ZC ()
(setq PointOne (getpoint "First point of M2P "))
(setq PointTwo (getpoint "Second point of M2P "))
[Code].....
View 2 Replies
View Related
Apr 30, 2012
Should SETENV/GETENV be writing/reading to and from the System Registry?
After installing ACAD 2013 as a trail this now seems to be the behaviour, only found it when GETENV calls started to fail. This has also affected previous versions installed on the same workstations.
View 3 Replies
View Related
Aug 28, 2011
lsp.I could not able to find error.
(defun c:t5()
(setq entname (entget(car(entsel))))
(setq thjh (cdr (assoc 72 entname)))
(setq tvjv (cdr (assoc 73 entname)))
[Code]....
View 9 Replies
View Related
Apr 29, 2012
I have a macro that i have been using in autocad 2012 for a simple copy & rotate command as follows
^C^C_select;auto;\_copy;p;;0,0;0,0;_move;p;;\_rotate;p;;\redraw
For some reason it now does not work in 2013 the macro exits after the copy part of the macro is finished & fails to let you rotate the copied object.
View 5 Replies
View Related
May 2, 2013
I'm trying to check for the existence of a drive using lisp, then if not found perform a task (represented in my below example by the alert)
(if (vl-file-directory-p "C: en") T)(alert "exists"))
I know it doesn't work because if I change the T to nil as demonstrated bellow I should invoke the opposite reaction from autocad but instead I get the exact same outcome which is an alert telling me the file exists?
(if (vl-file-directory-p "C: en") nil)(alert "exists"))
View 7 Replies
View Related
Jul 23, 2013
My code returns the error, but it still works.
(vl-load-com)
(setvar "cmdecho" 0)
(vlax-for ucs (vla-get-UserCoordinateSystems (vla-get-Activedocument (vlax-get-acad-object)))
(setq UCSList (cons (vla-get-Name ucs) UCSList)))
(setq FileName (vl-Filename-Base (getvar "Dwgname")))
(setq NewUCSList (vl-remove-if '(lambda (x) (vl-string-search FileName x)) UCSList))
(setq Listlength (length NewUCSList))
[code]....
View 4 Replies
View Related
Apr 28, 2012
I am working with AutoCAD 2012 on a single computer. It appears that the acad.pgp doesn't work. for example when i type DI in command line it refers to:
Command: di DDINSERT
Command: nil
but i have checked the pgp file and in it, the letters DI refer to command DIST. Also in Command Alias Editor they refer to command DIST. I have also tried this:
Command: (findfile "acad.pgp")
and the answer is:
"C:\Users\User\appdata\roaming\autodesk\autocad 2012 -english\r18.2\enu\support\acad.pgp"
View 9 Replies
View Related
Jul 29, 2013
I have various Button macros with the user input select in them, but in 2014 they dont seem to be working anymore.
they worked in 2013.
It just says invalid selection.
example
^C^CSelect;change;p;lt;phantom;;
View 6 Replies
View Related
Jul 5, 2012
I am trying to use 2DREP in a lisp routine but for some reason I keep getting an error message saying 2DREP not a valid comment yet when I type it at the command prompt it works just fine.
View 1 Replies
View Related
Dec 4, 2012
I have a lisp routine and I keep getting NIL. I want it to draw a door and I want to be able to move it.
(defun c:door ()
(DEFUN dtr (A)
(* PI (/ A 180.0)))
(setvar "CMDECHO" 0)
(DEFUN INFO ()
(setvar "OSMODE" 0)
[code]....
View 1 Replies
View Related
Apr 16, 2010
As I'm working in 2011 all of a sudden when I want to deselect all I hit the ESC key and objects are still selected. I can right click and select deselect all and that works. If I shutdown AutoCAD and restart the ESC key works again.
View 9 Replies
View Related
Nov 27, 2012
When working with layers, AutoCad 2011 goes into a "not responding" mode for a time. The more layers the longer it stays. Ctl,Alt Delete is not the answer.
My system is a Win 7, 32bit, with 4.0 Gb ram.
The system resource moniter is in the 67% MEM usage range. Normal usage is 47% with nothing visible on the display.
View 2 Replies
View Related
Nov 30, 2011
We've tried every command imaginable. F3 doesn't work. Checked all setting is Drafting Settings, (incl. 3d). Saved, and restarted.
No OSNAPs work in any command.
View 3 Replies
View Related
Jun 26, 2012
I've got problems using Acad 2012, i'm sure it isn't a hardware problem since the specs are HIGH
First Problem is, when mouse over an icon/box/whatever you call it (eg. Line tool, Circle tool, etc), it only displays the text, but it doesn't show a blue highlight like it's supposed to do, and when i select it, the Blue highlight does not transfer to it, it remains on the Line tool
Second, The Search box isn't working
Third, when i switch from Drafting & Annotation to something else or vice versa, the tabs remain the same, and is usually accompanied by some annoying lags.
View 4 Replies
View Related
Feb 28, 2012
Every once in a while when I run the LAYMRG command, it just doesn't work. It looks like it's doing something, the screen flashes, like it's merged the layers, but in reality it hasn't and I get no error message as to why the layers weren't merged. Now I can't seem to get the command to work in this one particular file no matter what I do. If I copy elements from both of the layers I want to merge into a new and clean file, it then works.
what can cause LAYMRG to hiccup like this?
PS: I've run an audit and all was good and purged all regapps in case something was interfering with the command.
View 4 Replies
View Related
Jul 12, 2012
Why my F keys are not working and how to fix them?
View 3 Replies
View Related
Nov 6, 2013
I am working at an engineering firm. I have had to basically redraw all the openings since our clients seem to be using wipe out blocks for their doors and windows. Well I want to make a beam lisp that will ask the user to click an insert point, width, and angle then draw an appropriate wipe out block with a dashed line down the center to represent our beam then rotate it into place.
View 3 Replies
View Related
Aug 16, 2012
I put mleader into a LISP routine and it is doing the text attached to it only in the command line instead of in the drawing is ther a way to put mleader into a LISP routine and have it do the same as when you just type in mleader?
View 2 Replies
View Related
Mar 12, 2012
Is it possible to assign a bunch of 'Lisp' programs to a template, so when I open autocad with my normal template, I also have the 'Lisp' options?If not, is it possible to load a single 'Lisp' program to load all the rest?
View 3 Replies
View Related
Jun 15, 2013
Is there an LISP file that can zoom extends all layouts?
View 1 Replies
View Related
Jan 22, 2012
I'm trying to save a dwg file in .net using lisp and it works fine for local files, but when I try to save on server it doesn't work.
here's the
//acApp is an instance of Autodesk.Autocad.Interop.AcadApplication.
acApp..ActiveDocument.SendCommand(string.Format("(defun caveFile() (Command "saveas" 2010 "{0}"))
",path));
acApp.ActiveDocument.SendCommand("SaveFile
");
when path parameter is set to @"d:\test.dwg" it works and saves the file but when set to @"\\server\New Folder"\test.dwg" it does not work.what should I do?.
View 1 Replies
View Related
Nov 8, 2011
I have been using the MVSetup command to adjust a view port orientation however when I do this the Pickfirst command is changed to 0 - it was only by chance I discovered this and was able to change it back. Also, is there a command to reset all changes made through MVSetup in a viewport ?
View 9 Replies
View Related