Consulting

Results 1 to 6 of 6

Thread: How can I disable the Save As command for AutoCAD

  1. #1

    Question How can I disable the Save As command for AutoCAD

    Hi everyone,


    I'm currently maintaining an MS Access database that manages AutoCAD files over a network. And now I need in some instances, for a specific user group to just have viewing permission over some of the drawing files and not be able to save the drawing file in their local drives.

    I've been looking around for an efficient method for this for quite sometime now... but have had very little luck.

    At best, I was able to disable the Save As button in the File Menu using MenuItem from the AutoCAD application object... but it still doesn't override the Ctrl-S saveas shortcut and the saveas from the AutoCAD commandline.


    many thanks,

    se

  2. #2
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    You could save the view only files to a specific folder on the network as .dwf
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  3. #3
    it seems I am left with no other choice,

    but then, of course it's just a redundant file... because i would still have to maintain the .dwg as the editable form

    i'm still slightly bothered that I can't disable some commands for the autcad application object, specially for security purposes.


    still,
    thanks for your time

  4. #4
    Moderator VBAX Master Tommy's Avatar
    Joined
    May 2004
    Location
    Houston, TX
    Posts
    1,184
    Location
    Hi syntaxerror,

    Have you tried AcadDocument_BeginSave ?
    I need in some instances, for a specific user group to just have viewing permission over some of the drawing files and not be able to save the drawing file in their local drives.
    the read/write is/should be taken care of on the server side for groups. then in the begin save check for c: in the filename if it is there set the filename to "@@" and .......
    the dvb file would need to be loaded on startup each time. you can push that from the server hopefully. worse case put the code in the document of each dwg. if sever not there select all delete set undo to new mark no havey no more del bak ......

    just a couple pennies


  5. #5
    wait...
    let me get it straight, are saying that i'm supposed to somehow trap the begin_save event, and override the filename selection of the user?

    i think i can see that, but i don't know how I can handle the event through vba code in ms access...
    which would lead to... yes, placing the code on all the dwg files
    and there are tons of it

    it's a good idea, but i have not yet a clear view on how i can implement it

    ty
    se

  6. #6
    Moderator VBAX Master Tommy's Avatar
    Joined
    May 2004
    Location
    Houston, TX
    Posts
    1,184
    Location
    If you are using vba in MS access to create the object Acad you can also impliment the withevents for acaddocument which in turn the beginsave or any other event.

    manages AutoCAD files over a network
    Could you explain in more detail?
    When the drawing closes does the user still have control of acad or does it go back to the access application, what does the user do with the drawings - the read only and the others can the user insert the drawing as a block?

Posting Permissions

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