+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Full Member
    Using
    MEP 2008
    Join Date
    Feb 2008
    Posts
    34

    Default Help with Macro Please

    Registered forum members do not see this ad.

    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

  2. #2
    Super Moderator SLW210's Avatar
    Computer Details
    SLW210's Computer Details
    Operating System:
    Windows 7 PRO
    Computer:
    IBM Lenovo
    Motherboard:
    ACPI x86
    CPU:
    Pentium(R) Dual-Core CPU E5500 @ 2.80GHz
    RAM:
    4 GB RAM
    Graphics:
    Nvidia Quadro 600 1GB
    Primary Storage:
    300 GB
    Secondary Storage:
    650GB
    Monitor:
    ThinkVision 22"
    Discipline
    Multi-disciplinary
    SLW210's Discipline Details
    Occupation
    Design Draftsman
    Discipline
    Multi-disciplinary
    Details
    Mostly do drafting related to manufacturing. From doing site layouts with proposed updates, additions and renovations to be budgeted and submitted for bid, to updating and changing existing drawings to reflect maintenance and repair/revision work done on site.
    Using
    AutoCAD 2011
    Join Date
    May 2007
    Location
    South Florida, USA
    Posts
    9,128

    Default

    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.
    “A narrow mind and a fat head invariably come on the same person” Zig Zigler



  3. #3
    Full Member
    Using
    MEP 2008
    Join Date
    Feb 2008
    Posts
    34

    Default

    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.

  4. #4
    Super Moderator SLW210's Avatar
    Computer Details
    SLW210's Computer Details
    Operating System:
    Windows 7 PRO
    Computer:
    IBM Lenovo
    Motherboard:
    ACPI x86
    CPU:
    Pentium(R) Dual-Core CPU E5500 @ 2.80GHz
    RAM:
    4 GB RAM
    Graphics:
    Nvidia Quadro 600 1GB
    Primary Storage:
    300 GB
    Secondary Storage:
    650GB
    Monitor:
    ThinkVision 22"
    Discipline
    Multi-disciplinary
    SLW210's Discipline Details
    Occupation
    Design Draftsman
    Discipline
    Multi-disciplinary
    Details
    Mostly do drafting related to manufacturing. From doing site layouts with proposed updates, additions and renovations to be budgeted and submitted for bid, to updating and changing existing drawings to reflect maintenance and repair/revision work done on site.
    Using
    AutoCAD 2011
    Join Date
    May 2007
    Location
    South Florida, USA
    Posts
    9,128

    Default

    Registered forum members do not see this ad.

    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.
    “A narrow mind and a fat head invariably come on the same person” Zig Zigler



Similar Threads

  1. Macro Help
    By Thomas188 in forum AutoLISP, Visual LISP & DCL
    Replies: 9
    Last Post: 11th Jul 2008, 06:55 pm
  2. Run Macro in different Application
    By Kollargoll in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 24th Sep 2007, 10:18 am
  3. Macro Question
    By matrix in forum AutoCAD General
    Replies: 1
    Last Post: 13th Mar 2006, 12:10 am
  4. help with toolbar macro
    By furnituremk'r in forum AutoCAD Drawing Management & Output
    Replies: 3
    Last Post: 20th Feb 2006, 03:29 pm
  5. Macro Help
    By dreese1 in forum AutoLISP, Visual LISP & DCL
    Replies: 0
    Last Post: 18th Aug 2005, 09:09 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts