AutoCAD Civil 3D :: Lisp Routine To Read From Directory Which Has Multiple Folders?

Jul 10, 2012

Having trouble with my lisp routine to read from a directory which includes several folders.  There is no problem when the files are all mixed in the directory but when dealing with hundreds of files, it makes sense to organize files by types.

Using (ade_aliasadd "BASE" "S:\") and there is no problems when the files are actually there and not in a subfolder called APN_DWG or EAS_DWG.  Should I be setting up the environment differently and if so how?

View 1 Replies


ADVERTISEMENT

AutoCAD 2013 :: Lisp Routine For Multiple Layout Tabs?

Nov 25, 2013

LISP routine that can create multiple paper space layout tabs and can name them incrementally.

View 4 Replies View Related

AutoCAD Dynamic Blocks :: Multiple Visibility Lisp Routine

Jan 23, 2012

Could the users of this Lisp post the several Versions here for others to find?

I have come across a few in the AUGI Dynamic Block Forum who would like to make use of the Lisp but may be running into Version problems.

View 5 Replies View Related

AutoCAD Architecture :: Way To Make LISP Routine That Will Create multiple Dimstyles

Feb 13, 2012

I'm looking for a way to make a LISP routine that will create multiple dimstyles.I'm having difficulties creating annotative dimstyles.I would like to use the variable 'dimanno'. However, 'dimanno' is 'read only'.

How should/could I go about creating a LISP routine that will create annotative dimstyles.

View 1 Replies View Related

AutoCad :: 2014 Lisp Routine To Change Multiple Layers Stripping Out Prefix

Jan 5, 2014

I have a user who crashed and all the layers were renamed with the prefix to:

9669-pbase|

He needs to strip out all the "9669-pbase|" prefixes in 1,000 layers. Is there a way to do this?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Routine That Opens Multiple Script Files

Aug 9, 2013

Is there a way to have a Lisp Routine open multiple script files?

I have 10 types of scripts, that are specific to the type of file they open (as shown below). which simply open a file, purge/audit, save and close.

open "Q:PROJECTS321700Field ManagementCoordinationElectricalSleeving613321700_ES-613-Lev01.dwg"audit y-purge all * n-purge R * naudit yqsavecloseopen "Q:PROJECTS321700Field ManagementCoordinationElectricalSleeving613321700_ES-613-Lev02.dwg"audit y-purge all * n-purge R * naudit yqsaveclose The file above was named ES-613.

I would like to create a Lisp Routine that opens this script, *Some how closes the file*, and then opens another script. 

For example:(defun c:Audit-Purge ()(command ".SCRIPT" "O:/Users/Kurt N/Script/Novartis/NovartisPURGE/ES-615.scr")(PROMPT "ES-615 Done.")(princ)(command ".SCRIPT" "O:/Users/Kurt N/Script/Novartis/NovartisPURGE/ES-613.scr")(PROMPT "ES-613 Done.")(princ)ECT>>....)

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Routine For Modifying Object Properties In Multiple Blocks?

Dec 27, 2013

I have a CAD file with a couple hundred detail blocks in it, and I am trying to standardize them without haing to block edit each detail block.

What i am trying to do in each block is as follows:

- Explode all dimensions, leaders, and blocks

- Change all objects to layer "0"

- Change all lineweights to default

- Change all object on colors 7 and bylayer to byblock

- Change all text and mtext to arial font

- Delete all points

Civil 3D x64 2012
Win 7 x64 Ultimate
I7 3820 (3.6ghz quad core with HT)
32gig RAM (Corsair XMS3 4x8g)
Intel x z79 mobo (BOXDX79TO 2011 socket)
Radeon HD 7850 2gb GDDR5

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Routine For Multiple Paper Space Layout Tabs

Nov 25, 2013

Any LISP routine that can create multiple paper space layout tabs and can name them incrementally. I have a template and I wanted to copy tab2 of my layout multiple times and name them incrementally. I have a code shown below that comes close to what I need it to do but it creates a "New Layout" instead of copying the tab I need it to. Please see code below:

(vl-load-com)(defun c:LAYOUT+ (/ *error* prefix i n acDoc oLayouts layoutName) (defun *error* (msg) (if acDoc (vla-endundomark acDoc) ) (cond ((not msg)) ; Normal exit ((member msg '("Function cancelled" "quit / exit abort"))) ; <esc> or (quit) ((princ (strcat "
** Error: " msg " ** "))) ; Fatal error, display it ) (princ) ) (if (and (setq prefix (getstring "
Enter layout name prefix: "))

[Code] ......

View 7 Replies View Related

AutoCAD Civil 3D :: Remove Phantom Parcels Lisp Routine

Apr 3, 2013

Any lisp routine that will remove "phantom parcels" in a drawing?  They are the parcels many topics on this discussion forum have topics on, that can be selected but can't be deleted by any simple means.

The drawing is relatively new...with minimal objects in it. Just some Feature Lines and 3D Polylines.  I have Sites in my drawing...but no parcels. Only thing in the sites are the feature lines.  When I do a Q SELECT for the parcels it selects and highlights my feature lines, which is weird.

View 5 Replies View Related

AutoCAD Civil 3D :: LISP Routine For Matching Point Properties

Nov 17, 2013

I'm trying to make a LISP routine that will match point style, label style, marker rotation, label rotation and layer for a selected point to multiple other points. I don't know what the exact variable names are or how to find them.

See the post below for code that is similar too what I'm looking for.

[URL]......

View 2 Replies View Related

AutoCAD Civil 3D :: Lisp / Net Routine For Converting 3D Polylines To 3D Faces

Apr 2, 2013

Any program or routine in lisp or net that can select a group of 3d polylines in the form of a tin and convert them all to 3d faces?

I know that I can take the 3d polylines and explode them to 3d lines.   Then I can use map clean to delete the duplicate lines.   Then I can create a C3D surface using the 3d lines.   Then I can extract 3d faces from the surface.  

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Read From Multiple External Files?

Sep 13, 2012

Is it possible to loop through multiple files in a directory?

Like this: (setq file (open "..\TOPO QUADS\*.jgw" "r"))
 
Windows 7 x 64 Professional
Nvidia Quadro 4000
8 GB Ram
i5 2500 @ 3.30 GHz
Civil 3D 2012 SP 2
Civil 3D 2013 SP 1

View 9 Replies View Related

AutoCAD Civil 3D :: Using Lisp To Do Drawing Cleanup - Adding DPF File To Routine

Jun 18, 2012

i've been trying to write a lisp shortcut for drawing cleanup but it keeps asking me for a profile name to load and i cant figure out how to add my .DPF file to my routine.

View 1 Replies View Related

AutoCAD Civil 3D :: Option Or Lisp Routine To Create 3d Boundary From Closed 3D Polylines?

Jun 18, 2013

is there an option or a lisp routine to create a 3d boundary from closed 3d polylines?

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Updating Thousands Of Blocks In Multiple Sub Folders

Feb 4, 2013

I have to update a block in literally thousands of cad files. I have the book "AutoCAD Secrets Every User Should Know About" and the author gives examples of this by using a Batch File, Script File, and then Lisp Routine. Any easier way to do the following:

Insert "Gennnotes=" (updating the block) into any drawing that has this block in the drawing already, if not Quit.

Typically to do this I would open the drawing "insert" "gennotes=", then cancel the command and save the drawing. I have a lot of subfolders that also hold drawings so the command would have to search through each subfolder for dwgs.

Like I mentioned above, I tried to use the Batch File/Script Method but my batch file failed. It could find the folder Autocad 2012 - English. For some reason it was not seeing the spaces in between. Not sure. Here's the batch file portion of the routine:

Batch file:

For /r C:Sybex %%f in (c:sybex*.dwg) do start /wait
C:ACAD2012Autocad 2012 - Englishacad.exe "%%f" /b
C:gennotesupdate.scr

View 4 Replies View Related

AutoCAD Civil 3D :: Shortcut / Routine Required To Create Multiple Surface Intersections At Once

Jul 2, 2012

I am doing bulk earthworks with C3D 2013 and quite often I am modeling large dam walls with multiple raises, core sections, filter layers, etc so I end up with up to 50 surface models in one drawing. The process I follow involves modeling each raise of the wall by targeting an elevation 10 metres or so below NSL. I then use a volume surface to give me the intersecting boundary between the topography surface and the wall raise surface. I repeat this process for each raise/core/filter section - create volume surface to find intersection, extract boundary of intersecting volume surface, add boundary to wall raise surface, put both on a unique layer calculate volume - repeat for next wall raise - ad nauseum.

To speed things up a previous draftsperson created a shortcut button on the ribbon that does the volume surface trick with one click so all i need to do is hit the button, select topo, select wall raise and it gives me the volume surface between the two, all i need to do is extract the border and add it as an outer boundary to the wall raise. I would like to take this to the next level if possible and this is where I an stuck.

If my drawing consisted of a topography surface and "X" number of wall raise surfaces all named in a uniform fashion ascending numerically or alphabetically would it be possible to write a routine/shortcut button that did the following;

1.) Create a volume surface between topo & wall surface 1 - extract border as polyline - add polyline as outer     boundary to wall surface 1 - move both wall surface 1 and newly created boundary polyline to unique layer.

2.) Repeat process for topo and wall surface 2

3.) Repeat process for topo and wall surface 3

.....and so on until all wall surfaces have had volume surfaces created between them and the topo?

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Read Lines From A File And Save To Multiple Lists?

Jul 22, 2013

I am writing a program to grab a bunch of layers from a list, check a drawing to see if the layers are on the list, and if not save to an external file. I have the second part of the program done, but I can't get the first part to work.

I am trying to open a file read the contents and save it to a list.

Here is the code I have so far, but it doesn't even get into the foreach statement.
 
(setq layerslist (list '"0list" '"detaillist" '"clearancelist" '"clearanceelist" '"doorsdrawerslist" '"hiddenlist" '"hiddenelist" '"deletelist"))(setq count 0)(foreach thislayer layerslist (setq f (open (strcat "C:\filterlists\" thislayer ".txt") "r")) (while (/= (setq text (read-line f)) nil) (setq (read thislayer) (cond ( (= 0 count) (cons (cons 8 text) (read thislayer)))( (append (read thislayer) (list (cons 8 text))) ) );cond );setq (setq count (+ count 1)) );while (close f) );foreach
 
I've also attached one of the text files. Im doing something in the wrong order, or I have something inside the wrong set of parenthesis.

View 2 Replies View Related

AutoCad :: Plotting DWG File When It Is Deeper Than 5 Folders In Directory?

Sep 12, 2012

Having trouble plotting a dwg file when it is deeper than 5 folders in a directory. I was given instructions a few years ago on how to correct this, but unfortunately lost/forgot them. We just upgraded to ACAD Mechanical 2012, and I need to modify this setting again...it was something simple, I just can't remember.

View 2 Replies View Related

AutoCAD Civil 3D :: Having Multiple Working Folders In Data Shortcuts?

Mar 29, 2012

I am running Civil3D 2011 on Windows 64 machine and am wondering how I go about setting up multiple working folders when using data shortcuts.  I have two different projects I am working on, for which I set up surface data shortcuts, but the 2nd one I set up over-wrote the 1st folder and so now that surface is not properly shortcutted into that project. how to set this up, for I am new to the whole shortcutting game?

Civil 3D 2013 SP2 | Win 7 64-bit SP1
Intel Core i5-2500 @ 3.30GHz, 8GB Ram | ATI Radeon HD 5450

View 1 Replies View Related

AutoCAD Civil 3D :: Lisp Routine For Thawing Layers Then Freezing Specific Layers

Dec 31, 2013

I would like to know how to write a routine to thaw all layers in current drawing and multiple xrefs; then freeze all, then thaw only certain layers globally for a drawing that is open.  Such as a dimension plan will thaw only *-BLDG, *-DIMS, *-RD-*, *BNDRY.

I would like to create one that will fit every project which has a different xref name.

View 2 Replies View Related

AutoCAD Civil 3D :: Offset Lisp Routine To Offset Selected Line?

Jun 7, 2013

I need an offset lisp routine to offset a selected line a set distance on each side of the selected line and change the layer of the offset lines to the current layer, and then keep prompting me to select the next line for offsetting until I'm finished.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Write A Lisp Routine That Invoke The Mleader Command

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

CorelDRAW Graphics Suite X4 :: VBA - GMS Directory Is Read Only

Apr 8, 2012

I'm writing my first VBA apps in Corel Draw X5.  I want to modify the standard FileCOnverter .GMS file that came with X5.  Every time I try and save changes I'm advised that the file is Read Only.  I've also copied the original .GMS file, but I get the same error messages on the new file.

Next I tried to create a new .GMS file by creating a .TXT file and renaming the extension to a .GMS folder (as all of the user guides explain to do).  Once again the VBA editer will not allow me to make changes within the file, although it did allow me to create a Macro.

I'm also interested if I can have the .GMS files in a directory other than the Corel Draw GMS directory.  It is bad programming practice to save data files in a Program File directory.

View 3 Replies View Related

AutoCAD 2010 :: Lisp Routine And Keep Getting NIL

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

AutoCAD 2010 :: Way To Put Mleader Into LISP Routine

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

AutoCAD Map 3D :: Lisp Routine Not Working In Version 11?

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

AutoCad 3D :: Lisp Routine To Flip All Faces?

Nov 24, 2011

We have just finished modelling hundreds of pits/manholes in 3d, to import into 12d as required by our current project.

After importing into 12d we have realised that all the faces are back to front as the dark edges are facing outwards, and the light edges are facing inwards on the pits.

Is there a way to globally flip, or perhaps a lisp routine to flip all the faces?

View 0 Replies View Related

AutoCAD Visual LISP / AutoLISP :: VLIDE Starting Directory

Jun 3, 2013

Say you launch AutoCAD, then run VLIDE.Then from inside the VLIDE, you go File>Open.....it seems to default to a different, random directory every time. I know there has to be some logic to it, and I want to set the default location, so I do not have to browse every time.

Years ago, I seem to remember how to set this starting directory, I just can't find that now.

View 8 Replies View Related

AutoCAD Map 3D :: Printing Multiple A Size Drawing Using Folder Directory

Mar 31, 2011

Is there a way to sent print to a selected printer by choosing multiple dwg files thru Folder directory without opening autocad? For example if I want to print 12.dwg, 13.dwg, 14.dwg and 15.dwg by just choosing these dwg files on my directory.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Stuck In A Routine 2?

Nov 21, 2013

Basically, the routine asks for the user to choose the hatch type (Retirer/Percer), then the layer (Defpoints/Select/Current) and finaly the type of the object to draw (Polyline/Rectangle). My original routine has also a Circle and a Boundary options, and an Error trap to reset the variables but I will keep it simple for the purpose of my issue. 

So, my issue is: when I choose the type of object to draw, it draws just one of it and the routine ends. I would like to have something that "says" to the routine that I want to keep drawing that object (Polyline or Rectangle) and putting the hacth inside until I do enter and then the routine goes to its end.

View 9 Replies View Related

AutoCad :: Lisp Routine For Creating Item Balls?

Aug 29, 2012

Lisp routine for creating item balls with an arrowhead and a one to two digit number in the balloon?

View 7 Replies View Related







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