Author Topic: File with the same Name  (Read 2461 times)

0 Members and 1 Guest are viewing this topic.

GDF

  • Water Moccasin
  • Posts: 2081
File with the same Name
« on: August 24, 2009, 04:41:31 PM »
AutoCAD used the same name for its acetutil.arx express file for both 32bit and 64bit versions.
I renamed the acetutil.arx file to acetutilx64.arx because it is on the network along with the acetutil.fas and acetutil.arx files.

Usually whenever a 64 bit file is named it has the x64 added to the name. For example DOSLib17x64.arx.

Has anyone found this practice elsewhere?

Here is how I fixed the problem:
Code: [Select]
(defun acetutil-loader ()
  (cond ((and (>= (distof (substr (getvar "acadver") 1 4)) 18.0)
              (< (distof (substr (getvar "acadver") 1 4)) 18.1))
         (if (and (vl-file-directory-p "C:\\Program Files (x86)")
                  (= (ver) "Visual LISP 2010 (en)"))
           (arxload (strcat ARCH#DIRL "ARCH\\SUPPORT\\V_18\\acetutilx64.arx"))
           (arxload (strcat ARCH#DIRL "ARCH\\SUPPORT\\V_18\\acetutil.arx"))))
  )
)
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

Andrea

  • Water Moccasin
  • Posts: 2372
Re: File with the same Name
« Reply #1 on: August 24, 2009, 06:37:53 PM »
Hi Gary..

If your ARX file are on a Network folder...

Code: [Select]
(if (vl-string-search "64" (getenv "PROCESSOR_ARCHITECTURE"))
  (arxload
    (strcat arch#dirl "ARCH\\SUPPORT\\V_18\\acetutilx64.arx")
  )
  (arxload
    (strcat arch#dirl "ARCH\\SUPPORT\\V_18\\acetutil.arx")
  )
)

Otherwise...I think you don't have to..

you can also split the 32 and 64bits PAth...
and add it on the AutoCAd search Path directory...to use
(findfile...

Note tha I use
(getenv "PROCESSOR_ARCHITECTURE")
because "C:\\Program Files (x86)" can be renamed from user if they have write permission.

 :wink:
Keep smile...

GDF

  • Water Moccasin
  • Posts: 2081
Re: File with the same Name
« Reply #2 on: August 25, 2009, 10:26:35 AM »
Thanks Andrea
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64