AutoCAD 2010 :: Uploaded Lisp File - Bad Character Read

Mar 6, 2012

I uploaded a lisp file into AC 2012 and it shows that it uploaded sucessfuly. However when I go to run the routing i get the error message  'error: bad character read (octal): 4'.

View 1 Replies


ADVERTISEMENT

AutoCAD Visual LISP / AutoLISP :: File Is Not Read Only / And Permission On File Appear To Be Just Fine

Aug 20, 2013

(if (findfile MyFile)
  (setq fl (open MyFile "a"))
)

the file exists however the open function still returns nil... the file is not read only, and permission on the file appear to be just fine.What other reasons would there be that cause open function to return nil?This is happening only on one machine. All the others are writing to the file just fine.

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Read Lines From A File And Save To Multiple Lists?

Jul 22, 2013

I am writing a program to grab a bunch of layers from a list, check a drawing to see if the layers are on the list, and if not save to an external file. I have the second part of the program done, but I can't get the first part to work.

I am trying to open a file read the contents and save it to a list.

Here is the code I have so far, but it doesn't even get into the foreach statement.
 
(setq layerslist (list '"0list" '"detaillist" '"clearancelist" '"clearanceelist" '"doorsdrawerslist" '"hiddenlist" '"hiddenelist" '"deletelist"))(setq count 0)(foreach thislayer layerslist (setq f (open (strcat "C:\filterlists\" thislayer ".txt") "r")) (while (/= (setq text (read-line f)) nil) (setq (read thislayer) (cond ( (= 0 count) (cons (cons 8 text) (read thislayer)))( (append (read thislayer) (list (cons 8 text))) ) );cond );setq (setq count (+ count 1)) );while (close f) );foreach
 
I've also attached one of the text files. Im doing something in the wrong order, or I have something inside the wrong set of parenthesis.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Read Excel File To Insert Text Values At Coordinates

Mar 6, 2013

I got a new work and get it done in the next 2 days, but first I need to do this... from a text file (or excel file, I got both) I got 3 columns, 1 one for node number, and 2 other for X and Y coordinates for each node.

So from that file I need to insert into autocad the node numbers as text (using the current style and height) at the point specified by the other two columns, that are the X,Y coordinates which will be the insertion point of text..

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Unable To Read Plot Settings From Variable In Text File

Sep 2, 2012

I’m trying to create a plot command that reads settings in from a variable stored in a text file but its becoming muddled up somewhere.

(defun c:MYPLOT ();Setting nessesary variables...(setq fname "C:/ICT/AutoCAD_Architecture_Suite_2012/CUSTOM/TREADSTONE/PEN/MYOUTPUTDEVICE.PEN")(if(setq f(open fname "r"))(while (setq MYOUTPUTDEVICE (read-line f))(close)))(setq fname "C:/ICT/AutoCAD_Architecture_Suite_2012/CUSTOM/TREADSTONE/PEN/MYPAPERSIZE.PEN")
[code].......

View 5 Replies View Related

AutoCAD 2010 :: Creating Read Only File When Attempting To Save?

Nov 8, 2012

We are having an issue where users are you autocad and are working on the drawing as they go to save Autocad pops up and says someone else is using the drawing and then creates a read only file. We are 99% sure that there is no one else using the drawing.

After a bit of a google on various forums I have came across a post which says that it maybe a network issue with the drawing creating DWL files (locked) and then it taking time to update on the network.

View 1 Replies View Related

AutoCAD LT :: Read Only Error When Opening DWG Attachment File From 2010

Feb 6, 2012

I cannot seem to open .dwg files from an email using AutoCAD LT 2010

I get an error saying c:users"username" empoutlookj0814-052.dwg is currently in use or is read only.

Would you like to open the file ready-only?

I can save the file then open it. But the user wants to open the attachment straight from the email.

I've tried changing the attributes on the folder from read only but this doesn't work, tried another profile, again this doesn't work.

It does seem to only effect .dwg files when opening with AutoCAD LT 2010.  If someone sends an xls, .doc, .pdf attachment they all open OK, I'm sure this is an AutoCAD LT 2010 issue. I have downloaded and installed both hotfixes / patches from the autodesk website and reinstalled the software but this hasn't worked either.

View 3 Replies View Related

AutoCAD 2010 :: Disabling Alert Window When Open Read Only File?

May 10, 2011

Is there any way to disable the "would you like to open the file read only?" alert window when I open a read only file?

Software: Inventor Series 2011 SP1 x64
OS: Vista Business x64
CPU: E6400
RAM: 2*2Gb GeIL
VGA: Quadro FX 550

View 8 Replies View Related

AutoCAD 2010 :: How To Save DWG File Using Lisp

Jan 22, 2012

I'm trying to save a dwg file in .net using lisp and it works fine for local files, but when I try to save on server it doesn't work.

here's the

//acApp is an instance of Autodesk.Autocad.Interop.AcadApplication.

acApp..ActiveDocument.SendCommand(string.Format("(defun caveFile() (Command "saveas" 2010 "{0}"))
",path));

acApp.ActiveDocument.SendCommand("SaveFile
");

when path parameter is set to @"d:\test.dwg" it works and saves the file but when set to @"\\server\New Folder"\test.dwg" it does not work.what should I do?.

View 1 Replies View Related

AutoCAD 2010 :: LISP To Create Layouts Using CSV File?

Aug 8, 2013

Lisp that can create layouts (using a dwt--I would code in the file path to my dwt) reading data from a csv file??? I would create the drawings ahead of time, all I would need is to run the lisp and it would create all the layouts in those dwgs and name them according to the csv. 

The csv file contains the drawing names in column A and the layout names in column B.  So, what I want to do is create "n" number of layouts in specific dwgs, using the cell data it reads from column A--which are the drawing names, and then rename all those layouts with the cell data from B--note it would not create duplicate (existing) tabs. This way I can re-run it later to add new layouts to the drawings as needed. 

The reason is that I work on projects with several hundred layouts--thus the need to create layouts more easily across as many drawings as necessary. Instead of renaming/deleting a ton of layouts; it would be easier to start with a minimal template(s) and have the lisp create the exact number of layouts we need instead of going back and making a ton of edits. Since the csv is created at the beginning of the project, any changes later (adding layouts), can easily be done by running the lisp again. 

View 7 Replies View Related

AutoCAD 2010 :: Edit Lisp File For New Functions

May 1, 2013

add a line to the code you wrote so I could use iunembed or detach the old image in the begin of the lisp command. Iunembed command ask what to name tif after it is unembed. Is there a way to detach the old embed image and run the other parts of the command? Keep in mind I change the lisp little bit.

; Attach Drawingname Image [insert] at scale 12
(defun c:AI12 ()
(defun dxf_ (n L) (cdr (assoc n L)) )
(defun dxf (n L) (cdr (assoc n L)) )

[Code].....

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Rename Blocks Up To A Character?

Oct 3, 2012

I have 30 blocks per drawing about 60 drawings.  Each block starts with the jobname has other block info and then the block type. For example

Bldg31-MechEquip_ABC

Bldg33-MechText_DEF

Bldg45-ElecEquip_GHI

I want the output to be just ABC, DEF, and GHI.

I have a rename script but I dont know where to go from here.  How can I tell it to remove everything up and including  the "_" symbol?

View 5 Replies View Related

AutoCAD 2010 :: Use LISP File To Create Tool Palette?

Aug 9, 2013

How to use a LISP file to create Tool Palette?

View 3 Replies View Related

AutoCAD 2010 :: Write An Lisp File That Would Embed A Tif Image

May 5, 2013

Write an lisp file that would embed a tif image

View 5 Replies View Related

AutoCAD 2010 :: LISP File To LIST All OBJECTS On A Drawing?

Feb 24, 2012

I have to list all object data on some 4000 drawings. The drawings have been created in an unkown version of autocad and are electrical in nature. It would be great if a LISP file could be created to extract all of this too individual Excel or text files.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Removing A Character From A Variable / String

Oct 24, 2011

I am using  a variable that is being called up from a .csv file for a file name.  By default this variable automatically includes a comma due to it being called from a .csv.

How to remove a character ( , ) from a variable? I'm not sure if this is along the right line or not, but i used the READ function to read the variable as a string (i think thats how it works?).

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Replace All Occurrences Of Character Within A String?

Sep 12, 2011

There is a lisp function to replace all occurrences of a character within a string?

In short, as the Replace command in Visual Basic

For example, to replace all "x" to "*":
"34x59+60x3" -> "34*59+60*3

View 6 Replies View Related

AutoCAD .NET :: How To Read Lisp Property Value

Sep 4, 2012

I have old Lisp macros, that writes property to drawing by command (vlax-ldata-put "SpData" cVar cVal). How can I read this property's value, using VB.NET ?

I attached file with this property, its value="TEST"

View 6 Replies View Related

AutoCAD 2010 :: Create DAT File From Output Of LISP Program In Command Window?

Apr 18, 2013

I wrote some LISP programs. I would like to use the output data generated by LISP program in Command arear of AutoCAD. I Heard we can dave the output data into .dat files.

View 9 Replies View Related

Illustrator :: CS6 JPEG File Saved Looks Distorted When Uploaded Onto Internet

Feb 7, 2013

Made a simple type and shape design with a solid backdrop. When I tried to export via save for web to jpeg with high settings, it came up online with subtle but visible alterations. Behind my shapes are speckled like dust, it looks super low quality.

I tried using ps to save instead, I even tried removing the backdrop and remaking a whole new document and just moving select items over, then recoloring..which was not the best attempt but same result.

I'm not exactly sure what her color settings should be to avoid this. Im working at 6500 x 6500 right now. Here's a visual of the up close issue. All over its less quality. And Im saving at top jpeg settings in RGB. I really don't want to tell her she has to begin all over again.

View 4 Replies View Related

AutoCAD 2010 :: Arc-Aligned Character Spacing

Aug 14, 2012

I was using arc aligned text and i can't seem to change the charter spacing. it is grayed out.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Read Second Column From A CSV?

Oct 18, 2012

If I have a CSV file (with no header) that contains three columns and I want to return values of  the second column as a list, how is the best method to do that?

I have seen something where one can separate a string into a list by a divider (in my case, the commas between the three columns) but the actual code for me to inspect was supposed to be in an attached ZIP file which I didn't see as part of the post.

An example of my CSV (as a list) wouild be:

("PO-30-10,PIN OAK,88-15" "PO-30-10,PIN OAK,88-01A" "JS-20-5,JUNIPER,63-04" "PP-40-10,POPLAR,38-22")

and I need the resulting list to be:

("PIN OAK" "PIN OAK" JUNIPER" "POPLAR")

Is there a LISP way to do this - or only VLISP?

View 5 Replies View Related

AutoCAD 2010 :: Remove Character Formatting For All Of Text Strings At Once?

Oct 30, 2012

I am working with tables that are linked to data from an excel file.After I create a table I dettach it from the excel file. I do not want the excel file to control the table.

I then need to update the text format of all the text in the table. I've noticed that the text strings are still formatted based on how the excel file was formatted.

The only way to remove this is to click on the cell, highlight the text, right click, and then select Remove Character Formatting. Unfortunately I have to do this for each text string.

Is there a way to remove the character formatting for all of the text strings at once?

Even better, is there a way to format the table so that it does not change the text style based on what is in the excel file but instead based on AutoCAD's text styles?

View 9 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 :: How To Read Attribute Value Which Is A Field

Dec 15, 2011

(cdr (assoc 1 (entget (entnext (car (entsel))))) ...

gives the string value of the attribute, but i would like to retrieve the field value attached to that attribute.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Check If System Variable Is Read Only

Nov 22, 2012

How do I check, with LISP, if a System Variable is read only? In particular ANNOTATIVEDWG. This one is read/write when there are no annotative objects in a drawing, but read-only if there are.

View 7 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 :: 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 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 2010 :: 1324 Error / The Folder Path (My Documents) Contains Invalid Character

Sep 26, 2012

I'm currently getting the "1324 Error. The folder path 'My Documents' contains an invalid character."

when trying to run AutoCad 2010. It had been working fine previously, but now it gives this error and won't allow me to use it. I am also unable to uninstall or reinstall the program without getting the same error.

I have confirmed that the profile is not set to roaming. I have also tried deleting the registry entries as recomended here:

[URL]

The user account is local administrator. The OS is Windows 7 64bit.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Read Attribute (diameter) To Draw Circle?

Oct 21, 2013

Can a AutoLISP command be written to read an attribute in a block and draw a circle with the attribute as the diameter using variables? The appilcation is taking the diameter of a tree trunk (the attribute), multipling by 12, and drawing the canopy circle on hundreds of those blocks. So the circles drawn will vary in size.

Not sure how this could be set up, i'm not familiar with LISP writing at all.

1) Read block, single, mulitple or definition?

2) Read Attribute

3) Varaible of attribute, (attribute is an inch measurement...it needs to be multipled by 12 to get feet for final use as circle diameter drawn)

4) Draw circle, variable, with diameter coming from attribute variable (attribute in inches that is multipled by 12)

5) Center point or circle to be block's base point

View 9 Replies View Related







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