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


ADVERTISEMENT

AutoCAD Civil 3D :: Using Lisp To Do A Drawing Cleanup?

Jun 18, 2012

i've been trying to write a lisp shortcut for drawing cleanup but it keeps asking me for a file path and i cant figure out how to add my file path to the lisp.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Routine That Will Convert All Mleaders Within A Drawing File To Qleaders

Dec 18, 2013

I am looking for a Lisp routine that will convert all Mleaders within a drawing file to Qleaders.

AutoCAD 2013

Reason: The Mleaders are causing issues with the viewing software that we have to use with our drawing management program.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Reload Routine For Every Drawing

Oct 16, 2013

I recently upgrading to ACA 2014. I have set my trusted locations, my file path, the startup suite, and the system variable to load acad.lisp on startup. Most of my lisp routines load, but not all. I still have my ACA 2011 loaded, all settings are applied as required, yet I do not have the same issue with the same lisp routines. I have to reload my lisp routines for every drawing.

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Routine To Activate Alert Window Based On Drawing Timer

Jun 19, 2012

I was interested in finding out if it's possible to write a LISP routine that would execute a pop-up dialog box say every 30 minutes.  This is strictly for ergonomic reasons to remind the user to take a pre-determined break.

I am not an expert code writer by any means, but I imagine the routine would autoload and resetting the timer to 0 upon opening a particular drawing file.  The LISP routine would then run in the background and run the (alert "") command when the timer reaches 30m 0s.  When the user presses the OK button, the timer resets to 0 again.

View 9 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 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 View Related

AutoCAD Visual LISP / AutoLISP :: Selecting File Location In Routine

Oct 19, 2011

I wrote this small program to automate plotting a drawing to pdf. Everything work fine except I cannot figure out how to allow it to let me pick where I want the file created and what I want to call it. In this routine, the "" at the 3rd from the end place will just automatically name the file and put it in the parent folder. If I replace the "" with pause, it lets me change the name, but will not let me choose the location.

What I'm looking for is for a dialogue box to pop up (explorer style) that will let me choose a location and name the file. This is what happens if you do it "long hand" inside ACAD, how to do it in the code.

(defun C:clpdf ()
(setvar "cmdecho" 0)
(setvar "osmode" 0)

[Code]....

View 3 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 :: Setting Support File Search Paths In Routine?

Nov 8, 2013

I have a simple lisp routine that loads everytime one of my users opens a new drawing, It sets the printer paths, sets the template paths and sets a bunch of environment variables

One thing I would like to add to this lisp routine is the ability to add support file search paths.

Is there a simple setenv variable for this? or is it more complicated?

View 2 Replies View Related

AutoCAD Civil 3D :: Converting All Single Line Text In Existing Drawing Routine

Apr 1, 2012

Any way to convert all of the single line text in exisitng drawings to multiline text without having to do them individually in Civil3d.

View 2 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 :: Block Insertion Routine Based On Block File Name

Apr 5, 2013

Create a routine that looks for a block based on a portion of that block name, using a specified path or search path. 

For example, block to search for is BLOCKABC123, so if someone inputs ABC or 123 as a block name, it will locate that block within that folder and inserts it into the drawing at a user specified location.

Ideally, if there is a check in that if it finds more than one match, then perhaps it flags or prompts you to choose 1, 2, or 3 option which block to use.  But I can live without this special function if it requires too much time to code.

View 8 Replies View Related

AutoCAD Civil 3D :: File Size Gets Bigger After Audit And Purge Routine

Nov 5, 2012

This issue begins when I use the "aectoacad"-command.

The file that I get is rather small. Saving the same file after using audit and -purge commands will make it larger, I don't get it.

I've seen a hotfix but I already have the latest update: [URL]
 
AutoCad 2011 & Civil3D 2011. Product Version 3.
EliteBook 8560w
Intel i7 CPU 2820QM @ 2.3GHz
8 GB RAM
NVIDIA Quadro 1000M
Windows 7 Enterprise 32 Bit

View 4 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

AutoCAD Visual LISP / AutoLISP :: Adding Standard Drawing Sheets?

Dec 27, 2013

I've created a couple of programs:

One - that will start a new project file, add our standard drawing sheets

two - Insert a bunch of wblocked components based on user input

programs 3 - 6 all do the same as program 2, just different components for different sheets.

I can run all these programs and they work  (i need to do a lot of "clean-up" but they work)...

I have them set-up to open the next drawing.But i have to type in the next command, and continue until all my programs and done running.

My questions is how can I accomplish this without having to continually type in commands?I can't run these as a script, but is there another method?

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Adding Variable To Existing File

Oct 4, 2012

I have attached 2 lisp files. datblkx5 makes a block of selection, inserts the block with a 5x distortion, explodes it, and corrects the text for width factor and text height. This one works fine.

I wanted to add the feature of scaling my selection with a user input value. This is the lisp datblkxxx. This one doesn't work. (that is it doesn't correct the text for width factor). I can't figure it out.

View 3 Replies View Related

AutoCAD Civil 3D :: Adding New Text In Drawing

Jun 28, 2013

I have recently run across an odd issue when adding text to a drawing in Civil 3D.  The problem comes with creating a new text item in an existing drawing.  In this drawing, if I insert a text object, Civil freezes up for several minutes.  Once it is un-frozen, the text pops up as it should and everything works as normal.  This happens for both single line and multi line text, with any of my text styles, and across all layers that I have tried.  Other regular drawing objects do not cause any problems, and there are also no problems editing any existing text objects.  

To troubleshoot, I have created new drawings and added text, but they do not have problems.  I have also opened other existing drawings, but no problems with those either.  I am worried that the drawing file may be corrupted, but audits and recovers don't show ay errors, and I have purged out everything not in use.

The strangest part is that if I open the same drawing in Map 3D, I have the same text insertion problems, but when I open it in plain CAD or in Raster Design, the text will insert with no problems.  

View 3 Replies View Related

AutoCAD Inventor :: Adding Image To Drawing File?

Apr 8, 2008

inserting or adding an image to the drawing file.. i ve the reference point and the bmp file path.. but the error "Run-time error '-2147467259(80004005) Method 'Add' of object '_IRxSketchImages' failed" is flashed.

View 6 Replies View Related

AutoCad :: Adding File Path To Drawing Border?

May 16, 2012

I would like to add at the top of my drawing border the file path for that CAD drawing.

For example:

C:Documents And SettingsNameLocal SettingsTemporary Internet FilesContent.Outlook6MI84FY33435_M_56_01 - Heating Ground Floor

This is something that I have seen in my previous employers drawing sheets but I would now like to add one to my own sheet.

I have looked into Plot Stamp command but this just seems to give me options for the date or tab name and not where the drawing is saved.

View 9 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 :: 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

AutoCAD 2010 :: Lisp Routine Fails In 2012?

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

AutoCAD Visual LISP / AutoLISP :: Force A Routine To Be Run

Dec 10, 2012

I have created an acad.lsp file in where I want to arrange all our company settings. I've stored it on the network to make sure everyone will use the same one and when updates take place I don't have to run past all pc's to change it. I've set everything in the deployment package but users can still change it when they reset their profile. Plus some pc's are already installed with AutoCAD before creating the lisp routine, how can I enforce the support directory to check on the network for the acad.lsp each time?

View 9 Replies View Related







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