AutoCAD 2010 :: LISP File To LIST All OBJECTS On A Drawing?

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


ADVERTISEMENT

AutoCAD Visual LISP / AutoLISP :: Exporting List Of Objects

Jan 6, 2012

How to export to a txt file a list containg all the objects on the current layer and their properties?

To be precise, I would like to export the following items from a selection of plines:

- ObjectID;
- Start Point;
- End Point;
- Vertex Points;
- Width.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: List Of Drawings From One Drawing To Next

Dec 5, 2012

I have the following string of code, that I'll write in everyone's start-up suite. I'm able to retrieve a list of files I want to modify, for whatever reason.  (One example, when plotting drawings with layouts, sometimes the shadeplot setting is wireframe, and not classic hidden, though it's been set up in our templates).

The huge question is, can I get a list of drawings to a variable in one drawing, and have access to that variable list, in the next drawing I open?  I'll iron out the bugs on read-only statuses, or manipulating drawing states later.

(defun GetDrawings ()
(setq currentpath (getvar "dwgprefix"))
(command "pspace")
(setq DrawingList (dos_getfilem "Select a file" currentpath "Drawing files (*.dwg)|*.dwg|All files (*.*)|*.*||"))
(setq ListOfDrawings (cdr DrawingList))
(setq DrawingPath (nth 0 DrawingList))
[code]...

View 1 Replies View Related

AutoCAD 2010 :: Using Lisp To Add A String To Each Item In List?

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

AutoCAD Visual LISP / AutoLISP :: Drawing Name Set Equal To Number From Provided List?

Nov 25, 2013

I have the need to make the current open dwg (name) equal to its predefined number in a large list. For example, building66.dwg is equal to 123789. I’ll have a large list in a tab delimited txt file with the example below. I can put the list in the lsp file if needed. Something like (if (getvar "dwgname") make equal to listname) and go out to the list and return its number. Seems kind of easy but I can’t make it happen. 

building66.dwg 123789
building12.dwg 333789
building94.dwg 345789

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Return A List Of Strings Of Layout Tabs In Drawing

Mar 6, 2013

(layoutlist) ... returns a list of strings of the layout tabs in the drawing.I've used this ages... Isn't it a core lisp function, or is it coming from express tools or somewhere else?

View 5 Replies View Related

AutoCAD 2010 :: Auto Update List Of Xrefs In Drawing?

May 3, 2012

I have been trying to get a list of xrefs contained within a drawing to auto update by using Rtext.

I have got as far as using the following diesel expression.

Xref's in this file are indicated as - Xref name [Filepath]

$(Xrefs,3,)
$(Images,3,Images in this file: )

This gives me more or less what I want but I dont want to show the file path. What changes to the expression I need to do to achieve this.

View 2 Replies View Related

AutoCAD 2010 :: Sheet List - Drawing Revision Number

Jan 20, 2011

I am using the sheet list table to generate a table of contents. I add the "Drawing Revision Number" column to the table, but when it generates the list it does not include the field.

Is there any way to add the "Sheet Revision Number" instead since this is what property is actually adjusted in the sheet's properties? (i never change the "Drawing Revision Number")

OR is the solution to change the "Drawing Revision Number"? Where do I change this property at? Is this property applied to all sheets within a drawing?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: File Name In A List

Aug 26, 2012

I have a list like ("a.dwg" "b.dwg" "c.dwg") and an filename "b.dwg"

I want to know if the file name is a part of the list. which function must be used for this?

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Delete All OLE Objects From Drawing

Nov 26, 2012

how to delete all OLE objects from drawing by most efficient way.

There are abt 150 drawings, each has from 2 to 20 or so OLE objects which need to be deleted. OLE objects are on many paper spaces.

I tried to use qselect but it selects only what is in current space.

Would need some lisp or some other methode than all can be deleted (excluding those which resides in blocks).

Tried also yto use ssx and then erase but still it deletes only what is on current space.

Just as additional info, those OLE are all pictures, not xls files for example.

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Text File With A List Of Image Tile Names

Jun 12, 2013

I have a text file with a list of image tile names with their bottom left hand easting and northing see attached. I have a lisp that asks for the name of the image then should  insert the image at its coordinate with a predefined scale and rotation but it isn't working so I would like an alternative method to test.

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: List Command Dumping To Text File Locally

Oct 31, 2013

Need a lisp that could dump the values of a list command in a text file placed in a folder C:user121list.txt.

View 9 Replies View Related

AutoCAD 2010 :: One Or More Objects In This Drawing Cannot Be Saved To Specified Format

Nov 16, 2011

In 2011 every so often I get this error "One or more objects in this drawing cannot be saved to the specified format. The operation was not completed and no file was created." This happens and I just go and click file or regen and sometimes it just saves the file other times it does not.

View 9 Replies View Related

AutoCAD 2010 :: Inserting PDF Into Drawing To Trace Over The Objects

Oct 12, 2011

I am using AutoCAD 2012.   When I use Paste Special to insert and object as an Image Entity AutoCAD shuts down. I used it for years on older versions of AutoCAD with no problems.  It is good to use when inserting a PDF into a drawing to trace over the objects for CAD use.

View 4 Replies View Related

AutoCAD 2010 :: One Or More Objects In Drawing Cannot Be Saved To Specified Format

Jan 29, 2013

Users: Windows 7, AutoCad 2011 update 2 applied

Windows Server 2008 r2

Data stored on a network share

Network licenses on a separate server

My problem started when we moved all of the users data to a new Windows 2008 r2 server.  Searching and file navigation was slow so we turned on Windows Search service.  Greatly improved network searches (users do content as well as file name searches).

Then Autocad started having errors when trying to save or create dwf files.  The error "One or more objects in the drawing cannot be saved to the specified format.   The operation was not completed and no file was created."  Users can save the drawing to the local drive without the error.

View 6 Replies View Related

AutoCAD 2010 :: Using Database Function To Report Objects Within A Drawing

Jan 1, 2012

My master drawing includes things like network information, drops, V-lans  and bandwidths,

I want to use a database to count various objects/blocks in a drawing. Ideally I want to write a macro button that enables me to export the information in the drawing straight into a database.

View 3 Replies View Related

AutoCAD 2010 :: How To Globally Change CELTSCALE Of All Objects In Drawing

Feb 3, 2011

How can I globally change the CELTSCALE of all objects in my drawing?  Using PROPERTIES, I can change one element at a time, but when I choose multiple objects in the drawing at the same time, PROPERTIES does not allow me to change their CELTSCALE to (say) "1".  Also, this doesn't appear to be possible using the CHANGE (Properties option) command either.  The latter only allows the LTSCALE to be changed (not CELTSCALE).

View 9 Replies View Related

AutoCAD 2010 :: Exporting Coordinate List From Imported SHP File

Jul 31, 2012

It strikes me that there should be an easy way to do this, but it eludes me at the moment.  I've used "Connect to Data" to attach a .shp file export from another software, specifically a Windmill computer model.  The geometry and data comes through, but the table contains no coordinates, which is what my vendor wants.    The drawing overlay's georeference info very closely (within our tolerances) and the Coordinate System is set. 

How to suck that coordinate info off the drawing without spending a week clicking on each of 8600 points and typing LIST?

View 5 Replies View Related

AutoCAD 2010 :: Recent File List In Task Bar Icon?

Oct 2, 2013

The "recent" file list when I right-click the AutoCAD icon in my task bar only lists .dxf files. No .dwg files show up.  Is there any way for me to change this so that my recent .dwg files will be listed?

View 7 Replies View Related

AutoCAD 2010 :: Getting CTB File From 2007 To Show In List In 2011?

Jul 17, 2013

Having no success in getting my .ctb file from 2007 to show in list in 2011. Is it compatible or will I have to re-write?

View 2 Replies View Related

AutoCad :: DWG File Properties To Excel Or Access To Create Drawing List / Register

Jun 3, 2011

I am looking for a way to use the .dwg file properties of a drawing to generate an updateable drawing list/register. One that will update automatically as the file properties are updated. I have already created a title block that uses text fields to display custom properties of the file on my title block, such as the job no., drawing no. etc.

I have searched the web for answers, came across this site, joined and searched through it... There are a number of threads that 'sorta' deal with my needs but alway tend to digress more towards the "poster's" needs and away from mine. I noticed that they all talk about Lisp Routines and I have no knowledge of using them. Is that the only way to go or can I use another route? Another one was the Sheet Set Manager but I don't think that this is exactly what I am looking for...

View 1 Replies View Related

AutoCAD 2010 :: Moving Existing Drawing Objects To Snap Grid?

Dec 22, 2012

I have a slightly unusual query that I can't seem to find a solution for elsewhere. I have an existing OS plan that is 'off grid', and would like to adjust the vertices at the ends of all the existing lines and polylines so that they all sit on a grid point. Is there a quick command or script that does this?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Add List To A List

Jul 15, 2013

I have a list -

(setq List1 (list "Line A" "Line B" "Line C"))

I would like to add each item in an existing list to a new list -

(setq ListNew (list "This is some text" "This is more text"

the following is the part I can't figure out - it just adds the list to the list, not the individual items

(mapcar '(lambda (x) x) List1)))

I am looking for ListNew to be - (a list with 5 strings)

"This is some text"

"This is more text"

"Line A"

"Line B"

"Line C"

View 9 Replies View Related

AutoCAD 2010 :: Publishing DSD File Message / Model Tab Included In Published List

Mar 30, 2009

If I open a drawing created in 2009 and try to publish it in 2010, DSD file message pops saying about unsaved changes (see attached). Since I don't use sheet sets, I do not have any use for DSD file. Is there a way to disable it?

In 2009 it was simple not to include model tab while publishing. Where is this option in 2010? I don't want to remove model tab from the list every time I publish drawings.

View 3 Replies View Related

AutoCAD 2010 :: Preventing PDF Viewer To Open Drawing File When Plotting To PDF File?

Mar 9, 2012

As an engineering company we have started to convert hundreds of our drawings from AutoCAD to PDF using a batch utility.

However every file that is converted into a PDF file is opened by a PDF Viewer. We want to prevent this.

I opened my *.pc3 file and removed the check from the appropriate box. See below

I press OK, then save the file and close. However when I reopen the file, I see the box for Openining in PDF Viewer has been rechecked. No matter what I do, I cannot permanently remove the check from this box.

View 5 Replies View Related

AutoCAD 2010 :: Invisible Objects In File

Aug 9, 2009

I work on DWG importer and every now and then I come across some files which behave strange. To take as an example, I am working on a file reported to be having unwanted entities when loaded through our importer. This file when loaded in AutoCAD shows proxy entity and nothing else. When I do "zoom to extents" and select the visible entities by selection window, it shows

Select objects: Specify opposite corner: 5767 found, 1988 groups

Now if I do the selection and say "select: all" instead of using selection window it shows:

Select objects: all
5805 found
9 were on a locked layer.
2 were not in current space.

So apparently there are 38 (5805 - 5767) objects which are either invisible or ignored by AutoCAD when I do "zoom to extents".

1. Is there any way in AutoCAD to make all the objects visible?
2. Why "Zoom to Extents" must be ignoring these objects?
3. What is the meaning of "2 were not in current space."? Does that mean, that the drawing file is simultaneously referring to two Coordinate Systems?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Add String To Each Item In List Using Lisp

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

AutoCAD .NET :: How To Create Collection Of Xref Objects Into New Drawing File

Oct 12, 2012

idsObjEntity-->collection of xref objects
private void CloneObjectIds(ObjectIdCollection idsObjEntity, String strFileName)
{
try
{
Database dbNew = new Database(true, false);
Autodesk.AutoCAD.DatabaseServices.TransactionManager tm = dbNew.TransactionManager;
[code].........                 

here i take the object id collection as xref filter by its layer name.i tried to clone the object in new dwg its shows Wrong database.

View 1 Replies View Related

AutoCAD 2010 :: How To Save DWG File Using Lisp

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

AutoCAD 2010 :: LISP To Create Layouts Using CSV File?

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

AutoCAD 2010 :: Edit Lisp File For New Functions

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







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