Results 1 to 5 of 5

Thread: Problems with running menu macro.

  1. #1
    Member
    Join Date
    2004-02
    Posts
    13
    Login to Give a bone
    0

    Default Problems with running menu macro.

    I have written a menu macro for Autocad that basically saves the current file as a R2000 format drawing to send to external clients.

    -----------------------------------------------
    ID_ISSUE [SAVE DRAWING FOR ISSUE]^C^CUNDO;MA;TILEMODE;0;ZOOM;E;ZOOM;.95XP;SPELL;ALL;;-XREF;RE;*;-XREF;BIND;*;-purge;all;*;n;;all;*;n;;all;*;n;FILEDIA;0;SAVEAS;2000;;Y;FILEDIA;1;"MADE_MISTAKE?TYPE_'UNDO'_'BACK'_TO_RESTORE"
    -----------------------------------------------
    The problem i'm having is that sometimes after using this macro the saveas dialogue no longer displays the R2004/2 formats instead displaying a dwg, dwf format. This only resets when I restart the appliaction. Also I sometimes get a dysfunctional Xref command, so that when you envoke 'xref' nothing happens. Can anyone find something wrong or a reason for this strange occurrence and a fix for it??

    Also does anyone know of a variable that allows you to snap to Hatching in R2005? In previous versions you were able to snap onto hatching but it does not allow for it any more.

  2. #2
    AUGI Addict
    Join Date
    2015-12
    Location
    Arizona
    Posts
    2,478
    Login to Give a bone
    0

    Default Re: Problems with running menu macro.

    To enable snapping to your hatch objects
    OPTIONS> Selection Tab> Associative Hatches.

  3. #3
    The Silent Type Mike.Perry's Avatar
    Join Date
    2000-11
    Posts
    13,656
    Login to Give a bone
    0

    Default Re: Problems with running menu macro.

    Hi

    Quote Originally Posted by mikeevans
    Also I sometimes get a dysfunctional Xref command, so that when you envoke 'xref' nothing happens.
    What happens if you type _.Xref at the AutoCAD command line?


    Quote Originally Posted by mikeevans
    Also does anyone know of a variable that allows you to snap to Hatching in R2005? In previous versions you were able to snap onto hatching but it does not allow for it any more.
    Take a look at the system variable OSnapHatch

    Setting it to 1 restores behaviour to AutoCAD 2004 and previous releases.

    Have a good one, Mike

  4. #4
    Member tuomo.jarvinen's Avatar
    Join Date
    2015-09
    Location
    Jyväskylä, Finland
    Posts
    49
    Login to Give a bone
    0

    Default Re: Problems with running menu macro.

    I tried Your macro - had to remove one "Y;" to make it work:

    ID_ISSUE [SAVE DRAWING FOR ISSUE]^C^CUNDO;MA;TILEMODE;0;ZOOM;E;ZOOM;.95XP;-XREF;RE;*;-XREF;BIND;*;-purge;all;*;n;;all;*;n;;all;*;n;FILEDIA;0;SAVEAS;2000;;FILEDIA;1;"MADE_MISTAKE?TYPE_'UNDO'_'BACK'_TO_RESTORE"

    Probably this is not the reason for the phenomenoms mentioned, though. We use "etransmit" when sending files to customers (AutoCad 2002).

  5. #5
    Member
    Join Date
    2004-02
    Posts
    13
    Login to Give a bone
    0

    Default Re: Problems with running menu macro.

    tuomo, The "Y" was to answer the "do you want to overwrite this file" else the macro will end and will not re set the filedia value to 1.

    Mike, I have had a go, if I type _xref it still does not work. The only option is to close down and re-start.
    It does not seem to like anything to do with the Xref command as style has also gone.

    I think it is something to do with the change of Release format as after getting this error, when you use the command line (forced through filedia) it no longer supplies the different formats instead just "autocad drawing" see below.

    ((Command: saveas AutoCAD DrawingAutoCAD Drawing
    Save drawing as ))

    I'm a bit baffled.. I don't know why this is happening. if only there was a -saveas command avaliable on the command line with LT/2005. I do like the Etransmit function but it's not avaliable on the command line and reacts differently in LT2004.


    Regards.. Mike.

Similar Threads

  1. 2014: Menu Macro
    By Martin Figlarz in forum AMEP General
    Replies: 2
    Last Post: 2013-10-15, 12:23 PM
  2. Freezing AcadApplication while a macro is running !
    By Noureddine in forum VBA/COM Interop
    Replies: 1
    Last Post: 2012-06-26, 01:01 PM
  3. serial number check before running a macro
    By jbortoli in forum VBA/COM Interop
    Replies: 1
    Last Post: 2009-11-25, 12:57 PM
  4. lisp for running macro
    By chrisw.94380 in forum AutoLISP
    Replies: 1
    Last Post: 2005-10-28, 08:45 PM
  5. running a VBA macro everytime a drawing is opened
    By jpaulsen in forum VBA/COM Interop
    Replies: 2
    Last Post: 2005-05-06, 04:44 PM

Posting Permissions

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