Results 1 to 4 of 4

Thread: Setting more than one tool palette path in a CUI command

  1. #1
    AUGI Addict jpaulsen's Avatar
    Join Date
    2002-04
    Location
    Colorado
    Posts
    2,020
    Login to Give a bone
    0

    Default Setting more than one tool palette path in a CUI command

    I know there are many posts on AUGI and the Autodesk DGs regarding this subject and I think I read all of them. I have a question about my specific code. I am trying to create a CUI command to set the tool palette path to more than one folder and I can't seem to get it to work.

    I want my path to be Z:\Autodesk 2008\JRToolPalette;U:\Autodesk 2008\ToolPalette. Here is the CUI command macro:
    Code:
     
    ^C^C*_ToolPalettePath;(strcat "Z:/Autodesk 2008/JRToolPalette" ";" "U:/Autodesk 2008/ToolPalette");
    When I execute the command it displays the following at the command prompt:

    Command: *_ToolPalettePath
    Enter new value for *_TOOLPALETTEPATH <"Z:\Autodesk
    2008\JRToolPalette;U:\Autodesk 2008\ToolPalette">: (strcat "Z:/Autodesk
    2008/JRToolPalette" "
    ("_> " "U:/Autodesk 2008/ToolPalette")
    "Z:/Autodesk 2008/JRToolPalette\nU:/Autodesk 2008/ToolPalette"


    Notice the \n between the two paths.

    When I run the toolpalettepath command a second time it displays:

    Command:
    *_TOOLPALETTEPATH
    Enter new value for *_TOOLPALETTEPATH <"C:\Documents and
    Settings\paulsenj\Application Data\Autodesk...">:


    As you can see it's setting the path to my local windows profile. (It does change this path. Even If I have it set the network before running the command.)

    The strange thing is if I type
    Code:
     
    (strcat "Z:/Autodesk 2008/JRToolPalette" ";" "U:/Autodesk 2008/ToolPalette")
    at the command prompt it returns the value (Z:\Autodesk 2008\JRToolPalette;U:\Autodesk 2008\ToolPalette) I want set.

    Does anyone have any ideas how I can get this to work?
    Last edited by jpaulsen; 2007-09-20 at 01:41 AM.

  2. #2
    AUGI Addict jpaulsen's Avatar
    Join Date
    2002-04
    Location
    Colorado
    Posts
    2,020
    Login to Give a bone
    0

    Default Re: Setting more than one tool palette path in a CUI command

    Could a moderator please move this? Maybe to the CUI or Lisp forum.

    I'm not getting any replies here.

  3. #3
    All AUGI, all the time zoomharis's Avatar
    Join Date
    2005-02
    Location
    Abu Dhabi (Native-India)
    Posts
    506
    Login to Give a bone
    0

    Default Re: Setting more than one tool palette path in a CUI command

    Quote Originally Posted by jpaulsen View Post
    Could a moderator please move this? Maybe to the CUI or Lisp forum.

    I'm not getting any replies here.
    Hi Paulsen,
    Sorry for being late. Your problem is that you are supplying a control character semicolumn (path seperator) in your macro which is actually being interpreted as an enter. You have to use a lisp equivalent for that.

    ^C^C*_ToolPalettePath;(strcat "Z:/Autodesk 2008/JRToolPalette"(chr 59)"U:/Autodesk 2008/ToolPalette");

  4. #4
    AUGI Addict jpaulsen's Avatar
    Join Date
    2002-04
    Location
    Colorado
    Posts
    2,020
    Login to Give a bone
    0

    Default Re: Setting more than one tool palette path in a CUI command

    Thanks Haris. That worked great.

    I am assuming that will work with more than two paths. I will test it later today but I am not expecting any problems.

Similar Threads

  1. Setting text style from tool palette
    By jpcadconsulting347236 in forum AutoLISP
    Replies: 4
    Last Post: 2015-06-05, 04:53 PM
  2. Replies: 0
    Last Post: 2008-08-18, 07:57 PM
  3. Change tool palette path?
    By randyspear in forum AutoCAD General
    Replies: 1
    Last Post: 2008-05-23, 03:07 PM
  4. Change Tool Palette path via VBA
    By mboyer in forum VBA/COM Interop
    Replies: 2
    Last Post: 2007-02-21, 01:46 PM
  5. Setting path for Xref & Insert Command
    By cadconcepts in forum AutoLISP
    Replies: 4
    Last Post: 2006-03-26, 11:17 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
  •