AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I add file to startup suite

1 REPLY 1
Reply
Message 1 of 2
Sgear
404 Views, 1 Reply

How can I add file to startup suite

 

Hi

 

I was try to add file to startup suite

 

if I have one file there then this works I see the file I add but not if I add new file for first time then Autocad clear Regestry

when I open APPLOAD

 

is it not possible to add file to Regestry startup suite with VB.NET

 

 

I work on sample from https://www.theswamp.org

 

 

       Dim regKey As RegistryKey
       
        regKey = My.Computer.Registry.CurrentUser.OpenSubKey("Software\Autodesk\AutoCAD\R20.0\ACAD-E002:409\Profiles\", True)

        Dim Profiles() = regKey.GetSubKeyNames 

        For Each Profiles_subfolder In Profiles 

            Dim Profile_subfolder As RegistryKey = regKey.OpenSubKey(Profiles_subfolder + "\" + "Dialogs\Appload\Startup\", RegistryKeyPermissionCheck.ReadWriteSubTree)

            Dim NUMBER As String = Profile_subfolder.GetValue("NumStartup").ToString

            Profile_subfolder.SetValue("NumStartup", (CInt(NUMBER) + 1).ToString)
            Profile_subfolder.SetValue((CInt(NUMBER) + 1).ToString + "Startup", "C:\Users\Sigster_pc\Downloads\ConvertNet2\te.lsp")

        Next Profiles_subfolder
1 REPLY 1
Message 2 of 2
Sgear
in reply to: Sgear

 

Found out I need to exit Autocad then this is ok I can Add the file

 

are any change I can add the file when Autocad is running

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

Post to forums  

Autodesk Design & Make Report

”Boost