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


ADVERTISEMENT

AutoCAD 2013 :: Write LISP File That Saves Current File Into R2000 DXF Format?

Nov 7, 2013

Is it possible, in AutoLISP, to code something that will save the current file (whatever it may be, assume ..dwg or .dxf, into R2000 .dxf?

View 9 Replies View Related

AutoCAD 2010 :: Bind / Embed TIFF File?

Dec 13, 2013

As I can't bind a Tiff file (X-Ref) within AutoCad 2010, Is there another way to fully embed a tiff file into drawing file, so I only have to email one file to my client?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Write Several Lines Of Text To TXT File?

Apr 13, 2012

I know how to write a single line of text to a txt file with LISP, but how do i write two or more lines of text to a txt file ussing lisp?

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Write Content Of Variables To Text File?

Feb 17, 2013

I want to write content of variables to a text file but I should have conversion function for variables.

for example

(setq a 123); a is an integer type, contetnt of a is 123

so I should use (itoa a) to get "123" as a string and then I can write it to text file.

but what about another type of variables?
 
(defun ToString ( a / result)(setq result "")(cond((= (type a) 'ENAME) (progn (setq result "Entity names")))((= (type a) 'EXRXSUBR) (progn (setq result "External ObjectARX applications")))((= (type a) 'FILE) (progn (setq result "File descriptors")))((= (type a) 'INT) (progn (setq result (itoa

[Code].....

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Write Unicode Characters To Text File

Jun 27, 2013

I can't write unicode characters to a text file.

as you know, you can write chars on text screen easily: (write-line (strcat "\U+" "2122"))

but if you want to write chars to a text file, this command does not work: (write-line (strcat "\U+" "2122") TxtFileVar)

Here is a part of my code to test:
(defun C:HexGen ( / d f S w x y z h c)(setq d '("0" "1" "2" "3" "4" "5" "6" "7" "8" "9" "A" "B" "C" "D" "E" "F") f (open "c:\0000-FFFF.txt" "w"))(foreach w d (foreach x d (foreach y d (progn (setq S "") (foreach z d (progn (setq h (strcat w x y z)) (setq c (strcat "\U+" h));;;<===character (setq S (strcat S " " (strcat h " = " c ))) ) ) (write-line S f) ) ) )) (close f)(startapp "notepad" "c:\0000-FFFF.txt"))

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Open File To Write On External Drive - Bad Argument Type

Jun 5, 2012

I'm trying to open a file to write to on my external drive, I get this message "bad argument type: stringp nil".

View 8 Replies View Related

AutoCAD 2010 :: FATAL ERROR - Cannot Write To Undo File While Saving

Jun 13, 2013

I have a brand new workstation and only on certain files it will say FATAL ERROR: Cannot write to undo file (probably disk full) when ever I save. I have tried cleaning out the TEMP file, turning off the Undo function, auditing the file and its xrefs, and recovering the file. It was a file that was on the server, but I have pulled it to my local machine and I have also increased the amount of virtural memory avaiable.

View 3 Replies View Related

AutoCAD 2010 :: Fatal Error - Cannot Write To UNDO File (disk Probably Full)

Feb 6, 2012

What the heck?  Brand new machine and new autocad 2012 MEP install.

View 9 Replies View Related

Illustrator :: Can Unembed Image File Embed And Save To Desktop?

Nov 24, 2008

Is it possible to embed an image file embedded in Illustrator and save it to my desktop? I've lost the original JPEG, was relieved to find I'd embedded it in an Illustrator file, would like to extract it for use elsewhere.

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

CorelDRAW X3 :: Write Text And Image In Old CDR File Using C#

Jul 19, 2013

I am a c# programmer. i am now doing id card application project ....so i need to write text and save image inside .cdr file using c#.

View 1 Replies View Related

Paint Shop Pro :: Script - How To Write File Name In Image

Sep 4, 2011

I'm trying to create a script which will write the filename in/on an open image itself

I recorded a script which

draws a rectangle
merges it down
writes/types some words on the rectangle
and merges that down

Rather than type the same thing in each image, I'd like to write the file name instead omto the image

The applicable section of script seems to be:
Select all    # Text
App.Do( Environment, 'TextEx', {
[A number of text tool parameters  omitted]
},

[Code]....

The key line seems to be that: 'Characters': u'File Name Here?',

(the 'File Name Here' was, of course, what I typed in with the Text Tool

And I'm thinking I somehow have to use App.TargetDocument.Title, perhaps as a variable or system variable, but I have not been able to figure out how to do it.

I'm pretty good with WordPerfect's PerfectScript, and can sometimes muddle my way though some JaveScript, but this is beyond my ability

I will be processing thousands of files ovcer time, typically 100-500 at a time....

View 1 Replies View Related

AutoCAD 2010 :: (2012 MEC) Embed PDF / Images To DWG?

Dec 16, 2011

why with autocad 2012 mechanical, I can't no more embed PDF or Images to a drawing but only load it as references, linked to a file path?

Previously I used Autocad 2009 MEC and there wasn't this problem.

I shall fix this because, when I load a dwg to our company management system, the pdf or images shall be embed to the dwg file.

If I load the pdf as OLE Object, it doesn't lock the view and the pdf zoom canghe with the dwg zoom, so it is acceptable.

View 5 Replies View Related

AutoCAD 2010 :: How To Embed Linked Excel Spreadsheets

Mar 13, 2012

We had a client who could not open our drawings that had linked Excel spreadsheets in them even though we supplied the spreadsheets. The drawings would crash AutoCAD when they tried to open them.

My solution was to open the drawings, pick on the Linked Spreadsheet OLE in the drawing, Ctrl+C (Edit > Copy) then I Edit > Paste Special > As Image. I would paste it in at the lower left corner of the existing spreadsheet.

I set the properties of the new OLE so the Lock Aspect Ratio was Off or No and drag the upper right corner of my newly inserted image to the upper right corner of the existing linked spreadsheet so it would be a perfect match. 

I then erased the existing linked spreadsheet.

Now they can open the files and we don't need to include the spreadsheet when we send the files.

[URL]....

View 2 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 .NET :: Batch Embed TIF Image Into Drawings?

Aug 20, 2013

Due to customer constraints I have to embed .tif images into AutoCAD drawings. This is a manual operation doing a copy ->pastespecial. I was wondering if there was any way to automate this? The pastespecial command doesn't seem to take arguments to bypass the dialoge box and therefore does not allow me to batch embed .tifs programatically.

View 5 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 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 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 :: 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 :: Read And Write Of Notepad Numeric Data?

Mar 21, 2012

I have some numeric data like 1, 2, 3, 4, 5 in mtext format in autocad drawing file and some numeric data like 1,2, 3 in notepad.

How can i get the remaining numeric data of autocad dwg into another notepad using autolisp or visual lisp

View 6 Replies View Related

AutoCad :: Attach JPEG Image Vs Embed OLE Objects In Drawings?

Oct 28, 2013

What do you think it's better between Attach JPEG image vs Embed OLE Objects in Cad Drawings? I have used OLE Object in the past and i problem i have is that, I can't rotate OLE object/image i can scale and move. i can't clip OLE obj. For Attach JPEG or PDF when someone accidently delete the JPEG which were attached out of the computer then when i open the file it will show "Not found" on the external Ref. this won't happen in OLE obj. i tried not to use either of these methods above because it increases the size of the dwg but this is how the Co Worker wants for this project. The drawing size is less than 1000KB not too bad.

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Write Event Handler For Command Like Insert New Block?

Jul 19, 2012

Is it possible to write an event handler for an autocad event/ command like insert new block? I want the event to trigger the execution of an update routine . something like this post

[URL]

how do I access the autocad object in autolisp?

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Write Routine That Will Make Layer Called Hatch

Aug 1, 2012

I am trying to write a lisp routine that will make a layer called hatch, set it as current and then run the hatch command.

BUT the hatch command is not bring up the hatch dialogue box, it just puts things on the command line.

The layer is being made & set current.

The lisp is as follows:

(defun c:hh (/ ec)
(setq ec (getvar "cmdecho"))
(setvar "cmdecho" 0)
(command "-layer" "m" "hatch" "c" "8" "" "l" "continuous" "" "s" "hatch" "")
(command "hatch")
(setvar "cmdecho" ec)
)

On another matter, I have just found the bevel lisp routine by Terry Miller which works great BUT only for imperial measurements. How to make Terry's metric, that will work for metric measurements.

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Write A Macro In CUI That Opens A Drawing In Read-Only Mode?

Sep 18, 2012

Is it possible to write a Macro in the CUI that opens a drawing in Read-Only mode? Limitation : AutoCAD LT.

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

AutoCAD 2010 :: How To Write (If Statement) In The Table

Apr 19, 2012

Is it possible to write “If statement” in the table?
 
For example, I wanted to have the following if statement:
 
If b3>180º, d3 = b3-180º
If b3<180º, d3 = b3 +180º
 
Is this possible in the AutoCAD the same way we do it in excel? 

Software: AutoCAD 2014, AutoCAD C3D, AutoCAD M3D, Revit
Windows 7 (Ultimate 64 bits),
Firefox 20.0,
Kaspersky 2013.

View 6 Replies View Related

AutoCAD 2010 :: How To Write A Block Without Polylining It

May 10, 2013

I have a structure that I need to wblock but I need to bpoly it first, which is a tedious and time consuming process.Is there a way to wblock it without applying bpoly first?

View 3 Replies View Related

AutoCAD 2010 :: Write Macro For Button

Jun 29, 2012

I am trying to write a macro for a button that when I press, it goes to a certain folder on a server.  Normally when you click on the "open" button, it takes you to the last file location.  I want that to be ignored an goes to a certain folder.

View 3 Replies View Related







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