PDA

View Full Version : Help with Macro Please



xspacex
5th Mar 2008, 08:07 pm
Hi,

I am using Autodesk MEP 2008

I was wondering if it is possible to have a macro that will bring in a specific block "Roof Drain" from a specific drawing "C:\data\Blocks.dwg" and multiply this block by the "Annotation Plot Size"?

I know i can make a macro using the command -insert, but when i use this command, it asks for the blocks name, the insertion point, the scale, and then it will insert the block into the drawing. so i am trying to find a way where the macro will insert the block into a drawing without any questions, and it will multiply the block by the drawings "Annotation Plot Size".

Thanks in advance

SLW210
5th Mar 2008, 08:37 pm
All you need to do is have all the answers to the prompts in the Macro. If the block is annotative it should come in as annotative. I haven't tried the annotative part so not sure. If you will do a search, there have been a few threads on this several months ago with several macros to insert blocks in different ways. :thumbsup:

xspacex
5th Mar 2008, 08:59 pm
The problem with an annotative block is that is will scale according to the annotation scale only and i would like it to scale according to the annotation scale and the annotation plot size.

The reason for this: when i change the annotation plot size, i will like my blocks to scale automatically according to the annotation plot size without having to go into the blocks settings and manually change them.

If you look at a schematic symbol, which is a block: if the schematic symbol has a width of 2mm, then it will be inserted into the drawing at a size of 2mm x annotation scale x annotation plot size.

SLW210
5th Mar 2008, 09:06 pm
Such is the reason I use the Tool Palette and Design Center to insert blocks. I f i have time I will look into doing this with a Macro and see what can be done with all the Annotation stuff. NBC is the Annotation guru, maybe he will chime in. :thumbsup: