I'm just a beginner but have big wishes and goals. I'm looking for a way to add revision blocks to multiple layout tabs (single .dwg file) at one time.
Per project, we design our product in 2D, in one .dwg file. AutoCAD 2013.
We use the layout tabs for multiple views of the objects that are in modelspace, (each layout tab has the project titleblock on it, but
each layout tab has its own set of revision blocks.)
We "stack" the revision blocks in the Y direction, please see first screenshot)
There are times in the project when ALL layout tabs need the same revision description. For example, Issue for Construction, P.E. comments, As Built... etc. This was previously done by inserting the revision block, editing attributes, Copy-Basepoint, switching to each layout tab, and pasting above the existing RevBlk.
So we would like to be able to insert a revision block into each layout tab using a dialog box or excel.
Explained simply (hopefully): The routine would find the revision block (RevBlk) with the largest Y value
(because we "stack" the revision blocks in the Y direction, please see example) and insert a new revision block (RevBlk) above it. The height (in Y direction) of the block is .1271, so the new RevBlk would need it's insertion point @0,.1271,0 in relation to the existing RevBlk with the highest Y value. Please see first screenshot:
Our Layout Tab labels follow this sequence:
Following that numbering sequence these are possible but not so frequent:
It would be nice if we could control the insertion of new revisions from a dialog box:
(the routine would need to detect what tabs were available?)
I'm sorry for the way it looks, the only way I know how to make one is in Excel's VBAThis routine would be a sub-part of other sequences, but I need to start here before it gets bigger.
So I'm hoping this smaller task will help me along with the larger endeavor.
***
I've reached out for help in a few places but to no avail.
Is this too ambitious?
Perhaps I could piece this together?
1. Find the insertion points of a particular block across all layout tabs. (block name will never change: RevBlk)
2. Prompt user for new attribute values, preferably in a dialog box as shown above.
3.Insert the same block (RevBlk, it will already be loaded into drawing) at the largest Y value of another RevBlk +.1271, across all layout tabs.
The part that is tripping me up is the "across all layout tabs"
If no code solution is available; links to examples, tutorials, similar situations, anything will help.