Results 1 to 4 of 4

Thread: Remove drive letter from dwgprefix using Diesel

  1. #1
    100 Club jrichardson's Avatar
    Join Date
    2005-07
    Location
    St. Paul/Minneapolis, MN
    Posts
    143
    Login to Give a bone
    0

    Question Remove drive letter from dwgprefix using Diesel

    I am using rtext to put the file name onto my titleblock by using this code... $(getvar, "dwgprefix")$(getvar, "dwgname"). How can I strip the driveletter from the dwgprefix. We map drives to our project folder location. The location may change depending on what letter the user has it mapped to, so I woul like to not display the letter all together, but still display the project folder structure.

    thanks,
    jamie

  2. #2
    AUGI Addict .T.'s Avatar
    Join Date
    2000-12
    Location
    Lost
    Posts
    1,473
    Login to Give a bone
    0

    Default Re: Remove drive letter from dwgprefix using Diesel

    Maybe
    Code:
    $(substr,$(getvar,"dwgprefix"),2)$(getvar,"dwgname")
    ?

    Assuming you need a diesel expression.

    Make the 2 a 3 if you don't want the "\" either.

    Hope it helps.

  3. #3
    100 Club jrichardson's Avatar
    Join Date
    2005-07
    Location
    St. Paul/Minneapolis, MN
    Posts
    143
    Login to Give a bone
    0

    Default Re: Remove drive letter from dwgprefix using Diesel

    Thanks for the help. That is exactly what I was looking for.

    much appreciated

  4. #4
    AUGI Addict .T.'s Avatar
    Join Date
    2000-12
    Location
    Lost
    Posts
    1,473
    Login to Give a bone
    0

    Default Re: Remove drive letter from dwgprefix using Diesel

    Your welcome, Jamie

Similar Threads

  1. Map Drive Letter with LISP?
    By vsheehan in forum AutoLISP
    Replies: 2
    Last Post: 2013-10-01, 12:03 PM
  2. extract drive letter from dwgprefix
    By dilek in forum AutoCAD Customization
    Replies: 3
    Last Post: 2013-04-22, 12:46 PM
  3. Font mapping to a drive letter in MTXT
    By jmctamney in forum AutoCAD General
    Replies: 7
    Last Post: 2010-09-30, 07:13 PM
  4. UNC pathing verus Drive Letter Mapping
    By kenmarcus in forum Revit Architecture - General
    Replies: 6
    Last Post: 2006-02-07, 07:37 PM
  5. Globally changing the drive letter of all xref paths
    By gregb.68838 in forum AutoLISP
    Replies: 7
    Last Post: 2005-06-20, 08:51 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
  •