The Hephaistos Corporation supports the player in building stations. After ordering stations the Hephaistos Corp. will care about purchasing, delivering and building the stations as compact as possible at a desired place.
To use station building services in X3: Albion Prelude (X3AP), dock a TL class ship at a shipyard to buy a station blueprint, then take the TL to your desired sector and use the “Build Station” command from its action menu to place it on the sector map. For automated building, dock a TL at a station with a shipyard, then use the “Station Build Service” command (found under Communication) to order multiple stations at once for a higher cost.
This is a mod for the game that allows for more automated building.