Standard File Selection Dialog Boxes

Discussion in 'AutoCAD' started by hmsilva, Mar 17, 2005.

  1. hmsilva

    hmsilva Guest

    HI

    Do anyone nows how to open the Standard File Selection Dialog Boxes with a lsp file.
    I am trying to do this without any success...

    Any ideas?

    Thanks to all future responses.

    Regards

    Henrique
     
    hmsilva, Mar 17, 2005
    #1
  2. Does this help?

    (getfiled "select drawing file" "" "dwg" 0)
     
    Jason Piercey, Mar 17, 2005
    #2
  3. hmsilva

    hmsilva Guest

    It helps...

    I still get a run-time error '-2145320924 (80210024)'

    I
    am trying to open a dwg using a lsp file and the problem is the drawing is a read only dwg...

    The code is

    (setq dwgname (getfiled "select drawing file" "//computer/path/" "dwg" 0 ))
    (command "_.VBASTMT" (strcat "AcadApplication.Documents.Open \"" dwgname
    "\", readonly"))
    )

    and i cant find the error...

    Thanks

    Henrique
     
    hmsilva, Mar 17, 2005
    #3
  4. I'm not sure what is causing that error, nor how to fix it.
     
    Jason Piercey, Mar 17, 2005
    #4
  5. (setq dwgname (getfiled "select drawing file" "//computer/path/" "dwg"
    "//computer/path" is not an acceptable default dwg name
     
    Paul Richardson, Mar 17, 2005
    #5
  6. hmsilva

    hmsilva Guest

    I'm trying to select and open the DWG in a specific path...

    Thanks

    Henrique
     
    hmsilva, Mar 17, 2005
    #6
  7. (setq dwgname (getfiled "select drawing file" "c:/01-paul/" "dwg" 0 ))
     
    Paul Richardson, Mar 17, 2005
    #7
  8. hmsilva

    hmsilva Guest

    (setq dwgname (getfiled "select drawing file" "//network shared name/folder/folde/final folder/r" "dwg"
    0 ))

    is the same code
     
    hmsilva, Mar 17, 2005
    #8
  9. ok
     
    Paul Richardson, Mar 17, 2005
    #9
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.