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


ADVERTISEMENT

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 Visual LISP / AutoLISP :: Saveas Drawing With Default Drawing Name

Oct 13, 2013

I am trying to put together a lisp routine for exporting a Civil3D drawing to basic autocad entities and convert it to a clients layer standards.

I don't want any user input, so I see two problems with the routine at the moment.

Step 2. SAVEAS - I want the drawing to be saved in the same directory as the current drawing, either called "CLIENT_export.dwg" or preferably "Export_{current drawing name}.dwg". If the dwg exists I want it either to overwrite or increment a suffix number.

Step 4. At the moment it askes the user for a selection, I want it to select "ALL"

;;;Purpose to convert a Civil3D drawing into CLIENT layer standards.

(defun c:client ()
(setq old-echo (getvar "CMDECHO"))
(setvar "cmdecho" 1)

[Code]...

I don't have any experience with LISP or any other programming. I have just been cobbling this together from bits and pieces I have found on the web.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Insert Another Drawing Layout Tabs Contents In Current Drawing

Mar 7, 2013

I want to insert another drawing layout tabs contents in current drawing.

It's easy for MODEL tab, but for LAYOUT tabs, I dont know how!?

I prepared a code for INSERTING MODEL tab in current drawing:
 
(defun INS_DWG (TAB path dwg P / blk)(setq blk (strcat ""*" path dwg """));(setq N (vla-get-count (vla-get-layouts)));;Number of LAYOUT TABS in dwg(if (or(= TAB 0) (= TAB nil))(command "INSERT" blk P 1 0)); TAB=0 or omitted ==>Insert MODEL;(if (= TAB 1));==>Insert the 1st LAYOUT in dwg file;(if (= TAB 2));==>Insert the 2nd LAYOUT in dwg file;and so on....);;;usage:;;(INS_DWG 0 "c:\test\" "test.dwg" '(0 0))

View 8 Replies View Related

AutoCAD Architecture :: Why Don't Cleanup Radius Overrides Work

Apr 29, 2011

I want to run one wall just a few inches past another.  If I override the Cleanup Radius at the appropriate ends of the walls, setting the radii to a small number (1/2"), shouldn't that allow one wall to be run a couple inches past the other?  The attached image shows the end of Wall 2 pulled as close to Wall 1 as I can get it.  Both walls have the Cleanup Radius override at 1/2".  If I nudge the end of Wall 2 down any further, it jumps down to form a corner with Wall 1.

View 1 Replies View Related

AutoCAD Architecture :: Default Cleanup Priority For Sheathing?

Feb 8, 2011

The table in the Help that lists suggested cleanup priority values for various wall components does not include sheathing.  The table lists 900 as the index for siding, but I assume that's a different number from sheathing.  If I have steel studs, then 1/2" sheathing, then 2" rigid insulation, then 3/4" strapping, then wood siding, the priority number for sheathing should be higher than the studs, and lower than the rigid insulation, strapping, and siding, right?  500 for the studs, 600 sheathing, 700 rigid insulation, 800 for strapping (which could also be considered an air gap), 900 for siding?

View 1 Replies View Related

AutoCAD Architecture :: Setting Wall Component Cleanup Priorities?

Mar 29, 2012

When building wall styles and configuring cleanup priorities for components, what is the methodology?  Do I sketch out a bunch of scenarios of various wall styles meeting each other at Ls and Ts and crosses and whatever, and then try to puzzle it all out: "if I set the outer airspace to 400, then when it gets to this T, the airspace will cut through the rigid insulation with its 600 priority, but will get cut through by the sheetrock with its 200 priority....".  That seems like a recipe for headaches.  So instead, do I just start from one side of a wall (the wall with the greatest number of components, I guess) and assign the lowest priority number (300, say) to the structural component, the highest number (1200, say) to the finish material component, and numbers in between for everything else, and then see how it works, tweaking by trial and error?  The table of priority numbers for various materials provided is useful, but I'd like to have a better understanding of how those numbers might have been derived, so I can do a better job of assigning my own numbers to components that don't appear in the list.

Also, if a wall type contains two components of the same material (I'm thinking of the layers of rigid insulation on either side of the concrete in an Insulated Concrete Foundation system), should those two components have the same priority number (probably not), or different ones (seems more likely)?

View 3 Replies View Related

AutoCAD Architecture :: Upgrade 2011 To 2012 - Wall Cleanup

May 1, 2013

We just upgraded from ACA 2011 to ACA2012 and we are getting some wall cleanup issues with foundations.  some walls, the footings show while adjacent wall (same style) footing disappears.

also, when i copy a wall where the footing is missing, the new copied wall shows the footing.  when i move a wall without a footing, the footing shows up.

View 1 Replies View Related

AutoCAD Architecture :: 2D Section Slab Edge Style Cleanup?

Feb 26, 2013

I have a slab with a edge style for a thicken slab (haunch).  I have the materials for both objects identical.  When I make a 2d section, the slab on top of the haunch does not clean up with the haunch on the bottom.  When I go ACA out of the box slab & slab edge styles, there is a thicken slab (slab with haunch) live section the way it should look.  I can't reproduce it even when I bring it in to my drw. from the out-of-box  Does it have something to do with 2d section?  This might sound simple but I'm just not able to figure it out how to make things cleanup.  

View 1 Replies View Related

AutoCAD Architecture :: Edit In Place Wall Cleanup - Mismatching Heights?

Jan 23, 2013

I can edit the cleanup in place just fine and in plan all is good, but in 3D, the height of the modfied region is not the full wall height, just some random height.

View 4 Replies View Related

AutoCAD Architecture :: Will Wall Cleanup Error Affect Conflict Resolution?

Feb 3, 2012

I am using AutoCAD Architecture 2011. 

I have a complicated interior area where my walls can't clean up properly even though they are located in the right place. The wall is located at the center point of two columns which are all drawn as metal stud walls and gyp board with correct material cleanup priorities. I have a curtain wall anchored to the stud wall with sill height of 1'-4" and head height of 10'-8". I want to see the wall show up below and above the curtain wall which it does in axonometric view, but in plan, the cleanup error hides the wall completely. The fact that the wall below the curtain wall doesn't show up in plan is not the main issue, I just want to know if this wall will be able to take part in the conflict resolution I will be running later in the model or will it not because it has a cleanup error?

View 2 Replies View Related

AutoCAD Civil 3D :: Opening Drawing In 2013 And Drawing View Changes?

Nov 28, 2012

Recently upgraded to Civil 3D 2013 and drawings opened up fine.  Now today any drawing that opens shows the plan view as last saved but then after loading takes the drawing and shifts it into a 3d view similar to a crossection.  Is there a setting somewhere that has been changed?  I noticed after a windows 7 update was preformed. 

View 7 Replies View Related

Paint Shop Pro :: Cleanup Script?

Sep 20, 2012

Had a computer crash during an uninstall of PSP X5 and now I can't install or uninstall as the installation reads that there is already a version installed. Is there a program to clean out the remnants?

I have used one in the past that was provided on the forum for a previous version.

View 2 Replies View Related

Photoshop :: Cleanup Pixelated Image

Feb 16, 2005

way to cleanup this pixelated image?

the only thing I was doing before was running the eraser around all the lines,

View 4 Replies View Related

Paint Shop Pro :: Cleanup Some Of The Edges Around Images?

Jun 30, 2011

How do I cleanup some of the edges around these images?

View 3 Replies View Related

CorelDRAW Graphics Suite X4 :: Cleanup Image

Jan 3, 2012

porta1.cdr

Is there a easier way to clean up this image, I have been going through and deleting nodes and moving some. I am still learning but there has to be a better way. 

View 7 Replies View Related

Revit :: Roof To Wall Section Cleanup

Aug 22, 2012

I know I can probably overdraft this in 2-D; but is there a way to clean this up?I'd like to stop the inside finish surface of the roof element, inside the building (horizontal pine boards).I tried the similar trick like a wall base extension; didn't seem to work. (?)I'd like to have the rafter to top-plate seat cut out of the rafter also.

View 1 Replies View Related

AutoCAD Civil 3D :: Point From Drawing A To Drawing B?

May 3, 2012

I have survey points in drawing A. I want those points to be available for drawing B. How do I do this?

(Coming from LDD where points were project based not drawing specific).

View 4 Replies View Related

Photoshop :: What Tools To Cleanup Mold / Mildew / Age Debris

Aug 31, 2012

I have a damaged image. I started on the forehead a small area using the patch tool. This is a section of the photo and the whole image is splotchy, molded - and I need to know the best approach to cleaning this image. I am willing to spend a few hours in an attempt to bring it into viewable acceptance.

View 4 Replies View Related

Edge Animate CC :: Cleanup - Removing Unused Image Files?

Mar 18, 2014

I have used some image files as templates in my animation. There doesn't seem to be a way to remove the files without Edge squaking about those files missing. Even after I have removed all references to those files. What is the proper way to remove unwanted files completely from a Edge animate project? It was suggested that there is a right click, but this only shows you where the file is in the finder.
 
"File saved but Edge Animate encountered error(s): Failed to Copy Image: /Users/danjahson/Rain/Clients Work Folder/Nu Skin/Bespoke Moblie App/Intro & Reveal HTML Video/Bespoke_Intro/Bespoke_Intro_1/images/Intro_Template0012.jpg: No such file or directory"
 
This file is no longer in the animation - but it still asks for it. I cant seem to kill it.
 
I am on a mac with the latest version of Edge Animate (3.0.0.322.27519).

View 2 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 :: Open Drawing Read-only?

Oct 18, 2002

How can you open a drawing read-only with autolisp.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Add Text To All Dtext In A Drawing

Oct 7, 2011

Any lisp routine out there to append (prefix) text to dtext?

i have 100s of dtext that has numbers in them, and i need to place the "#" symbol in front of them now.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Insert One Or Another Block Into Drawing

Apr 22, 2013

I am trying to insert one or another block into a drawing, and i need to do this 8 times per drawing. 

(defun C:detector (/ filename gas pressure)
(repeat 8 (initget 1 "Gas Pressure")
(setq filename (getkword "
Enter Detector Type [Gas/Pressure]: "))
(if (= filename "gas") (command "-insert" "*T:\acad\schematic_circuits\suny\sunygasdetectornew.dwg" pause "" "")
(or (if (= filename "pressure")
(command "-insert" "*T:\acad\schematic_circuits\suny\sunypressuretransmitternew.dwg" pause "" ""))
) ;;end or
) ;;end if
) ;;end repeat
)

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Showing Tubes While Drawing

May 27, 2012

I am working on a lisp that automaticaly draws some tubes and fittings.First the user has to select the block where the tubes start and then he selects where the tubes has to end.Herefor i whrote this lisp..

(defun c:test () ;;------------=={ Set Dynamic Property Value }==--------------;;;;;;;; Modifies the value of a Dynamic Block Property ;;;;-------;;;; Author: Lee Mac, Copyright © 2010 - www.lee-mac.com ;;;;---------------------;;;; Arguments: ;;;; block - VLA Dynamic Block Reference Object ;;;; prop - Dynamic Block Property Name ;;;; value - New value for Property ;;;;------------------;;;; Returns: Value property was set to, else nil ;;;;-------------------;;(defun LM:SetDynamicPropValue ( block prop value ) (setq prop (strcase prop)) (vl-some (function (lambda
[code]....

Is it posible to show the user how the tubes gow befor chozing the second point?(A litle bit like when you stretch a dynamic block where you can see how the object will look like while preforming the stretch action).

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Number Of Layouts In Another Drawing

Oct 4, 2013

As you smart individuals can figure out, we do up drawing packages for construction that consist of several drawings, hundreds of drawings, for several modules of construction.  Our process usually consists of one layout per drawing, so that the lisp guy can do a drawing count and put in sheet numbers based on how I manipulate the list of drawings in the one directory folder.

Now I have a client, despite the way we currently do things, requires that about 70% of the drawings will have multiple layouts.  Now we're back in the stone ages, manually putting in sheet numbers, eating up our budget for this contract.

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Use It For Drawing Lines Between Two Points

Aug 19, 2013

how to use AutoLISP to draw lines between two points. I have x,y,z coordinates for the end points in an excel sheet which I can save as a text file. I need to pull the coordinates from the file and use them to draw the lines. There are 2000+ lines so it is not feasible to draw them manually.

View 8 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 Visual LISP / AutoLISP :: Exports Entities From One Drawing To Another

Oct 2, 2011

I know through the block command you can write out a selection of entities to a single drawing.But what I am wondering is if it is possible to have two drawings open, and transfer data quickly between the two?

As an example as we are detailing an assembly we create a title block around a detail, put dimensions and notes on as needed and would then like that to be transfered into another drawing next to the previously transfered detail drawing.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Rounding Up Drawing Measurements To The Next Whole Cm

Jul 30, 2013

I'd like to create a lisp that would check my drawings for stray vertices (I only draw in full measurements per UCS), and automatically round them up to the closest whole value, or at least mark them up in circles for manually fixing them.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Drawing Rectangle Between Lines

Aug 9, 2013

I need lisp that draws rectangle between two lines by window selection. As attached.

View 3 Replies View Related







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