This article is from the Star Trek Tech FAQ, by Joshua Bell inexorabletash@hotmail.com with numerous contributions by others.
The simulation would not be a problem - the Enterprise computer has
extensive files of all Federation starship layouts, as shown in
"Relics" [TNG].
In three episodes, the Enterprise has been controlled from the
Holodeck - by Barclay in "The Nth Degree" [TNG], with a neural
interface; in "Elementary, Dear Data" [TNG], where Moriarty somehow
cracked the security codes via the Holodeck Arch; and in "Ship In A
Bottle" [TNG], where Picard inadvertently gave Moriarty the security
codes.
 
Continue to: