Welcome to the forum, and thanks very much for the interest in Hauptwerk.
Hauptwerk runs as a stand-alone application, optionally using its 'Hauptwerk AU/VST Link' plug-in to route MIDI from, and audio to, an AU/VST host application, which is covered in general in the 'MIDI sequencing, the Hauptwerk AU/VST Link and applying real-time reverb' section in the main Hauptwerk user guide (on the Help menu in Hauptwerk -- pages 181-199 in the current v4.2.1 version).
The 'Composing pieces off-line from a MIDI sequencer configured conventionally (Hauptwerk as a ‘slave’ MIDI device)' sub-section (pages 189-194) has step-by-step instructions for how to use Hauptwerk in conventional MIDI sequencer environments in the way that we'd recommend for most composers and sequencer/DAW users. In particular, please make sure that you have the 'Hauptwerk AU/VST Link' entry selected specifically in the *left-hand* ('Console MIDI IN') column on Hauptwerk's 'General settings | MIDI ports | MIDI IN ports' screen tab, with no other entries ticked at all on that screen tab (in either column), and also with no entries ticked at all on the 'MIDI OUT ports' tab. You can then right-click on virtual controls to configure their MIDI settings as you wish (either manually or using auto-detection).
rogeriodec wrote:1) I already know there is a way to start Hauptwerk automatically when I load a project in Sonar, that is, I have to start it manually. Is that correct?
That's correct -- you need to launch Hauptwerk (if it isn't already running) manually. You could, however, set the computer to launch Hauptwerk automatically when it boots, so that it's always running in readiness.
You normally also need to load the desired organ manually, although you could potentially assign the organ as a 'favourite' and configure the 32 'favourite organs' to be triggered from MIDI program change messages. Your Sonar track could then have its program change set to the appropriate number, thus causing Hauptwerk to load the organ (assuming that Sonar doesn't re-send the program change message each time subsequently that you press play, which would cause the organ to re-load unnecessarily).
rogeriodec wrote:2) Once I start Hawptwek and I load the organ, the "Registration" is still not loaded. This way I have to activate it manually. I have already created a "Master gen 1" for the preset of my project. The problem is that I can not automate the activation of this Master Gen 1. I have already tried with Program Changes, but this does not activate Master Gen 1. I have tried other functions but I can not get a result.
Make sure that your MIDI ports are configured exactly as covered above, with the Hauptwerk VST Link entry ticked in the left-hand column. Hauptwerk's MIDI settings only apply to ports ticked in the left-hand column.
Does that solve it?