AutoCAD 2010 :: Lisp Routines Not Working With DCL

Mar 15, 2010

I have never seen this one before while running a lisp routine: error in dialog file "Y:LispSteel|stl.dc", line 1: warning: redefining object. Symbol:"stl"

stl is a lisp routine we use written in autolisp to insert structural steel members defined by dim files. We have never had a problem with this lisp routine even with the acad 2010 32bit windows XP machines.

- AutoCAD 2010 64bit
- Winows7 64bit
- Network conditions with acad lisps and blocks on the server.
- I have included the stl.dcl file it is having trouble with.

View 9 Replies


ADVERTISEMENT

AutoCAD Visual LISP / AutoLISP :: Updating Old Routines?

Oct 14, 2001

I have a routine I wrote years ago for R12 and it worked fine. Now when I try it in 2000 it freezes Acad when I select the first button. The routine is for structural steel members and the idea is to select a country of origin which brings up a list, then select a section type from the list which brings up another list of all available sizes. You then select the
size member you want then insert it into the drawing. There is also an option to explode the block on insertion. If I remove the (set_lista) section from the following line it doesn't freeze.

(action_tile "AUS" "(setq sectype AA)(setq Country 1)(set_lista)")

(set_lista) is a selection of lists, the list to use is determined by the variable "sectype".

I can select the country I want then cancel the dialog box and type (set_lista) at the command line then reopen the dialog box and the list is refreshed. Just won't do it automatically.

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Set Of Routines With DCL Files

Aug 8, 2012

I have writted a set of lisp routines with dcl files that I have implemented in most versions of Autocad since release 14. I can install the toolbars in Autocad 2013 but when I try to execute on of the commands, either by toolbar icon or command line, I get the message "Unknown Command".

I have added the appropriate paths to path list.

Dell Precision M4400 Laptop

Vista Business

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Merge Two Align Object Routines

Nov 23, 2011

I've gotten these two routines from different threads on here. One works with *text and blocks.  The second works with multileaders.

I'd like to merge the two so one command can work with a selection set of any of the above objects (assume selection set of mixed objects - some multileaders, some text, some blocks)
 
(defun c:at ( / ss ang *error*)(vl-load-com)(ErrorHandler '("cmdecho" "osmode"))(setvar "cmdecho" 0)(setvar "osmode" 576)(setqss (ssget '((0 . "*TEXT,INSERT")))ang (getangle "
Select two points along desired alignment:"))(mapcar'(lambda (x)(vla-put-rotation(vlax-ename->vla-object x)ang))(mapcar 'cadr (ssnamex ss)))(*error* nil))(defun c:test (/ ss ang i sset)(vl-load-com); Tharwat 17. 05. 2011 (if (and (setq ss (ssget ":L" '((0 . "MULTILEADER")))) (setq ang (getangle "
Specify Rotation Angle :"))) (repeat(setq i (sslength ss)) (setq sset (ssname ss (setq i (1- i)))) (vla-put-TextRotation (vlax-ename->vla-object sset) ang)) (princ)) (princ))
 
Or see C:AT and C:TEST in the attached file

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Creating A Script To Run Multiple Routines?

Apr 17, 2012

I have hundreds of drawings I want to run through scriptpro with a script calling 3 different lisp routines.  I have the 3 lisps working independantly but can't figure out how to get them to all run in one script.

Two of the Lisps are for redefining the title block in 2 different types of drawings that have different title blocks.  The last lisp locks all viewports in all windows.  I'll attach the 3 lisps I'm trying to merge in the script.  I am not very versed in scripts and lisps so I'm guessing at least 2 of these lisps could be merged into a single lisp...

Here is what I have for the script file contents (which doesn't work):

(load "redefine100")

(load "redefine102")

(load "vlocker")

View 1 Replies View Related

AutoCAD .NET :: Obtain Handle To Entity As String To Be Used In Legacy Lisp Routines

May 24, 2011

Task: To obtain the Handle to an entity as a string to be used in legacy lisp routines.

Which is likely to be faster;

(cdr(assoc 5(entget eName)))

OR

A call to a .net DLL that returns the handle of the entity eName.

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Automatically Installing Tool Pallets And Routines

Sep 18, 2012

We are working together whit another firm and we would like to share our tool pallets and lisp routines. The pallets and lisp files we would like to share are quite large so we would like to simply send them a USB stick whit all the files and a title "executable" program that automatically puts them on the right place and changes the appropriate information.

View 2 Replies View Related

AutoCAD 2010 :: LSP Routines Will Not Run From Startup Suite 2012

Jan 27, 2012

Using ACAD 2012, 64-bit desktop

I have a number of .lsp routines that I have loaded into the startup suite. I have their location pathed correctly and at the top of the list in the support file search path under options.

Problem is...they load into the drawing when a drawing is opened, but they will not execute. If I type APPLOAD and re-load them individually, they all seem to work fine.

I'm only having this problem with the computers that are running 2012 in the office.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Conversion Of Base Routines To Diesel MACRO Based Routine

Jul 3, 2012

" Convertion of AUTOLISP base routines to Diesel MACRO based routine to be used in a AUTOCAD LT based platform "

Here i am attaching the lisp file for ready reference.

View 1 Replies View Related

AutoCAD 2010 :: Lisp To Run VB Not Working?

Mar 12, 2012

I am trying to run a DVB, file through a lisp routine, but it is telling me that the macro is not found.  The macro is:

(DEFUN c:tm ()
  (COMMAND "-vbarun" "txtmrg.dvb!RuntimeEvents.stylemerge")
  (SETVAR "nomutt" 0)
  (PRINC)
) ;_ end-defun

I have both the lsp and the dvb file in the same folder, and used appload to load the lsp routine. 

View 1 Replies View Related

AutoCAD Inventor :: Triggering Routines Remotely

Aug 25, 2011

How to make an iLogic routine run from a completely different document than the one it's in? I have tried everything from remotely changing properties to even editing a sketch in the model to try an trigger a routine. Nothing works. I have set triggers to fire when the part opens but opening the documents with code doesn't fire those triggers. It’s very frustrating to have to open each part in an assembly manually just to get all the routines to run.

Note I'm using 2012.

View 3 Replies View Related

AutoCAD Civil 3D :: Handy Routines For Controlling Alignment ToolTips

Sep 22, 2006

4 little helper functions to turn off & on the ToolTips associated with alignments. Handy for when you have a number of nearby alignments and you don't need the constant showing of all the data.

Intended for buttons, actual function names may be shortened for keyboard use.

|;
(defun c:all-align-ttips-off ()
(if (ssget "x" '((0 . "AECC_ALIGNMENT")))
(progn
(vlax-for ent (vla-get-activeselectionset
(vla-get-activedocument
(vlax-get-acad-object)))
(vlax-put-property ent 'showtooltip :vlax-false)
[code]....

View 9 Replies View Related

AutoCad :: Mapping Values To Title Blocks Using Autolisp Routines?

Nov 19, 2012

I am trying to map values to my title block using an autolisp routine. I have entered (getenv "NEXTSHEET") & (getenv "PREVSHEET") into the descriptions fields and mapped these routines to 'NEXT_ATTRNAME' & 'PREV_ATTRNAME' attributes. When I run the title block updates no values appear on my drawing. Please note that I have included the program in my start-up suite. Please also note that when I enter 'NEXTSHEET' or 'PREVSHEET' on the command line, the routines are called and the correct values are shown on the command line. I just need these values to be visible on my drawing. I have attached the Autolisp routine that I am running.

View 3 Replies View Related

AutoCAD LT :: Import Previous Customized Menu With Routines That Worked Correctly In 2002?

Feb 15, 2012

I am attempting to import a previous customized menu with routines that worked beautifully in Autocad 2002.  I can import the menu but the routines don't work. I have copied the search paths identical to those in Autocad 2002 in the tools>options>files in the support file search path, but to no avail.

The menu was developed by Andy Pease (Andy Acad) who is now with Autodesk. 

View 1 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 .NET :: Lisp Function Not Working In MEP 2012

Aug 26, 2011

i'm trying to create a LispFunction in vb.net in visual studio 2010 (tried both .net 3.5 and .net 4.0) and it's like autocad is just ignoring them. is there a setting or something to disable .net LispFunctions from being loaded? CommandMethods work just fine, and i'm not seeing any errors. in fact i'm using the most basic of functions, just returning the arguments. and nothing. Any diagnostic or something to determine what's the matter?
 
<LispFunction("HelloWorld")>Public Function HelloWorld(args As ResultBuffer) As ResultBuffer Return argsEnd Function does nothing, when i setq a variable on it, it's just nil.

View 1 Replies View Related

AutoCAD Map 3D :: Data Extension Functions Of Lisp In Map Not Working

Dec 1, 2011

I have just upgraded from Map 2009 to 2012 4-bit and many of my lisp programs using map functions do not work.  Is there an explanation for this and is there a new "catalog" of data extension function and such available somewhere?

View 5 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 Visual LISP / AutoLISP :: 2013 ENTUPD Not Working

Mar 22, 2013

I upgrading all our lisp routines to 2013. I have a routing that modifies a block attribute. Then ENTMOD returns with the proper information. ENTUPD reurns the same enity name. The block never changes. The same routine woks in 2010.

View 1 Replies View Related

Photoshop Elements :: 5.0.2 - Could Not Load FastCore Routines Module

Nov 19, 2008

The "view and organize photos" mode seems to work just fine, but when I attempt to open the "edit and enhance photos" mode, I get an error box with this message: "Could not load the FastCore Routines module because the file could not be found", and then it shuts down after I click ok. I have installed the 5.0.2 patch and have uninstalled and reinstalled the program, to no avail. I had no firewall running when installing the program, nor do I own the program "Clean Sweep". What can I do?

OS = Windows Vista.

View 19 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Routine No Longer Working In 2014?

Sep 4, 2013

One of our users has recently upgraded from AutoCAD 2005 to AutoCAD 2014. He has a LISP routine that will no longer work and I'm not sure why.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Working With Multiple Attributes Within Block?

Aug 8, 2012

I know how to retrieve the entity information from the block, but can't figure out how to write the loop statement to loop, look for first attribute, assign to a variable, goto next attribute, assign to different variable, etc., etc...

In my research, most programs I've seen it execute the loop, assign to a variable, then print/put that data somewhere, loop again and utilize the same variable to print/put the next data somewhere. 

I would like each attribute within a block to be assigned a separate variable.

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Passing A Point To Zoom Not Working?

Jul 25, 2012

The good news is that, if I were righting a routine that locks up AutoCAD, I'm finished.  The bad news is that I'm not.

The code below is the portion of a routine where I have the user select 2 points and then pass those points to the Zoom command and the M2P osnap.  The problem is that, when the Mid Between 2 Points osnap tries to use the first point, it returnns an "Invalid point" message, enters a loop and locks ACAD.

(defun C:ZC ()
(setq PointOne (getpoint "First point of M2P "))
(setq PointTwo (getpoint "Second point of M2P "))

[Code].....

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Getenv Setenv No Longer Working

Apr 30, 2012

Should SETENV/GETENV be writing/reading to and from the System Registry?

After installing ACAD 2013 as a trail this now seems to be the behaviour, only found it when GETENV calls started to fail. This has also affected previous versions installed on the same workstations.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Text Justification Alert Message Not Working

Aug 28, 2011

lsp.I could not able to  find error.

(defun c:t5()
(setq entname (entget(car(entsel))))
(setq thjh (cdr (assoc 72 entname)))
(setq tvjv (cdr (assoc 73 entname)))

[Code]....

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Copy And Rotate Macro Not Working In 2013

Apr 29, 2012

I have a macro that i have been using in autocad 2012 for a simple copy & rotate command as follows

^C^C_select;auto;\_copy;p;;0,0;0,0;_move;p;;\_rotate;p;;\redraw

For some reason it now does not work in 2013 the macro exits after the copy part of the macro is finished & fails to let you rotate the copied object.

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Checking For Existence Of Drive Using Code Not Working?

May 2, 2013

I'm trying to check for the existence of a drive using lisp, then if not found perform a task (represented in my below example by the alert)

(if (vl-file-directory-p "C: en") T)(alert "exists"))

 I know it doesn't work because if I change the T to nil as demonstrated bellow I should invoke the opposite reaction from autocad but instead I get the exact same outcome which is an alert telling me the file exists?
 
(if (vl-file-directory-p "C: en") nil)(alert "exists"))

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Error / Bad Argument Type - Code Still Working

Jul 23, 2013

My code returns the error, but it still works.

    (vl-load-com)
    (setvar "cmdecho" 0)
    (vlax-for ucs (vla-get-UserCoordinateSystems (vla-get-Activedocument (vlax-get-acad-object)))
    (setq UCSList (cons (vla-get-Name ucs) UCSList)))
    (setq FileName (vl-Filename-Base (getvar "Dwgname")))
    (setq NewUCSList (vl-remove-if '(lambda (x) (vl-string-search FileName x)) UCSList))
    (setq Listlength (length NewUCSList))

[code]....

View 4 Replies View Related

AutoCAD 2010 :: PGP Is Not Working

Apr 28, 2012

I am working with AutoCAD 2012 on a single computer. It appears that the acad.pgp doesn't work. for example when i type DI in command line it refers to:

Command: di DDINSERT
Command: nil

but i have checked the pgp file and in it, the letters DI refer to command DIST. Also in Command Alias Editor they refer to command DIST. I have also tried this:

Command: (findfile "acad.pgp")

and the answer is:

"C:\Users\User\appdata\roaming\autodesk\autocad 2012 -english\r18.2\enu\support\acad.pgp"

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: User Select In Button Marco Not Working In 2014?

Jul 29, 2013

I have various Button macros with the user input select in them, but in 2014 they dont seem to be working anymore.

they worked in 2013.

It just says invalid selection.

example

^C^CSelect;change;p;lt;phantom;;

View 6 Replies View Related

AutoCAD 2010 :: Use 2DREP In A Lisp

Jul 5, 2012

I am trying to use 2DREP in a lisp routine but for some reason I keep getting an error message saying 2DREP not a valid comment yet when I type it at the command prompt it works just fine.

View 1 Replies View Related







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