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


ADVERTISEMENT

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 Civil 3D :: 2012 SP2 - Fails To Export To 2010?

Aug 13, 2012

I never saw it prior to installing SP2 on 2012... (currently downloading SP2.1 to see if it fixes the issue...)

I have two viewports on the same sheet, one at 1"=30', and one at 1"=100'.  Cogo Point symbols/labels will print correctly on one viewport, but not on the other.  It seems to be related to whichever one I went into last.  If I go into the main viewport at 1"=30', then the Cogo Point labels/symbols in the 1"=100' viewport turn very tiny when issuing "Export to Autocad 2010".  If I go into the 1"=100' viewport last, then the Cogo Point labels/symbols in the other viewport blow up into huge gigantic things.

I've NEVER seen this behavior before.  It's getting incredibly frustrating, since our client requires a plain AutoCAD 2010 drawing, and the Export feature is flat-out not working anymore.  And if I try exploding Cogo Points prior to exporting, then they disappear from the Point Table.

View 5 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 2010 :: Export As PDF Fails In 2012 Student Edition

Apr 29, 2012

I have repeatedly attempted to export a simple drawing as a PDF and it doesn't take.  I get an error message that the plot failed because there is nothing to plot (paraphrased).

Does export as a PDF not work or not in the Student version or?

View 7 Replies View Related

AutoCAD 2010 :: Lisp Routine To Change Company Logos

Apr 17, 2012

We are trying to update our company logo on hundreds of autocad drawings, lisp routine or a better way to get this update.

View 5 Replies View Related

AutoCAD 2010 :: Lisp Routine To Rotate Text To Zero Angle

Aug 28, 2013

I'm looking for a lisp routine that allow me to select a text object that is rotated to anything other than zero, and it will change the text object to zero rotation and while still in the command allow me to place the text object on the screen.

I have a routine that is similiar called RT180 but it just rotates whatever text object you select 180 degrees from its current rotation, but I can not figure out how to modify it to rotate to zero rotation angle.  What I like about RT180 is that you select your text it rotates it on the spot and then lets you pick a spot to place it.

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

AutoCAD Inventor :: Pro 2012 Fails To Load After Splash Screen?

Mar 5, 2012

I'm a school teacher in the PLTW program that uses Inventor extensively in my classroom. Our district operates under a 125 seat license. The issue I've run into is on my personal computer (Windows Vista, x64) and is therefore outside the realm of the usual IT guy's duties. The Inventor software was installed on my laptop by the PLTW training staff during my summer session. I *think* it is a stand alone install of the program.

What happens is after I launch Autodesk Inventor, I can see the splash screen, and the inventor.exe task appears in the task manager, however after a few seconds, the splash screen disappears and the program does not launch. There is no error message.

This is confusing since until quite recently I am sure that Inventor was working hunky dory. Also, all the other Autodesk programs seems to function normally (Fusion, Design and Review)

I've tried a repair and reinstall, but the problem still persists. Also, I updated the install with SP 1, but this had no effect either.

I have recently updated my display drivers (ATI Radeon), however, I tried reverting back to the older drivers and still the problem persists, so I don't think it is graphics driver related

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

AutoCAD Visual LISP / AutoLISP :: Use Selection Set For Routine?

Oct 16, 2013

with the mouse I can select objects on the screen and then start a command that uses these objects.

How can I perform this in lisp?

I can create my selection set, that's no problem, but how can I 'make it active'  for an external function?

(ssget "_C" p0 p1 '((0 . "TEXT")))
???
(c:txtexp)

View 2 Replies View Related

AutoCad 2D :: LISP Routine To Radial Line Hatching

Mar 16, 2011

Easy way (or LISP routine) to do radial line hatching in AutoCAD 2006. What I mean is the ability to hatch an object, such as a ring (or doughnut) such that the hatching lines are in between the two rings, and are all perpendicular to the circle. Even better would be a generic routine to allow hatch lines to follow arcs (but that would be dreaming too big for now). Perhaps there is some sort of sweep technique that could be exploded into lines? All I need are the lines, actually.

View 2 Replies View Related

AutoCad 2D :: Lisp Routine For Making Points Selectable

Aug 22, 2013

I have got points from a GIS software into AutoCAD, the problem is that I am unable to draw a polyline between the points to get a distance between the points. Anu lisp routine which can convert the points to make them selectable. I have attached the drawing I am working on for those of you who want to have a go at this one.

View 3 Replies View Related

AutoCAD Architecture :: 2012 Detail Component Manger Fails To Insert Objects?

Apr 27, 2011

We installed ACA 2012 a few weeks ago on computers running Windows Vista Business 64-bit.  On one of our machines, the Detail Component Manager was working fine and now when we go to insert an object the insertion fails with a *cancel*  appearing on the command line.

I have checked all of the file paths and folder permissions and everything is fine.  Microsoft.Net Framework 4 Client & Extended is installed as along with Microsoft.Net Framework 3.5 SP1.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Routine To Check Overlap

Aug 12, 2012

I want autolisp program to check overlap like in closed or open polyline with any other entity in the drawing, whether other entity is overlapping inside the polyline or not, i am beginner in autolisp and want to know exactly which functions are used or the program itself Also if possible to check circular overlap of one polyline with itself.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Routine For Rotating Lines

Jul 23, 2013

LISP routine for rotating lines so that text in linetypes always reads from left to right?

I use the QUERY command to create basemaps and often the lines that are imported read upside down or backwards or however you prefer to look at it.  Most often, if I look at the XY coords of these backwards lines, the End X coordinate is of a higher value than the Start X coordinate.

Looking for something that would compare the two X coordinates of a line, do some sort of an IF Start X > End X, and if its true, store the XYZ coords of the Start and End in some variable, and swap them.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Routine To Replace All Blocks

Oct 5, 2011

I am looking for a routine that will replace all blocks named "DgnMisc_nodepoleind" with a block named "DgnMisc_nodepoleind2" keeping the insertion point. I could use (command "-insert" "DgnMisc_nodepoleind=Y:/ACAD2007/DA settings/Library_new_scale1/DgnMisc_nodepoleind2.dwg" NIL ) but my problem is that the block I want to replace is used on two different layers and I only want to replace the ones on layer "TPSYM01".

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Routine For Page Setup

Jan 9, 2013

I found a lisp routine on the internet to change page setups on multiple layouts. The lisp worked but on some of the layouts it moved the viewport off the paper background (see attached). The layouts print fine but the only way to get the viewport back on to the background is to open the page setup and click modify, then ok and close. I tested this on a .dwg that I had saved to my computer rather than on one in  the main folder but I would like to do this to to all are maps since our IT decided to rename our printer and now all pages setups are no good.All I know about lisp is how to run one.

;; Copy current layout page setup to all layout tabs
(vl-load-com)
(defun c:CPS (/ Adoc Layts clyt)
  (setq aDoc  (vla-get-activedocument (vlax-get-acad-object))
 Layts (vla-get-layouts aDoc)
 clyt  (vla-get-activelayout aDoc)
  )
  (foreach
     itm
        (vl-remove (vla-get-name clyt) (layoutlist))
    (vla-copyfrom (vla-item Layts itm) clyt)
  )
  (princ)
)

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Inserting Routine Into Fields

Sep 4, 2012

I have a lisp routine:

(defun getLayout (pos / result cLayout layouts^ i len)
; pos = -1 return previuous layout name
; pos =  0 return current   layout name
; pos =  1 return next      layout name
 (cond
  ((zerop pos)
   (setq result (getvar "ctab"))
  ); case

[code]...

which basically returns either the current, previous or next tab name depending on what you call up. Any way to link this lisp to a field? I am doing some plan and profile drawings which contain match lines I would like to have the match line text automated. For example if I'm on layout called PP02 there would be two match lines in the drawing one would read MATCH LINE PP01 and the other would read MATCH LINE PP03 this lisp routine returns the correct variable but how do I loink this to a fiels?

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 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 Visual LISP / AutoLISP :: Get Routine To Work In 2013

Oct 16, 2012

I don't do a lot of programming and when I do it is mostly with older lisp commands. I have routine that works in 2010 but we are switching to 2013 and it doesn't work. The routine assigns the area of a polyline to a field. The portion of the routine that isn't working is where it assigns the object id for the polyline. Here is that portion of the routine:

;; select an object
 (if (setq ent (entsel))
   (progn
     (setq ent (car ent))
;; Check to see if object selected is a polyline
     (if (= (cdr (assoc 0 (entget ent))) "LWPOLYLINE")
       (progn
;; obtain the object id from the selected entity
         (setq objID (vla-get-objectid (vlax-ename->vla-object ent)))

View 1 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 Visual LISP / AutoLISP :: How To Share Routine On Server With Others

Oct 25, 2011

I have created a lisp routine that I would like to share with other CAD users, but it doesn't work on the server, and it works fine on my machine.  Does "findfile" function work on a server environment?

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Routine To Rename All Layouts?

Sep 23, 2013

I am looking for a LISP to automatically rename all my layouts. I would like the first layout to say "HWY 400 (01)", second layout "HWY 400 (02)", third layout "HWY 400 (03)" ect..

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Getting A Contour Labeling Routine?

Jul 21, 2006

I need a routine that one can select a fence or a path along a whole lot of contours which are not in 3DPoly but rather a heavyweight POLYLINE and then have the Z value (elevation of this polyline) printed over the contour preferably along the direction of the vertex picked.

I have something right now that works by selecting individual plines but I need one you can select a whole lot and have the text inserted at the correct position.

See my simple code below:

;THIS IS FOR LABELLING 3D CONTOURS
(defun C:3DC ()
(graphscr)
(setq p (entsel "
Select CONTOUR to label: "))
(setq e (entget (car p)))
(setq e1 (entget (entnext (cdr (assoc -1 e)))))

[code]....

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







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