+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
  1. #1
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,953

    Default 'Read-Only' File Property

    Registered forum members do not see this ad.

    There is a senior member of our CAD community who is still stuck (mentally, and otherwise) in all things AutoCAD 2006 Land Desktop, and refuses to adopt the CAD Standards implimented last year when my company deployed 2009 (I know! ... Can you say 'employer's market?!')

    Adding to the difficulty in working with this person, is that this person, via Windows Explorer, changes the properties of all project related drawings and files to 'Read-Only' so that nobody else can manipulate the drawings, without their expressed knowledge of whom did what, and when, etc. <- CAD Nazi

    Is it possible, using Visual LISP (ActiveX), to identify a means of manipulating the 'Read-Only' property for a drawing?

    I'm aware of vla-get-readonly, but desire to manipulate this property. Apropos also shows the vlax-vbreadonly function, but I cannot find documentation.

    As always, thanks for your help in advance!
    "Potential has a shelf life." - Margaret Atwood

  2. #2
    Super Moderator rkmcswain's Avatar
    Computer Details
    rkmcswain's Computer Details
    Operating System:
    Windows 7 Pro x64
    Motherboard:
    Intel DZ77RE-75K
    CPU:
    i7-3770K 3.50GHz
    RAM:
    32GB
    Graphics:
    Nvidia Quadro 2000
    Primary Storage:
    125GB SSD
    Secondary Storage:
    500GB SATA
    Monitor:
    ASUS 27" / ASUS 24"
    Discipline
    Civil
    Using
    Civil 3D 2013
    Join Date
    Sep 2005
    Location
    Houston
    Posts
    3,633

    Default

    So what is to stop someone from simply removing the read-only flag using Explorer?
    IOW - why use AutoCAD to manipulate files?

    More importantly, why is this person allowed to sabotage working files like this?

    This screams "management problem" - not a technical problem...

  3. #3
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,953

    Default

    Quote Originally Posted by rkmcswain View Post
    So what is to stop someone from simply removing the read-only flag using Explorer?
    IOW - why use AutoCAD to manipulate files?
    Absolutely nothing.

    Windows Explorer is how I presently have to do this. However, in doing so, you're now the owner of said files, having been the last person to modify their properties. Which is fine, it's just unnecessary, as we'd already be the owner of the file when we save the drawing (duh!).

    As I only work with this person infrequently, I often *forget* that they do this, as I do the *right thing*(?), and work IAW the standards that have been implemented for the last year.

    As to why do this from AutoCAD, I ask because when I do have to work with this person, it's usually at the request of my boss (one of the VP's) who usually gets handed a hard copy of something, and wants me to make a copy with some changes. So I open the drawing based upon the stamp information, only to see the 'Read-Only' alert.

    I was only reminded of this today, as I had to email a client some information as illustrated in the example above. Hence the question posed in this thread.

    Quote Originally Posted by rkmcswain View Post
    More importantly, why is this person allowed to sabotage working files like this?

    This screams "management problem" - not a technical problem...

    Short answer... Ego. Shocking, I know.

    Long answer (and from the horse's mouth)... This person setup 2006 enterprise wide (layer naming conventions, .arg, .cui, .lsp, directory structure, etc.), and then weren't promoted to Corporate CAD Manager (CCM), so everything the new CCM (external hire in 2007) did thereafter was somehow *wrong*. They've convinced their manager of this, and were basically given free rain to use whatever they wanted, i.e. 2006, as long as they were productive.

    We're not talking about project revisions for projects that originated in 2006 (I myself hop back now and then), we're talking about projects that were created this week. Alas, I digress....

    :: Back on topic ::

    Again, if there's any suggestions, please let me know.
    "Potential has a shelf life." - Margaret Atwood

  4. #4
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,015

    Default

    Quote Originally Posted by RenderMan View Post
    Again, if there's any suggestions, please let me know.
    Meet this guy in the parking lot, with a brick.
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

  5. #5
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,953

    Default

    Quote Originally Posted by alanjt View Post
    Meet this guy in the parking lot, with a brick.
    LOL - That won't be necessary.

    They suffer from what Mark Kiker described as being "Too Good For [His] Own Good" and he refuses to anything new (that he hasn't setup ).

    Besides, at the rate they keep making other managers angry, oh, how did one of my managers state it... "their days are numbered!"
    "Potential has a shelf life." - Margaret Atwood

  6. #6
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,015

    Default

    When it shows you the "Read-Only" tag, just open the file's directory, remove the "Read-Only" property and do a SaveAs, using the same drawing name.

    Straight out of my toolbox: opens directory of active drawing:
    Code:
    (defun C:DIRR nil (startapp "EXPLORER" (getvar 'dwgprefix)) (princ))
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

  7. #7
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,953

    Default

    Quote Originally Posted by alanjt View Post
    When it shows you the "Read-Only" tag, just open the file's directory, remove the "Read-Only" property and do a SaveAs, using the same drawing name.

    Straight out of my toolbox: opens directory of active drawing:
    Code:
    (defun C:DIRR nil (startapp "EXPLORER" (getvar 'dwgprefix)) (princ))
    Understood, thanks for the suggestion.
    "Potential has a shelf life." - Margaret Atwood

  8. #8
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,953

    Default

    "No [Write Access] for YOU!" <- CAD Nazi
    "Potential has a shelf life." - Margaret Atwood

  9. #9
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,015

    Default

    Quote Originally Posted by RenderMan View Post
    "No [Write Access] for YOU!" <- CAD Nazi
    "You want [write access]? Two dollars."
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

  10. #10
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,953

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by alanjt View Post
    "You want [write access]? Two dollars."
    That's hilarious!
    "Potential has a shelf life." - Margaret Atwood

Similar Threads

  1. Customization .cui file is read only
    By uhcafigdc in forum AutoCAD General
    Replies: 4
    Last Post: 8th Jan 2010, 08:21 pm
  2. Read file - VBA
    By neophyte in forum AutoLISP, Visual LISP & DCL
    Replies: 1
    Last Post: 30th Jul 2009, 12:30 pm
  3. My custom CUI file is Read Only??
    By StykFacE in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 3
    Last Post: 28th Apr 2009, 05:06 pm
  4. VBA Read file
    By mien in forum AutoLISP, Visual LISP & DCL
    Replies: 13
    Last Post: 17th Apr 2009, 08:08 am
  5. Unable to edit property of AutoCAD® DWG file
    By Autodesk in forum AutoCAD RSS Feeds
    Replies: 0
    Last Post: 21st Feb 2007, 10:40 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