Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Default Profile

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
154 Views, 6 Replies

Default Profile

Autowhatever seems to remember what the last profile used is whenever is it
started sans a profile specification.

I assume that there is some registry setting and I have looked for it but
haven't identified it.
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: Anonymous

and what is it that you want to know?
Message 3 of 7
Anonymous
in reply to: Anonymous

Hi Bob

Try this function (A2k+):
(defun VxGetLastProfile ( / CurVer TmpVal)
(setq TmpVal (strcat "HKEY_LOCAL_MACHINE\\Software\\Autodesk"
"\\AutoCAD\\R15.0"
)
CurVer (vl-registry-read TmpVal "CurVer")
TmpVal (strcat "HKEY_CURRENT_USER\\Software\\Autodesk"
"\\AutoCAD\\R15.0\\" CurVer "\\Profiles"
)
)
(vl-registry-read TmpVal)
)

Cheers
--
Juerg Menzi
MENZI ENGINEERING GmbH, Switzerland
http://www.menziengineering.ch
Message 4 of 7
Anonymous
in reply to: Anonymous

wouldn't that be the current profile [ (getvar "cprofile") ]
or
(vl-load-com)
(vl-registry-read (strcat (strcat "HKEY_CURRENT_USER\\" (vlax-product-key)
"\\Profiles\\")))

"Bob Mac Onie" schreef in bericht
news:83A8A1926DE32112664AE1D15431A8C7@in.WebX.maYIadrTaRb...
> Autowhatever seems to remember what the last profile used is whenever is
it
> started sans a profile specification.
>
> I assume that there is some registry setting and I have looked for it but
> haven't identified it.
>
>
Message 5 of 7
Anonymous
in reply to: Anonymous

and...
finally, the function is useless, because you can get the information
also with the sysvar 'CPROFILE', but it shows the registry paths if
you need them outside AutoCAD...

Cheers
--
Juerg Menzi
MENZI ENGINEERING GmbH, Switzerland
http://www.menziengineering.ch
Message 6 of 7
bmaconie
in reply to: Anonymous

Gentlemen,

I want the registry setting that controls what profile is used when none is specified. I am working with an OLE appllication which creates an instance of Autocad and would like to control what profile is used upon launch. This is always the last used profile by AutoCAD so I suspect it exists in the registry I just can't locate it.
Message 7 of 7
Anonymous
in reply to: Anonymous

Check the registry paths in my first answer!

Cheers
--
Juerg Menzi
MENZI ENGINEERING GmbH, Switzerland
http://www.menziengineering.ch

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost