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.
Is it possible to get the output from the MEASUREGEOM command back into an VL program?If I use:(setq angle (command "MEASUREGEOM" "a" line1 line2 "x"),
the value of the angle is displayed on the screen but is not passed back into the program and the variable "angle" is not set.Is there a way that I can set this variable?
I have an issue with 2013 that I loose command line output; as in no muttering or cmdecho but I do not have anything set to that way. My cmdecho is set to 1, and nomutt is set to 0.
If I opent textscr then I can see the out put, but nothing on the command line.
I have never seen this before but it just started withing the last week or so and it makes debugging a real difficult.
I want to add an attribute to a BLK file I have from a past release. Using this .BLK file, I can create a table from attributes in my drawing using a LISP routine.
It seems there is no way to create or edit a .BLK file that I can use for this in ACAD 2011, it only creates .DXE files.
The problem with the .DXE file is that is saves the drawing that the original extraction is performed on. When I use the .DXE in another drawing, it uses the original drawing data unless I manually "delete" the old drawing reference using the dialog box in the extraction wizard.
The .BLK file works perfectly, but I want to add an attribute. How can I create a new, or edit my old .BLK file?
Will I have to reinstall an older version of AutoCAd to accomplish this?
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.
I am unable to use the file command open, new etc. I click on open and nothing happens no file box opens. As soon as you do anything else the program says not responding and you have to close it down. I can click on an autocad file in windows explorer and bring up the file this way but as soon as you try any file command such as save as the program freezes again. I am running windows 7 professional and the autocad LT 2011 64 bit program.
An example is when I'm drawing a box, line etc and attempt to type "@5,-5", AutoCAD somehow jumps to a window on the side and if I don't notice will restore the window I'm working in and not complete the command I typed ("@5,-5" in this case). If I do notice in time, then I have to pres ESC about 3-4 times, which will then have me back on the command line with the text "@5,-" already typed (as if that was were I paused while typing??). The attached picture shows the dialog box on the top left, and the command line as if I've only typed "@", when after pressing ESC as mentioned the full "@5,-" text becomes visible on the command line?
Also, as a note: I've already ruled out that I'm pressing other keys that could possibly cause this...
With the command window displayed at the bottom of the screen, everything slows down. The cursor momentarily freezes and it takes a second or two for commands to be fulfilled. Also, the command window is about 7 lines high; in the past, I have shrunk it to maybe 3 or 4 lines but I cannot shrink this wndow.
Then, when I push control-9 and the window disappears, everything speeds up to normal!
I tried turning off my internet connection and my McAfee Viruscan as well. Running without the command window makes it hard to draft. Since I type shortcuts, I figure I must have hit the wrong key and unleashed something unspeakably terrible.
I am running AutoCAD version 10 on my PC, with Windows XP Professional.
Suddenly, the multi line text editor in no longer displaying when I select "new" from within the DIMEDIT command. I'm presuming that there is some sort of system variable that controls this, but I have not been able to find it in the help files. The Mtext editor is working from the Mtext command, so I know it's not the DTEXTED variable.
I'm having some difficulty with a new issue that is occuring:I have a 3D model that I'm attempting to render. It has rendered recently with no issues. Now, this morning, I get the following error message:
Unable to create output file - Make sure destination directory is writable and that the disk is not full. Rendering aborted.The drive is only approx. 30% full. I've closed/reopened the file to no avail.Also, I've closed/restarted ACAD.It always seems that AutoCAD acts goofy whenever I have a deadline.
I'm using Architecture 2011 trial and it generates good rendering, but after adjusting sun angle (time), I received a message: Make sure the destination directory is writable and that the disk is not full. Rendering aborted.
Attext output file give a lot of extra empty values when template file include attributes from more than one block.
The drawings I want to extract data from has two blocks with attributes. If I make the template file with attributes from both blocks, I get a lot of extra empty values. If I split the template file in two with the attributes from each block in each template file, the output file is OK.
A copy of the same attributs giving different number of values. (Block REV)
Two template files - 'REV','A','28.03.92','ISOLA','FS','SM','KJ' (Block name + 6 att)
One template file - 'REV','','','','','','','','','','','','A','28.03.92','ISOLA','FS','SM','KJ' (Block name + 17 att.)
How can I get a clean output file giving only the number of values the template file is asking for when the template file has attributes from two blocks? I use ACAD 2010.
I have the following error message:ERROR: Could not create frame surface of window-sectional profile..At various windows and door-window-combinations I added profiles.
In the program window, it looks like its been pushed way in on the full image in the source window. No matter what I do, I can't get it to appear the same as in the source window...
When first making the video in Edit mode, is there any way to see the final output size before or after selecting Create Video File before the file is created.
If I choose Create Disk it will show the output size.
If not what would the maximum running time be for DVD output?
I've just completed my first project and when I attempt to create a video file for hard disk output I'm unsure what option I should select from the drop down box that gives me the highest quality without re-rendering the video.
My AVCHD 50p original files are according to the file properties in VSP -
PAL HDMV H.264 Video 24bits, 1920/1080, 16.9 50.000 frames/sec Variable bit rate (max.26000 kbps) Dolby Digital Audio 48000 Hz, 5.1 channels 384 kbps
So it looks like I need to select AVCHD 1920x1080 50p however in the properties for that file creation, the video bitrate is max 20000 kbps (my video 24.7) and audio is only 2.0 (my audio 5.1). I really would like to retain the 5.1 audio and my higher video bitrate.
Also when I view the project properties the video is shown as 1024 x 576.
PAL double (50 fps) Microsoft AVI files 24 bits, 1024 x 576, 50 fps Frame-based Uncompressed PCM, 48.000 kHz, 16 bits, 5.1 Channels
I've been killing myself with trying to get the following (acet-getvar '("BNS_EDITTIME_TOTAL")) in standard time format
rather than julian and then printing it to a file. I never found a way. So I'm figuring the next best thing is to just run the edittime command and then set a custom variable to report the last line of the command history. Then I can open a file and print it to the file. But alas my skills are lacking.
I have a parent directory with x-amount of folders contained inside. I say X-amount because I would like to keep adding or deleting folders as time progresses. I want the folders contained within this parent directory do be read into a lisp variable and then be printed to the command prompt till every folder is displayed by name, then the loop may stop.
this gives me the path of the acad.lsp, that is provided it actually exists, however because the acad.lsp is not compulsory it may indeed not exist meaning that the command prompt would return the NIL value instead of the pathname.
based upon that I would like to create a new acad.lsp file if not found by autocad.
Run TIME command and then take the resulting text and save it to a file.
Ideally, the text file should be named based on the drawing name. I know there's ways to write text to a file but I haven't had any luck taking the output of a command and exporting it.
how to create a Shortcut key "Alt + c" for "File - close" command? I like the same seeting as my Inventor seeting, and the Inventor is so easy to setup my Shortcut keys use "Tools-Customise-Keyboard".