Jump to content

Search the Community

Showing results for tags 'scripts'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • CADTutor
    • News, Announcements & FAQ
    • Feedback
  • AutoCAD
    • AutoCAD Beginners' Area
    • AutoCAD 2D Drafting, Object Properties & Interface
    • AutoCAD Drawing Management & Output
    • AutoCAD 3D Modelling & Rendering
    • AutoCAD Vertical Products
    • AutoCAD LT
    • CAD Management
    • AutoCAD Bugs, Error Messages & Quirks
    • AutoCAD General
    • AutoCAD Blogs
  • AutoCAD Customization
    • The CUI, Hatches, Linetypes, Scripts & Macros
    • AutoLISP, Visual LISP & DCL
    • .NET, ObjectARX & VBA
    • Application Beta Testing
    • Application Archive
  • Other Autodesk Products
    • Autodesk 3ds Max
    • Autodesk Revit
    • Autodesk Inventor
    • Autodesk Software General
  • Other CAD Products
    • BricsCAD
    • SketchUp
    • Rhino
    • SolidWorks
    • MicroStation
    • Design Software
    • Catch All
  • Resources
    • Tutorials & Tips'n'Tricks
    • AutoCAD Museum
    • Blocks, Images, Models & Materials
    • Useful Links
  • Community
    • Introduce Yourself
    • Showcase
    • Work In Progress
    • Jobs & Training
    • Chat
    • Competitions

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 9 results

  1. 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
  2. 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!
  3. 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
  4. 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
  5. 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]
  6. 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.
  7. 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).
  8. 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
  9. 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...
×