Author Topic: (vl-registry-read  (Read 11382 times)

0 Members and 1 Guest are viewing this topic.

ronjonp

  • Needs a day job
  • Posts: 7529
(vl-registry-read
« on: November 30, 2005, 10:37:30 AM »
How can I specify a wild card for this part of a registry key since it is different for each user?

(vl-registry-read "HKEY_USERS\\S-1-5-21-1645522239-861567501-725345543-1129\\......

Thanks,

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: (vl-registry-read
« Reply #1 on: November 30, 2005, 10:45:24 AM »
What application is generating it and what does it represent?
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: (vl-registry-read
« Reply #2 on: November 30, 2005, 11:01:39 AM »
Ok .. I'll throw you a bone ....

You will need to know a couple of things before you can do what you want ...

You need to know the computer name and user name ... these can be retrieved from the system environment ...
USERDOMAIN = computer name
USERNAME = current user

Once you have those, put the two together in this fashion ...
"USERDOMAIN_USERNAME"

Now that you have that, you need to look for this registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Syncmgr\ProgressState\USERDOMAIN_USERNAME\SID

The value will be the number you are looking for.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

ronjonp

  • Needs a day job
  • Posts: 7529
Re: (vl-registry-read
« Reply #3 on: November 30, 2005, 11:08:52 AM »
So what I'm trying to do here is make a company wide etransmit setup that will etransmit a zipped up project into the current drawing directory in a folder called "Submittal mm-dd-yyyy. I want to be able to write to the DestFolder key. Any ideas on this?

Here is the whole path:

(vl-registry-read "HKEY_USERS\\S-1-5-21-1645522239-861567501-725345543-1129\\Software\\Autodesk\\AutoCAD\\R16.1\\ACAD-301:409\\ETransmit\\setups" )

Thanks,

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Andrea

  • Water Moccasin
  • Posts: 2372
Re: (vl-registry-read
« Reply #4 on: November 30, 2005, 11:38:44 AM »
So what I'm trying to do here is make a company wide etransmit setup that will etransmit a zipped up project into the current drawing directory in a folder called "Submittal mm-dd-yyyy. I want to be able to write to the DestFolder key. Any ideas on this?

Here is the whole path:

(vl-registry-read "HKEY_USERS\\S-1-5-21-1645522239-861567501-725345543-1129\\Software\\Autodesk\\AutoCAD\\R16.1\\ACAD-301:409\\ETransmit\\setups" )

Thanks,

Ron

if it's for all the same setting.....why not use the "C:\Documents and Settings\All Users\Desktop"  folder ?
Keep smile...

ronjonp

  • Needs a day job
  • Posts: 7529
Re: (vl-registry-read
« Reply #5 on: November 30, 2005, 01:36:47 PM »
How would one go about converting a string out of say ("testing") to "testing".

So I found listp kinda works but it give me this error:

(listp ("testing"))

; error: bad function: "testing"

thanks,

Ronl
« Last Edit: November 30, 2005, 01:41:35 PM by ronjonp »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Andrea

  • Water Moccasin
  • Posts: 2372
Re: (vl-registry-read
« Reply #6 on: November 30, 2005, 01:53:18 PM »
How would one go about converting a string out of say ("testing") to "testing".

So I found listp kinda works but it give me this error:

(listp ("testing"))

; error: bad function: "testing"

thanks,

Ronl


(car (list "testing"))
Keep smile...

ronjonp

  • Needs a day job
  • Posts: 7529
Re: (vl-registry-read
« Reply #7 on: November 30, 2005, 03:25:12 PM »
Muchos Gracias Andrea! :-)

After further testng it still doesn't work  :x.
« Last Edit: November 30, 2005, 03:40:47 PM by ronjonp »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: (vl-registry-read
« Reply #8 on: November 30, 2005, 03:53:32 PM »
What are you trying to do ... I provided you with the path to the session ID of the windows session currently active. You should be able to reach the path using that info ...
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

Bob Wahr

  • Guest
Re: (vl-registry-read
« Reply #9 on: November 30, 2005, 03:58:57 PM »
I've run into quite a few things that Autocad stores in the registry and loads into memory when the session starts so changes to the registry don't actually change until acad is closed and restarted.

Bob Wahr

  • Guest
Re: (vl-registry-read
« Reply #10 on: November 30, 2005, 04:04:47 PM »
With a little testing though, it looks to me like the key you want is
Code: [Select]
My Computer\HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R16.2\ACAD-4001:409\ETransmit\setups\{setupname (ie Standard)}\DestFoldermodified to match your computer of course..  Doing a manual change in the registry followed by an etransmit, worked on my maching.

ronjonp

  • Needs a day job
  • Posts: 7529
Re: (vl-registry-read
« Reply #11 on: November 30, 2005, 04:07:54 PM »
Keith,

I did a search for the path you showed but it only went this far:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Syncmgr\

Then the next folder was "Handlers"

Thanks,

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

ronjonp

  • Needs a day job
  • Posts: 7529
Re: (vl-registry-read
« Reply #12 on: November 30, 2005, 04:11:06 PM »
Bob you are correct.......sometimes I make things much harder than they need to be :)

I was already using this code for xref startup folders:

Code: [Select]
      (setq dwgpath  (strcat (getvar 'dwgprefix))
              profile (strcat (getvar 'cprofile))
              hkeyver (strcat "HKEY_CURRENT_USER\\Software\\Autodesk\\AutoCAD\\" "R" (substr (getvar 'acadver) 1 4))
              version (vl-registry-read hkeyver "CurVer")
              hkeyver (strcat "HKEY_CURRENT_USER\\Software\\Autodesk\\AutoCAD\\" "R" (substr (getvar 'acadver) 1 4) "\\" version "\\Profiles\\" profile "\\Dialogs\\")
       ) 

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

whdjr

  • Guest
Re: (vl-registry-read
« Reply #13 on: November 30, 2005, 04:23:57 PM »
How would one go about converting a string out of say ("testing") to "testing".

So I found listp kinda works but it give me this error:

(listp ("testing"))

; error: bad function: "testing"

thanks,

Ronl

How about 'read'?

Andrea

  • Water Moccasin
  • Posts: 2372
Re: (vl-registry-read
« Reply #14 on: November 30, 2005, 06:54:53 PM »
How about 'read'?

Wh...

this is the result.

Code: [Select]
AutoCAD menu utilities loaded.
Command: (read "testing")
TESTING

Command: (read (list "testing"))
; error: bad argument type: stringp ("testing")

Command: (read "testing")
TESTING

Command: (read ("testing"))
; error: bad function: "testing"

Command: (read '("testing"))
; error: bad argument type: stringp ("testing")

Command: (car (list "testing"))
"testing"
Keep smile...