AutoCAD 2013 :: Lisp Or ObjectDBX To Perform Batch Purge?

Mar 5, 2013

I often use "purge" for current directory drawings. Any lisp or ObjectDBX to perform batch purge? even i do not need to open the drawings.

View 1 Replies


ADVERTISEMENT

AutoCAD Visual LISP / AutoLISP :: Purge Using ObjectDBX Is Deleting Dimensions

Dec 21, 2012

I'm working up a routine to simplify clearing some space. I've been cruising here and other places piecing together something, but what I have ended up with is a routine that deletes all of the intended information (possibly needing repetition for those hard-to-reach blocks), but also deletes dimensions from the model space.

There are several things our company does which are "non-standard" but we have been at it for a while and I am trying to work with what I was given. Following is the code.

;;; not sure who Jeff M is, but assuming this bit is from him(defun odbx-test (/ dbx_doc) ;; edited 5/28/06 by Jeff M (if (< (setq dbxver (atof (getvar "ACADVER"))) 15.06) (progn (alert "ObjectDBX method not applicablein this AutoCAD version" ) (exit) (princ) (gc) ) (progn (if (= (atoi (getvar "ACADVER")) 15)(progn (if (not (vl-registry-read "HKEY_CLASSES_ROOT\ObjectDBX.AxDbDocument\CLSID" ) ) (startapp "regsvr32.exe" (strcat "/s "" (findfile "axdb15.dll") """)
[code]....

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: ObjectDBX Access To Block Definition

Feb 22, 2013

Can't you access the block definition via ObjectDBX.

(without the dwg file being open)

I am parsing through the blocks to find all the xrefs. 

When I get to an XRef... I don't seem to find a way to check if it's an XRef.

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Move The Selected Object Using ObjectDBX

Aug 7, 2013

Using Nentsel function, I can get info on a object that is nested with an Xref. Is there a way to move the selected object using ObjectDBX?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Bind Xref Via ObjectDBX Without Opening

Feb 11, 2013

is it possible to bind an an xref via ObjectDBX without opening the drawing?

View 1 Replies View Related

AutoCAD 2013 :: Perform Chamfer On A Cylinder?

Nov 2, 2012

How do I perform chamfer on a cylinder?

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Purge On Exit

Jan 10, 2012

I am trying to "purge on exit" when I close a drawing. I have changed the SAVE commands within the CUI to accomplish a purge on save as well as changed the CLOSE commands in the CUI.

What I want to do is modify the red X close option for the actual window or program close X in the top right corner of the screen.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: DGN Purge For 2012

Sep 5, 2013

AutoDesk released the dgnpurge tool a while back but it only applies to 2013 and 2014 and i have 2012. There appears to be a solution dgn purge 2012 on the swamp website, but the attachment is not there and there is some sort of C# code or something beyond my knowledge of autocad.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Delete And Purge Block By Name

Sep 30, 2013

I would like to use a lisp routine to open all the files in a selected folder, search for a blocks by name, delete them, purge the drawing, save and close.

Is there a routing that can be used to do this?

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Civil 3D Purge Styles In Marco

Jul 8, 2013

Is ther a way to purge all civil 3d styles in a macro or lsp. -purgestyles does not seems to work. I have not worked with lsp for a while just getting back into it again. 

I have seen this used for purge (vla-purgeall File) and (vla-AuditInfo File T) for audit can we somethging like this with purgestyles or some how echo off the dialog that comes up. seemslike purgng styles should be just as simple a an audit or purge, but is seem more complex.

View 3 Replies View Related

AutoCAD 2013 :: Purge Layer On Drawing?

Mar 1, 2013

I am trying to purge a layer on a drawing that the company is going to use as a template, but even that the layer is not the current one and without objects I cannot purge-delete the layer.

View 1 Replies View Related

AutoCAD 2013 :: Linetypes That Are Not Being Used Nor Will They Purge From A Drawing

Jan 4, 2013

I'm having a small problem with linetypes that are not being used nor will they purge from a drawing.  I believe that all started with the binding of an xref but now the xref has been removed along with just about everything else other than simple geometry and some text.  The linetypes will not purge. For instance, if I take a standard "new" dwt file that has no problems and copy anything from an "infected" drawing to the dwt, the infectious linetypes will now appear in the dwt.  And when I say anything, I mean anything.  i can draw a new circle/line/point on the "0" layer and copy that new item into the clean dwt and it will take along with it the unwanted linetypes. 

I have seen a similar post about linetypes not purging.  And have tried the wblock solution with now luck.  I have tried recover along with anything else that I could think of.  Again the drawing doesn't have any xrefs and even newly drawn items, when copied, will become infected by the unwanted line types.

Also, the linetypes that are being left behind do have the "$0$" within the name.  But also to mention the only ones being left behind are "powerline" and "phantom",

View 6 Replies View Related

AutoCAD 2013 :: Crashes When Purge Or Recovering Drawing?

Sep 18, 2012

I can not run purge or recover on the attached drawing file or it will crash autocad. When I run audit it says no errors are found. I don't have access to older versions of ACAD to test this on and the file is dated back in 2008 but not sure which version of ACAD it was created in.

This is the only copy of the file. I've opened it and added some linework and saved it as a newer drawing only to have the same results. The attached file is the unaltered version. I have one other file that I'm having the same issue with as well.

View 9 Replies View Related

AutoCAD 2013 :: Cannot Purge Unused Text Styles

Feb 22, 2013

I have a drawing that has hundreds of text styles that do not seem to be used by anything that I cannot purge.  I have even deleted everything in the entire drawing, and it still says that the text styles are in use.  Is there a way to override the purge since I know that the text is not in use.

View 9 Replies View Related

AutoCAD VB :: Objectdbx Blocks Collection

Jun 26, 2013

I an trying to access the complete blocks collection but I'm not having much luck

What I'm doing is changing the style of the block attributes using objectdbx.

I can change all of the model and paperspace block attributes but I can't seem to be able to access the un-inserted blocks in the blocks table.

After running my app all of the "visible" blocks are changed but when I insert a block from the dwg the style has not changed.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Batch Convert DGN To DWG?

Nov 23, 2011

My work needs to convert thousands of DGN files to DWG. We are using AutoCAD 2012. Is it possible to batch convert dgn files with a LISP and a mapping file?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Export To DGN For Use In Batch?

Nov 11, 2011

I am trying to make a lisp to export to dgn for use in a batch. I have tried the following but get hung up at an "invalid path" error. I think I am not passing to -dgnexport a path in the correct format.

(defun c:deport()
(setq fname (getvar "dwgname"))
(setq fpath (getvar "dwgprefix"))
(setq dgnname (vl-string-right-trim "." fname))
(setq dgnnamenew (strcat fname ".dgn"))
(princ dgnpath)
(command "-dgnexport" "V8" dgnnamenew "master" "standard" "C:ProgramDataAutodeskACA 2011enuTemplateAutoCAD
TemplatesV8-Imperial-Seed3D.dgn"))

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Batch Replace Blocks

Feb 22, 2012

We've recently converted all our microstation drawings to autocad now that the company has decided to go with one cad program company wide.

One of the issues we are having after getting the drawings back from the this co. converting them is the cells to blocks convertion inside the drawing. when we open a drawing and see a "Fuse" block for instance and if it a has multiple inserts, it named them:

Fuse
Fuse_1
Fuse_2 etc....

is there a lisp routine or some command that would replace the "Fuse_*" blocks with "Fuse"..I've been searching the forums and know about the express tool Replace Block but need to be able to automate somehow.

I thought about trying to rename each of the "Fuse_*" but of course it won't let you rename to a block name that already exists..

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Routine During Batch Plotting

Jun 17, 2013

I cannot get my lisp routine to run when I batch plot in AutoCAD 2014.  It's loaded into the startup suite and runs when I open the individual drawings but not during a batch plot.  How can I get this to run during a batch plot?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Batch Plotting Isn't Working

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

AutoCad :: Lisp File For Batch Text Style Change?

Jan 7, 2013

we have a folder full of blocks with text style romans, and our new standard text is Arial - any routine where we can 'batch' change a group of cad drawings (blocks) - changing the text to Aerial and the width factor of the text to 0.9?

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Batch Rename All Blocks In Drawing?

Feb 29, 2008

I would like to batch rename all blocks in a drawing to NEWJOB01, NEWJOB02 ,etc. I can't use wildcards with RENAME command because the old names don't always have a common name. I prefer to use a lisp routine.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Batch Plotting Lots Of DSD Files

Apr 26, 2012

Is there any way for me to choose a bunch of .dsd files, and have those be batch plotted?At the moment I have to publish one .dsd file at a time, and each .dsd file can take about 10 minutes to go through all the layouts I have.

Does Autocad have that capability built in? Or is this a problem that can be solved with scripts?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Batch Block Attributes Inputs

May 9, 2013

I have 40 pages in one set of drawings and would like to rev-up the drawings. i will put same texts in same locations in the title blocks.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Batch Rename Using Attribute From Title Block

Oct 22, 2009

I am working on a large project where a 3rd Party firm has turned over 100s of drawings that we need to get into our system. The problem is that they did not name their physical files properly. We have a particular numbering system for our drawings, the engineering firm did fill in our attributed title block properly and used our numbering system correctly within the drawing. However, their physical file name follows their format. We need to have the physical file name match the information in the title block to get into our system.

Is there a way to "Batch Rename" these files by reaching into the title block and then renaming the physical file to match the attribute?

I have to be honest, I may use AutoCAD 50 to 60 hours per week, but I am no programmer! I am just the go-to person here for AutoCAD whom is stuck trying to come up with a efficient solution for the project team whose engineering firm could not follow our procedures! I was hoping some sort of batch routine could take care of this problem for us instead of us having to individually rename each physical file one by one.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Running A Batch File - Automated Process?

Aug 15, 2012

I have a batch program which I want to launch from a LISP program.

First this is an attempt at an automated process whereby user input is extremely restricted. Other than the first click of the mouse on the menu item to save a copy of the file to a very restricted folder, no other user input is allowed.

AutoCAD, like most commercial apps writes a temporary file and then renames it when you choose save or saveas. And due to the restrictions in this folder that will not work. Crazy, I know but it's the parameters I must work within.

The batch file I'm launching calls another batch program in it's execution and I'm wondering if that could be where control is lost. But the thing is I can type this at the command line in AutoCAD:

(startapp "//a_very_long/novell_server_path/my_folder/vlisp/mybatchfile.bat")
 
The whole process works great. The command window flashes briefly AutoCAD closes the active drawing window just like I want it to. And when I check that the dwg file has been copied to the restricted folder it's there and done. But when I place that same command within my LISP program or one like this:

(command "._STARTAPP" "CMD //a_very_long/novell_server_path/my_folder/vlisp/mybatchfile.bat")or(command "._STARTAPP" "CMD ""//a_very_long/novell_server_path/my_folder/vlisp/mybatchfile.bat"")
 
or just about anything else I try it fails to run. Perhaps I've been looking at this problem too long. I think I may move on to a VB.NET process to do this but I am really baffled why it will run from the command line but not within the program.

View 4 Replies View Related

3ds Max :: ObjectDBX Has Reported A Fatal Error

Apr 23, 2012

I've loaded Max 2013 onto a render node. When I run backburner it starts to Launch 3ds Max 2013 the give me a DBXHost message ObjectDBX has reported a fatal error. Unable to load AcDB resource file.

The machine is running XP 64 with 8 gigs of Ram

View 4 Replies View Related

AutoCAD 2013 :: DWG To DGN Batch Convert

Aug 7, 2013

I have around 100 dwg files, client wants the soft copy in dgn format, also layers needs to be renamed in dgn.

I need to convert those files to dgn, any script to run so it does it automatically?

Converting it manually one by one will take me some time.

View 3 Replies View Related

AutoCAD 2013 :: Batch Plot To PDF?

Aug 28, 2013

Not sure if I am supposed to specify the PDF printer in the Page Setup or the upper left of the batch plot dialog box.

Also, why is it that every time I open batch plot it loads all the current layout tabs in the drawing (which I dont care about).  How do i open batch plot and specify my sheet list and not have to "replace all sheets"/

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Batch Update Layer State In All Viewports Across Multiple Files

Nov 8, 2013

I'm creating a drawing set that has over 100 sheets with varying amounts of viewports on each sheet (from one to four). Each sheet is its own file, so there is only one layout per file. For each section of the drawing set, the viewports will have the same layer state.

Is there were a way to update the layerstate of each viewport through a batch LISP routine? This would save me DAYS in opening each file, importing the layer state, and restoring it for each viewport. It seems straight forward, but I have no idea where to start with batch routines.

View 4 Replies View Related

AutoCAD 2013 :: How To Batch Convert CCM Files To DWG

Aug 8, 2012

How to batch convert .ccm files to dwg?  I believe they are called CopyCad Model files.

View 1 Replies View Related







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