Menu Item - With spaces

Discussion in 'AutoCAD' started by Fred, Jan 18, 2004.

  1. Fred

    Fred Guest

    Hi

    I am making a menu for some of our blocks and our path to the blocks has a
    space in the path...ie C:/Company Standards/AutoCAD
    Blocks/Stamps/Review.dwg

    When I run the file its putting a hard return after the spaces.

    Without changing the name of the Folders is there something that I can put
    in my menu path?

    This ;

    ***MENUGROUP=MyMenu

    ***POP1

    **[&MyMenu]
    [->&Annotation]
    ID_Stamps [->&Issued Stamps]
    ID_Issued For Review [<-&Issued For Review]^c^c-insert;C:/Company
    Standards/AutoCAD Blocks/Stamps/Review;/;;;

    [--]

    THANKS!

    Fred
     
    Fred, Jan 18, 2004
    #1
  2. Fred

    Mark Propst Guest

    Is the path in "" ?
    like: "C:/Company Standards/AutoCAD Blocks/Stamps/Review.dwg"
    or "C:\\Company Standards\\AutoCAD Blocks\\Stamps\\Review.dwg"
    don't know if that would help?
     
    Mark Propst, Jan 18, 2004
    #2
  3. Fred

    Fred Guest

    Ya...you are probably right it is something in my path...
    I tried your suggestions...Nope No luck.. its crapping out after the C:

    I am getting....

    Command: -insert
    Enter block name or [?]: C://Company
    Invalid block name.

    and

    Command: -insert
    Enter block name or [?]: C:

    Thansk for help!

    Fred

    ***MENUGROUP=MyMenu

    ***POP1

    **[&MyMenu]
    [->&Annotation]
    ID_Stamps [->&Issued Stamps]
    ID_Issued For Review [<-&Issued For Review]^c^c-insert;C:/Company
    Standards/AutoCAD Blocks/Stamps/Review;/;;;

    [--]
     
    Fred, Jan 18, 2004
    #3
  4. Fred

    Walt Engle Guest

    Well....you would really be making life easier if you renamed the path to:
    companystandards
     
    Walt Engle, Jan 18, 2004
    #4
  5. Fred

    GIF Guest

    Try this "C:\\Company Standards\\AutoCAD Blocks\\Stamps\\Review.dwg"

    Not this "C://Company Standards//AutoCAD Blocks//Stamps//Review.dwg"






     
    GIF, Jan 18, 2004
    #5
  6. Fred

    Fred Guest

    Ya I hear ya....I know it would extremely easy...but unfortunately we have
    IT people who's thinking are in Windows based stuff and honestly they never
    heard of DOS and the underscores between names and such.......;-)
     
    Fred, Jan 18, 2004
    #6
  7. Fred

    Fred Guest

    I tried it and no luck....I got

    Command: -insert
    Enter block name or [?]: C://Company
    Invalid block name.

    Thx for the help....

     
    Fred, Jan 18, 2004
    #7
  8. Fred

    Fred Guest

    Hi

    When i inserted your path in the menu and then run it....it says...

    Command: -insert
    Enter block name or [?]: C:



    Fred


     
    Fred, Jan 18, 2004
    #8
  9. Fred

    Fred Guest

    I should of put this in my last post...sorry...

    So now my menu says

    ***MENUGROUP=MyMenu

    ***POP1

    **[&MyMenu]
    [->&Annotation]
    ID_Stamps [->&Issued Stamps]
    ID_Issued For Review [<-&Issued For Review]^c^c-insert;C:\\Company
    Standards\\AutoCAD Blocks\\Stamps\\Review.dwg;/;;;

    [--]
    RESULT;

    Command: -insert
    Enter block name or [?]: C:
     
    Fred, Jan 18, 2004
    #9
  10. Fred

    Dave Guest

    You need the ""
    --
    David Wishengrad
    President & CTO
    MillLister, Inc.
    Software for measuring and stretching multiple 3D solids.
    Http://Construction3D.com




     
    Dave, Jan 18, 2004
    #10
  11. Fred

    ECCAD Guest

    Instead of:
    ]^c^c-insert;C:\\Company Standards\\AutoCAD Blocks\\Stamps\\Review.dwg;/;;;
    Do:
    ^c^c(command "-insert" "c:/company standards/AutoCAD/Blocks/Stamps/Review" pause "" "" "");
    Bob
     
    ECCAD, Jan 18, 2004
    #11
  12. Fred

    Fred Guest

    Hi

    Put what you said and after I run it; A "Substitute Block Name" dialog box
    Pops-up and requests "The file you have chosen can not be used as a block
    name..New Block name"

    I tried both Typing in a new name and also leaving it blank ...still no
    luck....

    I did make sure the block does work....;-)

    Thanks for the help......
    ***MENUGROUP=MyMenu

    ***POP1

    **[&MyMenu]
    [->&Annotation]
    ID_Stamps [->&Issued Stamps]
    ID_Issued For Review [<-&Issued For Review^c^c(command "-insert" "c:/company
    standards/AutoCAD/Blocks/Stamps/Review" pause "" "" "");
    [--]
    A dialog pops up and says..... "
     
    Fred, Jan 18, 2004
    #12
  13. Fred

    Fred Guest

    Where do i need the ""

    thanks for the help


     
    Fred, Jan 18, 2004
    #13
  14. Fred

    Mark Propst Guest

    is there by any chance a block inside the file "c:/company
    standards/AutoCAD/Blocks/Stamps/Review" that has the name "Review"???
    If so you're trying to create a self-referencing block, maybe that's why the
    name substitution came up?
     
    Mark Propst, Jan 18, 2004
    #14
  15. Fred

    Fred Guest

    Hi

    I tried your comment again and It worked....it was actually kinda weird....I
    rebooted my machine and selected the menu item and it worked...

    hmmm go figure...

    Thanks for the help MUCH appreciated....

    Fred
     
    Fred, Jan 18, 2004
    #15
  16. Hi,

    <snip>
    The only thing wrong here are the missing quotes and the slash instead
    of the backslash in the macro.

    I just tested the following on my machine, it worked:

    ^C^C_-insert;"C:/Dokumente und Einstellungen/ruul/Lokale
    Einstellungen/Temp/test";\;;

    so your entry should probably be
    ID_Issued For Review [<-&Issued For Review]^c^c-insert;"C:/Company
    Standards/AutoCAD Blocks/Stamps/Review";\;;;

    hth
    ruul
     
    ruul morawetz, Jan 18, 2004
    #16
  17. Fred

    Fred Guest

    Got it

    Thanks!

     
    Fred, Jan 19, 2004
    #17
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.