A computer-implemented method for automatically generating a visual model layout of a space, wherein at least one station is provided in the space, the at least one station being a basic unit having a certain function to achieve a certain production purpose in the space, wherein the method comprises the following steps: a) obtaining station layout information and station description information that correspond to the space; b) determining, based on the station layout information and the station description information, station attribute information corresponding to the at least one station, the station attribute information comprising all component-related information in the station layout information and the station description information; c) determining code information and a model template of the at least one station according to the station attribute information; wherein d) the step of determining code information and a model template of the at least one station comprises the following steps: d1) querying, based on the station attribute information, a code library to obtain a corresponding source code segment; d2) assigning values to parameters in the source code segment, based on the station attribute information, to obtain the code information corresponding to the at least one station; and d3) querying, based on the station attribute information, a model library to obtain the model template; and e) generating the visual model layout of the space, based on the code information and the model template, by drawing a model image corresponding to the at least one station; wherein f) the step of drawing the model image further comprises the following steps: f1) generating a script, based on the code information, the script corresponding to the space; f2) executing the script to determine a drawing attribute for adjusting the model template, the executing of the script using parameter values in the code information in the script to determine the drawing attribute; and f3) adjusting the model template by using the drawing attribute. a) obtaining station layout information and station description information that correspond to the space; b) determining, based on the station layout information and the station description information, station attribute information corresponding to the at least one station, the station attribute information comprising all component-related information in the station layout information and the station description information; c) determining code information and a model template of the at least one station according to the station attribute information; wherein d) the step of determining code information and a model template of the at least one station comprises the following steps: d1) querying, based on the station attribute information, a code library to obtain a corresponding source code segment; d2) assigning values to parameters in the source code segment, based on the station attribute information, to obtain the code information corresponding to the at least one station; and d3) querying, based on the station attribute information, a model library to obtain the model template; and d1) querying, based on the station attribute information, a code library to obtain a corresponding source code segment; d2) assigning values to parameters in the source code segment, based on the station attribute information, to obtain the code information corresponding to the at least one station; and d3) querying, based on the station attribute information, a model library to obtain the model template; and e) generating the visual model layout of the space, based on the code information and the model template, by drawing a model image corresponding to the at least one station; wherein f) the step of drawing the model image further comprises the following steps: f1) generating a script, based on the code information, the script corresponding to the space; f2) executing the script to determine a drawing attribute for adjusting the model template, the executing of the script using parameter values in the code information in the script to determine the drawing attribute; and f3) adjusting the model template by using the drawing attribute. f1) generating a script, based on the code information, the script corresponding to the space; f2) executing the script to determine a drawing attribute for adjusting the model template, the executing of the script using parameter values in the code information in the script to determine the drawing attribute; and f3) adjusting the model template by using the drawing attribute.