+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Full Member
    Using
    not specified
    Join Date
    Jun 2003
    Location
    Planet Earth
    Posts
    25

    Default Can you make a macro repeat itself?

    Registered forum members do not see this ad.

    I have written a macro for a pic button that inserts the same block in the dwg. over and over again, once you specify the insertion point of the block it repeats itself again and inserts it again. I have accomplished this by copying the entire macro over and over again in the macro string box but theres only enough space to do this for about 4 times. Is there something that I can type at the end of the macro to tell it I want it to keep repeating the entire string untill I hit escape? I am running ACAD 2002LT.

  2. #2
    Administrator CADTutor's Avatar
    Computer Details
    CADTutor's Computer Details
    Operating System:
    Windows 7 Home Premium 64bit
    Motherboard:
    Asus P7P55D-E PRO
    CPU:
    Intel Core i7-860
    RAM:
    4GB PC3-12800 C8 Corsair Dominator
    Graphics:
    NVIDIA Quadro FX 1800 768 MB
    Primary Storage:
    Intel X25-M SSD 160GB
    Secondary Storage:
    Samsung Spinpoint 320GB
    Monitor:
    BenQ FP241W 24" Wide
    Discipline
    Education
    CADTutor's Discipline Details
    Occupation
    Senior Lecturer (Digital Design), Landscape Architect & Web Designer
    Discipline
    Education
    Using
    AutoCAD 2014
    Join Date
    Aug 2002
    Location
    Hampshire, UK
    Posts
    3,606

    Default

    The best solution would be a simple LISP routine that prompts for the number of blocks required and then inserts them for you.
    Tip: Please do not PM or email me with CAD questions - use the forums, you'll get an answer sooner.
    AutoCAD Tutorials | How to add images to your posts | How to register successfully | Forum FAQ

  3. #3
    Super Moderator fuccaro's Avatar
    Using
    AutoCAD 2006
    Join Date
    Nov 2002
    Location
    Romania, Marosvasarhely
    Posts
    3,540

    Default

    I am sure that with AutoCAD 2000LT you can not work with Lisp. Is it the 2002LT the first LT version with Lisp? I still use the AutoCAD 2000 but as far as I know -and please correct me if I am wrong!- lisp will not work for AutoCAD...LT. Unless if you installed some other software to extend the possibilities.
    It's nice to be nice, but sometimes is nicer to be evil!.
    Tip: Please do not PM or email me with CAD questions - use the forums, you'll get an answer sooner.

  4. #4
    Administrator CADTutor's Avatar
    Computer Details
    CADTutor's Computer Details
    Operating System:
    Windows 7 Home Premium 64bit
    Motherboard:
    Asus P7P55D-E PRO
    CPU:
    Intel Core i7-860
    RAM:
    4GB PC3-12800 C8 Corsair Dominator
    Graphics:
    NVIDIA Quadro FX 1800 768 MB
    Primary Storage:
    Intel X25-M SSD 160GB
    Secondary Storage:
    Samsung Spinpoint 320GB
    Monitor:
    BenQ FP241W 24" Wide
    Discipline
    Education
    CADTutor's Discipline Details
    Occupation
    Senior Lecturer (Digital Design), Landscape Architect & Web Designer
    Discipline
    Education
    Using
    AutoCAD 2014
    Join Date
    Aug 2002
    Location
    Hampshire, UK
    Posts
    3,606

    Default

    Oops, sorry - Fuccaro is right, LT does not support LISP. I must be working too hard!
    Tip: Please do not PM or email me with CAD questions - use the forums, you'll get an answer sooner.
    AutoCAD Tutorials | How to add images to your posts | How to register successfully | Forum FAQ

  5. #5
    Senior Member Kate M's Avatar
    Discipline
    Structural
    Using
    Revit Structure 2013
    Join Date
    Sep 2003
    Location
    Washington, DC
    Posts
    477

    Default

    Was there ever an answer to this? I got a macro for turning layers off (for my co-workers who don't use full AutoCAD), and I'd like to be able to pick more than one layer at a time...

    Thanks!

    -Kate

  6. #6
    Senior Member Kate M's Avatar
    Discipline
    Structural
    Using
    Revit Structure 2013
    Join Date
    Sep 2003
    Location
    Washington, DC
    Posts
    477

    Default

    Found it! Would you believe the help file was useful? ;-)

    Putting a "*" before the ^C^C in the macro makes it repeat as long as you want.

  7. #7
    TevsR
    Guest

    Default

    Not always. Try this macro: *^C^Cmpedit;\;;width;2;exit
    (This is an attempt to change PL width one by one). You will get loop. (Press ESC to exit)

  8. #8
    Super Member
    Using
    Architectural DT 2007
    Join Date
    Dec 2002
    Location
    London
    Posts
    1,087

    Default

    Registered forum members do not see this ad.

    Why not always TevsR?Just curious.

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