AutoCAD Visual LISP / AutoLISP :: Loading Old FAS Files

Mar 24, 2012

If it is possible to load old r14 FAS files into more recent ACAD versions, will it work on r2012 f.e.

View 2 Replies


ADVERTISEMENT

AutoCAD Visual LISP / AutoLISP :: Loading A Particular Net Assembly

Jan 23, 2013

how to program in lisp. I have a master lisp routine that runs when Autocad is opening. I have some computers running Autocad 2010 and others with Autocad 2012 and from the master lisp routine (which is the same) I need to load a net assembly (one for Autocad 2010 or another for Autocad 2012).

I was thinking to query for Autocad version and if it is Autocad 2010, then load the first dll, or if it is Autocad 2012 then load the second dll, but I don't know how to do this in lisp.

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Command Message On Loading

May 25, 2012

I was wondering if there is a way to have a message such as the following show up when a lisp routine was loaded using "Load Application" in ACAD?

1) Load Application "ZAP"
2) lisp routine is successfully loaded and the message "Type ZAP at the command line to initiate ZAP routine" 

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Loading Cuix Fail

Aug 24, 2012

My cuix file that I have created won't load automatically anymore.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Loading A Menu Wipes Out Workspaces?

Apr 7, 2012

I have some legacy menus that are quite large.  I have tried to create a new workspace, and that seemed to work o.k.

UNTIL I used menuload to try to load the old menu.  At the point all the defualt workspaces were wiped out somehow.

I would like to have access to both the default workspaces and then also by switching to a custom workspace, my legacy menus.

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Loading Routine With Toolbar Button

Apr 19, 2012

I need to load a lisp routine by way of a toobar button. I do not want to use the appload dialog box.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Loading Custom Profiles For Use Just After Installing?

Nov 9, 2011

We have been using Custom profiles for many years.   We have always had issues that just after we install, we have to reload the custom profile to get it in place.   When I say reload,  I mean we launch the program the first time with a /p <profile name>.  (The path to our custom profile is in the string launch string.)   Seems to default to a random profile, or something we don't recognize.    The process here is we are pushing out installs to 200 users and don't want each user to set one of the defaults current, delete our custom one, reload our custom one and set it current. 

Once the profile is loaded the next times opening all is well.   Because, of course, it was last used.

What am I missing or misunderstanding?   We see the profile exists in the registry before we reload.  The custom profile we use is an export.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Loading Cuix From Bundle When User Is Not Administrator

Jun 5, 2013

We are using .cuix file which gives access to tools in custom .arx file in AutoCAD 2012/2013. We load the menu using the .bundle mechanism and the plug-in - using button from the menu. If the user is Administrator (or executes AutoCAD as Administrator)  the menu, toolbars and ribbons are loaded correctly and the user can load and unload the application (lisp function in .mnl file is used for that), but if the user is not an administrator either the menu, toolbars and ribbons are not correctly loaded or they are loaded, but the user can not load the application.

We have found that a probable cause for this behaviour is that AutoCAD tries to create/renew the .mnr file when first loading a .cuix file and since the user has no administrator rights this can't be done in the "C:Program FilesAutodeskApplicationPlugins" folder where the bundle is and AutoCAD creates the .mnr file in its own support folder ("C:Users<User>AppDataRoamingAutodeskAutoCAD 2012R18.2...Support") together with a copy of the .cuix file and changes the path for loading the .cuix file to this location. Since the .mnl file containing the function for loading/unloading is not copied with the .cuix file the application can not be loaded.

The user has to delete the created files under the support path of AutoCAD, unload the .cuix file and then reload it from the correct location to resolve the problem. Restarting AutoCAD leads to the same problem.

Is there a way to prevent this behavior other then running AutoCAD as administrator (that is not always an option)?

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Convert DGN Files To DWG Files?

Feb 8, 2013

I want to convert my DGN files to DWG files.

So I write this code in LISP:
 
(defun C:Batch_DGN2DWG (/path dgnfile SDI_Mode) (setq path "C:\DGN\" ;;Default path for DGN files location. DGNIMPORTMODE 0 ;;Imports the DGN file in a new drawing file. SDI_Mode SDI ;;Save Current SDI MODE SDI 1 ;;SET Single Drawing Mode for AutoCAD. );;setq (foreach dgnfile (vl-directory-files path "*.DGN" 1) (progn (command "-dgnimport" (strcat path dgnfile) "" "" "" "y" (strcat path dgnfile ".DWG")) (delay 100) );;progn );;foreach (setq SDI SDI_Mode) ;;restrore SDI Mode to previous value.)

but I can't finish it!

I attached some DGN files for test purpose.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Managing VLX Files

Jan 25, 2012

How to manage VLX file, when i drag and drop one in acad , then type the command it works fine but then

  - creating a pgp alias : doesnt work , uinknown command

 -  load vlx and launch command from a lisp  : does nothing 

am i missing something ? are there other options ?

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Avoid DCL Files

Apr 23, 2012

I am running autocad 2011 for mac to design sails. I was given a autolisp file that will automate the majority of the process, but it uses a .dcl file to input all the numbers. Unfortunately .dcl files are not support with the Mac version and therefore I am looking for any solutions. 

- Is there another way to input the information and therefore link the lsp file to something different?
- Is it easy to re-write the lisp file and input directly into that?

At the moment the time I am wasting researching how to make the .lsp program work, I could have hand drawn most of the sails anyway!

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Text Files From MDB

Aug 29, 2012

I have an mdb database, with one table called MATRIX. That table has seven relevant fields, see attachment. What I want to have is for every language an txt file.

Like for example:

DUT.txt
2BK1;BATTERIJKAST sBk
2RK1;REMKAST sBk

and so on

ENG.txt
2BK1;BATTERY CUBICLE sBk
2RK1;BRAKE CUBICLE sBk

and so on

ITA.txt, the same
DEU.txt, the same
ESP.txt, the same
FRA.txt, the same

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Removing DXE Files

Mar 15, 2013

I have a drawing with DXE files in xrefs. I am not able to remove these references. How to Remove the DXE files from Xref.

View 3 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 :: Chinese Characters In DCL Files?

Jan 19, 2012

I have some legacy custom .DCL files that we want to convert the user interfaces (text boxes, labels, etc) to Chinese characters.  Is that even possible in .DCL?

I have gotten our NET and VBA apps converted but not having much luck with the DCL files.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Put LSP Files In Tool Palette

Mar 3, 2013

How do I have a .LSP file load automatically when I open autocad?And how do I put .LSP files in the tool palette?

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Save Many Files In DXF Format?

Aug 30, 2012

Routine to select DWG files in a folder and save these files in DXF format?

1) Select files in folder;

2) Open select files, save each in dxf format; If there is already a dxf file with the same name, replace.

3) Close files.

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Selected Text(s) To CSV Files

Nov 14, 2012

I need a LISP program that prompts: "select text(s)" then I select for example 100 text in open drawing file.

after that this program creat a file (LIST.CSV) and write each selected text in line by line of this file:

result text file (LIST.CSV ) should be:

Text1

Text2

Text3

...

...

Text99

Text100

 ofcourse Text1 is the content of a text object.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Multiple Files Same Attribute In All

Jul 5, 2012

i am wondering if it is possible to alter a specific attribute in cca 250 files? I have this template which has like 50-70 attributes,but not all of them are used. I have to change only one attribute in all of the files. For instance, i have an attribute with a specisfic tag, but the content of it is ie MARK, i want to change MARK to PETER, without having to open,click,retype,save,close every file. Is it possible to automatize it somehow? maybe lisp, batch or even VB?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Script On Multiple Files

Feb 7, 2012

I have a lisp routine that gathers all xrefs from the current drawing and creates a script that opens each xref, runs specific commands then saves/closes each drawing. Once all commands have been ran in each xref I would like the script to reload all xrefs in the original drawing that the script was called from. I have a reload-all lisp that is already loaded in all of my drawings but for some reason when this command is called at the end of the script it will not run.

Is there a way to have the script continue to run in the original drawing that it was called from? Or maybe even pass control back to the lisp that created/called the script? Its seems to me that the easiest thing would be to have the script continue to run after it has gone through all of the specified drawings but this is not working.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Automate Options -> Files Changes

Aug 17, 2012

As you can see, if i rename this to "acad.lsp" and put it in the network search path of AutoCAD users, it will update several settings in their Options > Files. WHAT A TIME SAVER THIS HAS BEEN!

What i want to do now is to set the "Default Template File Name for QNEW" but i don't know how to complete this line:

(vlax-put-property AcadFiles ___________ <variableName>)

How to fill in the blank?

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Missing OSnap Points With PDF Files

Mar 12, 2013

I am using autocad 2013 and importing PDFs into the drawing and recently the OSnap points within the pdf are missing. The PDFs are of floorplans and I was able to measure from wall to wall using endpoints and midpoints. Now I am only able to select the endpoints on the frame of the pdf.

Is there a switch that might have been turned off?

View 2 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 Visual LISP / AutoLISP :: Batch Plotting Lots Of DSD Files

Apr 26, 2012

Is there any way for me to choose a bunch of .dsd files, and have those be batch plotted?At the moment I have to publish one .dsd file at a time, and each .dsd file can take about 10 minutes to go through all the layouts I have.

Does Autocad have that capability built in? Or is this a problem that can be solved with scripts?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Delete Files Named In List

Aug 19, 2012

I have list like (C:projectspr0310.dwg  C:projectspr0315.dwg C:projectspr03drawings17.dwg)

Want these three files deleted from C:projectspr03.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Script To Read GeoTIFF Files?

Nov 17, 2009

created any script to read GeoTIFF files in order to insert them into a DWG drawing.

I've got a great deal of GeoTIFF files, and I don't want to insert them manually.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Extended Entity Data Lost In Files

Jan 2, 2013

Just recently I have noticed a Major problem occurring with Xdata.  My programs that i use XDATA storage in work fine until you save the drawing.  When you call the file back up the Xdata is gone the only thing in the xdata is NameSpace value.  Is this related somehow to a Windows update?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Deleting Recent Documents From Registry (DST Files)

Dec 30, 2013

I downloaded a Copy of AutoCAD Recent Documents Manager.exe from the autodesk website and it won't run on any of the computers in our system. I was thinking about writing a LISP routine to delete the filenames with a DST suffix by replacing them with the next filename in the list. My question is If I replace the file with the next one above and the filetime,filepinned and class respectively. When I reach the end of the list can I just use "" for the file,filetime and class and integer 0 for filepinned (it looks like it requires a double).

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Identify Files With Non-standard Layer Convention

Feb 20, 2013

Is there a way to identify the files with a non-standard layer convention? Once identified and located,I plan to clean up manually

The folder I'm working with contains thousands of DWGs and I've discovered some layer names which differ from our standard naming conventions.

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Reading .xlsx Files And Modifying A Block?

Feb 7, 2013

Is it possible to write an AutoLISP script to read an .xlsx file and use the data in the various cells to modify a block within a .dwg?

Ex.: We use Flow Control Modules (FCMs) and use AutoCAD Electrical to show electrical contractors where/how to wire up the devices. In AutoCAD, we have blocks for various types of FCMs, and each block has terminals which are tagged DESCA1, DESCA2, DESCA3, etc. Each of these tags will change based on what the particular FCM is used for. 

We also have .xls(x) files we call FCM Maps, which come from our engineers and tell the drafters how to lay out the .dwg files. 

Is it possible to write a LISP script to take, say, cell A1 from the .xlsx file, and put that data into DESCA2 in the block, cell A2 into DESCA3, and so on?

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







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