Automate Block Creation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Automate Block Creation Macro
Curley question for all you AutoCAD macro masters out there.
I have an issue where I need a macro that automates the repetitive process of making an AutoCAD block.
Im often tasked to create cut files for manufacturing processes. These cut files are generally closed polylines that contain a part number in the form of single line text & various other geometries contained within the boundary of the closed polyline.
My normal workflow to create a single part is
- Double click on the part number which is AutoCAD single line text to bring up the text editor
- Highlight & copy the part number onto the clipboard (ctrl+c)
- Escape out of the text editor
- Bring up the AutoCAD block pallet (“block” or “b” command)
- Paste the copied part number into the block name field
- Select a base point
- Select the objects
- Press Enter and im done with one part
I use this workflow for Three reasons,
- It groups all the geometries nicely together
- It throws up a duplicate part number red flag in the form of the AutoCAD redefine block prompt if I accidently have duplicate part numbers
- It allows me to copy all parts elsewhere in model space and nest all the parts / blocks into sheets while still maintaining some order of the original parts. I end up with 2 instances of each part /block. 1 which is where I originally created it and a second instance which is nested in a sheet elsewhere in model space. If I need to go back to modify A part I can do that in the original instance area which is uncluttered and has the surrounding parts adjacent for reference. I find trying to modify parts after they have been nested difficult as they are often orientated at odd angles as a result of the nesting process.
I have made a short screencast of my workflow to illustrate should the above not make sense. You can view it on here https://youtu.be/b__oUKJ9zDQ
While some people may not think my process to tedious I tend to go a little crazy when some of my assemblies are getting up to 1000 parts.
It would be great if I hade a Macro that automated steps 1 through 10 above that pauses for user input at steps 1, 6 & 7.
Any help greatly appreciated.