Search the Community
Showing results for tags 'scripts'.
-
Sir, can you please tell, in MicroStation v8i, how to use additional program, VBA, script, tools, application, etc for drafting, printing, area, total length, PDF, or other purpose, (Like in AutoCAD, lisp, vlx, VBA, macro, add-in, plugin) If you have any things please share and explain also. Thanks
- 2 replies
-
- microstation v8i
- program
- (and 5 more)
-
Batch processing of script files on drawing files with matching names
PipelinerUSA posted a topic in AutoLISP, Visual LISP & DCL
I have a directory populated with several hundreds of drawings and scripts. For every drawing "A.dwg" there is a script "A.scr": A.dwg A.scr B.dwg B.scr C.dwg C.scr D.dwg D.scr ... Every script is unique. What I am looking to do is figure out a way to run every script on its associated drawing. Tools like ScriptPro.exe and the Civil 3D out-of-the-box Batch Save Utility work by running 1 script on many drawings in a folder, but in my case there is one unique script to be ran on one unique drawing. Any ideas would be appreciated. -
Script file to write entire set of drawings to a a new folder using WBLOCK
conradsteve posted a topic in AutoLISP, Visual LISP & DCL
Hi, I have this batch file that opens each drawing in a specific folder, does a purge on each file, then saves and closes it. What I'd like to do is add a WBLOCK command to that script file that would write the entire drawing to a designated folder, but instead of calling the new file 'new block.dwg' (which is the default name), it would use the same name as the original. Below are a few lines from the script file and I'd like to insert the WBLOCK command after the purges. Is that possible? Many thanks _open "U:\Project\A - CURRENT DRAWINGS\TitleBlock.dwg" _purge all * no _purge all * no _purge all * no _zoom extents _qsave _close -
changing all nested blocks' color to bylayer
NoelStalker posted a topic in AutoLISP, Visual LISP & DCL
Hello helpful people. I'm looking for a routine to reference edit every block in my drawing and change the color of everything to "bylayer". I can make a script easily enough that will chprop all color to bylayer but that won't touch things inside blocks. What do you do when you encounter this problem? Thanks in advance! -
Batch Multi-Sheet DWF Publish using Scripts
ColinHolloway posted a topic in The CUI, Hatches, Linetypes, Scripts & Macros
Hi All, I have a functioning Spooling lisp routine that allows me to process a series of drawings from a list in a text file. At the moment I can run routines, print and generate single sheet DWF files. My company now has the requirement to generate Multi-Sheet DWF files that include the Model and all Layouts. I am creating the DSD files for each drawing that opens with the spool process and then run -PUBLISH command using the created DSD file. When I step the script through one line at a time it all works perfectly, but when I run the spool un-interupted, AutoCAD crashes with a Fatal Error: Unhandled Access Violation Writing 0x009b Exception at 9bh I am starting to think that it is not possible to create a Multi-Sheet DWF using Scripts, but I would really love to get this working. Any and All input greatly appreciated. Colin Holloway- 2 replies
-
- publish
- multi-sheet
-
(and 2 more)
Tagged with:
-
How to make blocks change over a certain height
drafting3 posted a topic in AutoCAD 2D Drafting, Object Properties & Interface
Hi all, I have a dynamic block of some door hinges. Depending on the height of the door, depends on the type & quantity of hinges used. I was wondering if it is possible to have a block that detects height? If I insert the hinge block onto my drawing, and snap the base point of the block to the bottom left of the desired door, stretch the pick point to the top, I would like it to automatically change from 2x small hinges (for doors under 312mm high), to 2x large hinges (for doors under 1000mm), and finally to 3x large hinges (for doors over 1000mm)? I have attached a PDF for visual reference to what I'm talking about. I have no idea on any 'Lisp/VBA/Scripts' in AutoCAD, so any suggestions would be greatly appreciated. Thanks, drafting3. DOORS.pdf -
How to make blocks change over a certain height
drafting3 posted a topic in AutoLISP, Visual LISP & DCL
Hi all, I have a dynamic block of some door hinges. Depending on the height of the door, depends on the type & quantity of hinges used. I was wondering if it is possible to have a block that detects height? If I insert the hinge block onto my drawing, and snap the base point of the block to the bottom left of the desired door, stretch the pick point to the top, I would like it to automatically change from 2x small hinges (for doors under 312mm high), to 2x large hinges (for doors under 1000mm), and finally to 3x large hinges (for doors over 1000mm)? I have attached a PDF for visual reference to what I'm talking about. I have no idea on any 'Lisp/VBA/Scripts' in AutoCAD, so any suggestions would be greatly appreciated. Thanks, drafting3. [ATTACH]41844[/ATTACH] -
How to make blocks change over a certain height
drafting3 posted a topic in The CUI, Hatches, Linetypes, Scripts & Macros
Hi all, I have a dynamic block of some door hinges. Depending on the height of the door, depends on the type & quantity of hinges used. I was wondering if it is possible to have a block that detects height? If I insert the hinge block onto my drawing, and snap the base point of the block to the bottom left of the desired door, stretch the pick point to the top, I would like it to automatically change from 2x small hinges (for doors under 312mm high), to 2x large hinges (for doors under 1000mm), and finally to 3x large hinges (for doors over 1000mm)? I have attached a PDF for visual reference to what I'm talking about. I have no idea on any 'Lisp/VBA/Scripts' in AutoCAD, so any suggestions would be greatly appreciated. Thanks, drafting3. -
Is it at all possible to swtich between layout tabs by a command? I'm messing around with a .bat file that creates a script for printing that only prints layout1. The CAD file I'm trying to print has multiple tabs and all tabs have a different name, Lot 02, Lot 03, Lot 04 (not the standard layout1, layout2, etc).
-
I love AutoScript by Caddig, but I just got upgraded from 2010 to 2012 and now it won't work. Does anyone know of any other programs that will work with 2012 to perform the same function? Thanks, John
-
I wrote scripts in acad 2000, but was away from autocad for a few months and am back with acad 2010. I'm trying to get autocad to read a script I've written, but when I type script on the command line and look for my script(on my desktop) acad won't display the filename.scr. I tried changing locations of the script and looking there, and it still didn't work. I tried using acad 2008(still resident on my computer) and that didn't work. What do I need to click to wake autocad 2010 up to where it needs to look, and more importantly show that it has found the filename.scr I know is where I put it? Regards...