See the top rated post in this thread. Click here

Results 1 to 4 of 4

Thread: simple filename syntax question

  1. #1
    Member
    Join Date
    2010-08
    Posts
    21
    Login to Give a bone
    0

    Question simple filename syntax question

    I currently have this simple line of code that points to my symbol library file.

    (setq dwg "c:\\subdirectory\\symbol_library.dwg")

    I now wish to move the file to one of my domains but am having difficulties with the syntax

    Can somebody correct the line below for me?

    (setq dwg "http:\\www.mydomain\\symbol_library.dwg")

    Thank You

  2. #2
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    1

    Default Re: simple filename syntax question

    Perhaps this will be of help to you:

    update block from a website (Autocad 2006)
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  3. #3
    Member
    Join Date
    2010-08
    Posts
    21
    Login to Give a bone
    0

    Question Re: simple filename syntax question

    Thank you,

    I saw that solution already, and it is an alternative.

    but I was hoping not to leave any big footprints on my customers' machines, especially with large files.

    I figured since the insert command lets me use local files all the time, a URL with the correct syntax set to a lisp variable solves my problems.

    do i simply have slash / direction \\ and domain syntax problem?

  4. #4
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: simple filename syntax question

    Quote Originally Posted by tufofi View Post
    Thank you,

    I saw that solution already, and it is an alternative.

    but I was hoping not to leave any big footprints on my customers' machines, especially with large files.

    I figured since the insert command lets me use local files all the time, a URL with the correct syntax set to a lisp variable solves my problems.

    do i simply have slash / direction \\ and domain syntax problem?
    The example I provide in the linked page uses this syntax:

    Code:
    (download "http://www.indiesmiles.com/wp-conten...0/12/SMILE.jpg" (getvar 'dwgprefix))
    I hope this answers your question.
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

Similar Threads

  1. simple uv question
    By digital3ds in forum 3ds Max - General
    Replies: 1
    Last Post: 2011-10-11, 01:01 PM
  2. Simple ssget syntax question, I hope.
    By tufofi in forum AutoLISP
    Replies: 8
    Last Post: 2010-08-17, 04:48 AM
  3. Question simple...
    By Pascal.Parent2 in forum Revit Architecture - General
    Replies: 4
    Last Post: 2009-01-13, 02:00 PM
  4. Simple Question, again
    By BeKirra in forum AutoLISP
    Replies: 4
    Last Post: 2008-11-23, 09:32 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
  •