Need code for getting current product and current profile from registry

Discussion in 'AutoCAD' started by David Allen, Jun 30, 2004.

  1. David Allen

    David Allen Guest

    I need to do the following

    (vl-registry-write
    "HKEY_CURRENT_USER\\Software\\Autodesk\\AutoCAD\\R16.1\\ACAD-301:409\\Profiles\\WW\\Dialogs\\AcadLspAsDocDlg" "Do Not
    Show" 1)

    But I don't want to make it version specific nor profile specific. So I just need to figure how to get the current
    product and the current profile.

    David
     
    David Allen, Jun 30, 2004
    #1
  2. David Allen

    zeha Guest

    David

    try this

    (strcat "HKEY_CURRENT_USER\\"(vlax-product-key)"\\Profiles\\"(getvar"cprofile")"\\Dialogs")

    Cheers

    Harrie
     
    zeha, Jun 30, 2004
    #2
  3. David Allen

    David Allen Guest

    thankx

    ;;; Don't show this dialog again
    (setq AcadLspAsDocDlg (strcat
    "HKEY_CURRENT_USER\\"(vlax-product-key)"\\Profiles\\"(getvar"cprofile")"\\Dialogs\\AcadLspAsDocDlg"))
    (vl-registry-write AcadLspAsDocDlg "Do Not Show" 1)


    zeha <>
    |>David
    |>
    |>try this
    |>
    |>(strcat "HKEY_CURRENT_USER\\"(vlax-product-key)"\\Profiles\\"(getvar"cprofile")"\\Dialogs")
    |>
    |>Cheers
    |>
    |>Harrie


    David
     
    David Allen, Jun 30, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.