AutoCAD 2010 :: Use 2DREP In A Lisp
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
ADVERTISEMENT
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
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
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
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
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
Oct 6, 2011
Just recently I have really started to develop LISP routines and I am curious if it is possible to integrate them with a Keyboard call-out.
View 9 Replies
View Related
Aug 8, 2013
Lisp that can create layouts (using a dwt--I would code in the file path to my dwt) reading data from a csv file??? I would create the drawings ahead of time, all I would need is to run the lisp and it would create all the layouts in those dwgs and name them according to the csv.
The csv file contains the drawing names in column A and the layout names in column B. So, what I want to do is create "n" number of layouts in specific dwgs, using the cell data it reads from column A--which are the drawing names, and then rename all those layouts with the cell data from B--note it would not create duplicate (existing) tabs. This way I can re-run it later to add new layouts to the drawings as needed.
The reason is that I work on projects with several hundred layouts--thus the need to create layouts more easily across as many drawings as necessary. Instead of renaming/deleting a ton of layouts; it would be easier to start with a minimal template(s) and have the lisp create the exact number of layouts we need instead of going back and making a ton of edits. Since the csv is created at the beginning of the project, any changes later (adding layouts), can easily be done by running the lisp again.
View 7 Replies
View Related
Jan 24, 2012
I am using a fairly old Lisp to generate section arrows, started using this in 2000 and up until 2011. Since we have installed 2012 the routine does not work correctly, after inserting block with attributes instead of bringing up dialogue box it inserts next line of string in to the dialogue box. I have attached lisp routine and blocks
View 6 Replies
View Related
Nov 14, 2013
I have a list ("temp.dwg" "temp2.dwg") and would like to add the string "insert text here" into each item in the list resulting in ("insert text heretemp.dwg" "insert textheretemp2.dwg"). how would i go about doing that using LISP?
View 2 Replies
View Related
Aug 24, 2011
For some reason I cant get my lisp files to automatically load. im doing the same thing i did in other versions, but i have to constantly tell them to load when i want to use one.
I have them in the search path, i have them set to load with every drawing in options, what am i missing?
View 9 Replies
View Related
May 1, 2013
add a line to the code you wrote so I could use iunembed or detach the old image in the begin of the lisp command. Iunembed command ask what to name tif after it is unembed. Is there a way to detach the old embed image and run the other parts of the command? Keep in mind I change the lisp little bit.
; Attach Drawingname Image [insert] at scale 12
(defun c:AI12 ()
(defun dxf_ (n L) (cdr (assoc n L)) )
(defun dxf (n L) (cdr (assoc n L)) )
[Code].....
View 9 Replies
View Related
Mar 6, 2012
I uploaded a lisp file into AC 2012 and it shows that it uploaded sucessfuly. However when I go to run the routing i get the error message 'error: bad character read (octal): 4'.
View 1 Replies
View Related
Apr 17, 2012
We are trying to update our company logo on hundreds of autocad drawings, lisp routine or a better way to get this update.
View 5 Replies
View Related
Aug 28, 2013
I'm looking for a lisp routine that allow me to select a text object that is rotated to anything other than zero, and it will change the text object to zero rotation and while still in the command allow me to place the text object on the screen.
I have a routine that is similiar called RT180 but it just rotates whatever text object you select 180 degrees from its current rotation, but I can not figure out how to modify it to rotate to zero rotation angle. What I like about RT180 is that you select your text it rotates it on the spot and then lets you pick a spot to place it.
View 3 Replies
View Related
Aug 9, 2013
How to use a LISP file to create Tool Palette?
View 3 Replies
View Related
Apr 23, 2013
I need
(distof "..")
and
(rtos ..)
as a prompt (VB window or command line).
::Basically I need to push button (my custom command with function like: ^C^C_f2d; - fraction to decimal) and invoke the routine to enter fraction or decimal to bring either
15.125" - will be 1'-3 1/8"
or
1'-3-1/8" - will be 15.125"
same as:
Command: (rtos 15.125)
"1'-3 1/8""
and
Command: (distof "1'-3 1/8")
15.125
but instead of typing (...) I want pop-up texbox for input, or just simple input: 3/5" in command line to get 0.6 .
View 3 Replies
View Related
Jun 27, 2012
Simple LISP routine to enable the background mask of a single mtext object using dxf codes?
View 4 Replies
View Related
May 5, 2013
Write an lisp file that would embed a tif image
View 5 Replies
View Related
Sep 5, 2012
I have text with number string. ( eg: weight 50 kg, xyz weight 362 kg)i want to extract the number values of "50" & "362" from the text string.
View 9 Replies
View Related
Feb 24, 2012
I have to list all object data on some 4000 drawings. The drawings have been created in an unkown version of autocad and are electrical in nature. It would be great if a LISP file could be created to extract all of this too individual Excel or text files.
View 1 Replies
View Related
Mar 8, 2012
I am looking for a lisp that can run a block replace on multiple drawings.
Something similar the the express tools block replace I suppose, just able to process many drawings at once.
I'm trying to change attributed approval stamps to attributed inter squad stamps and don't want to have to go through all 150 drawings and do it myself.
View 1 Replies
View Related
Oct 13, 2013
I try to start msaccess in runtime mode, but an .accdr will not start.this is the code try to use, without /runtime in the code the .mdb and .accdb works great
(startapp "C:\Program Files (x86)\Microsoft Office\Office14\MSACCESS.EXE" /runtime path)
View 9 Replies
View Related
Apr 18, 2013
I wrote some LISP programs. I would like to use the output data generated by LISP program in Command arear of AutoCAD. I Heard we can dave the output data into .dat files.
View 9 Replies
View Related
Mar 23, 2012
I need to lay one of our existing blocks ontop of every power outlet on a floorplan (the power outlets are currently shown as a simple shape (eg. either a rectangle, triangle or circle) with text next to it.
There are hundreds of power outlets, so if there is a lisp routine for replacing any part of the power outlet with the block, eg. replacing text/mtext with a block or replacing a pline with a block.
I have found a very successful lisp routine for replacing circles with blocks, but this obviously only works on the power outlets that are shown as circles. So a simpler way of looking at it could be a lisp for drawing a circle around mtext/text then I could simply use the circle to block lisp to place the blocks.
View 5 Replies
View Related
Jul 12, 2012
Is there a lisp that will allow me to do a continuous dimension, but will alternate the dimension position from low, high, low and high? If there is no lisp already created, how to create one?
See Continuous dimension attachment for example.
I work at a glass and glazing company and this is how we dimension mullion width and DLO. See typical window dimensioning attachment for window elevation with dimensions.
View 6 Replies
View Related
Nov 14, 2013
I have a list ("temp.dwg" "temp2.dwg") and would like to add the string "insert text here" into each item in the list resulting in ("insert text heretemp.dwg" "insert textheretemp2.dwg"). how would i go about doing that using LISP?
View 2 Replies
View Related
Oct 11, 2012
I'm trying to write a lisp routine that, when I invoke the mleader command, osmode is set to "nearest" & orthomode is set off. I then would like the original settings to be returned.
attached is what I have written so far:-
View 4 Replies
View Related