Project progress chart time scale adaptive generation method and device, equipment and medium
By continuously slicing the construction time interval and calculating the width of drawing elements, an adaptive time scale is generated, which solves the problem of uneven drawing information in traditional scale generation, improves drawing efficiency and accuracy, and is suitable for the generation of various progress drawings.
Patent Information
- Application Number
- CN202511016878.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-23
- Publication Date
- 2025-10-10
AI Technical Summary
Traditional uniform time-scaled network diagrams lead to uneven drawing information in large projects, affecting readability and printing quality. Existing adjustment methods are inefficient and difficult to accurately adapt to changes in process density.
By continuously slicing the construction time interval, a micro-element ruler sequence is generated. Its width is calculated according to the style and annotation of the drawing elements, and the time ruler is adaptively adjusted to ensure that the drawing information is evenly distributed.
It improves drawing efficiency and accuracy, reduces the difficulty of scale adjustment, meets the requirements of any time granularity, and is suitable for generating different types of progress charts.
Smart Images

Figure CN120765802A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of project supervision, and in particular to a method, device, equipment and medium for adaptively generating a time scale of a project progress chart. Background Art
[0002] As an important progress management tool, time-scaled network diagrams are widely used in various engineering projects. Using time as the horizontal axis, they intuitively display the timing and logical relationships of project steps, helping project managers maintain overall control, coordinate resources, and monitor progress. However, in large-scale project construction scenarios, traditional time-scaled network diagrams, which use uniform time scales, exhibit numerous drawbacks. The construction cycle of hydropower projects often stretches for years or even decades, involving complex processes that can reach hundreds or even thousands. The intensity of these processes varies greatly during different construction periods. For example, in the early stages of a project, processes such as site leveling and foundation construction are relatively concentrated; in the middle and later stages, processes such as equipment installation and commissioning are staggered. If a uniform time scale is used, the network diagram will become severely congested in the process-intensive central area, with overlapping lines and text, making it difficult to clearly distinguish the start and end times and logical relationships of each process. The sparse areas on both sides, during the early and late stages of construction, will appear loose, resulting in a serious waste of drawing space. This not only significantly affects the aesthetics of the network diagram but also reduces its readability, making it difficult for project managers to quickly and accurately obtain key information and increasing the difficulty of decision-making.
[0003] At the same time, during the printing process, due to the uneven distribution of drawing information, the entire map often needs to be scaled to ensure the clarity and readability of key areas. However, this can cause some areas to be too small or too large, affecting the printing effect and ease of use, and failing to meet the actual needs of project site construction guidance, meeting reports, etc. To improve this situation, the industry has conducted numerous studies and proposed several improvement methods. For example, some methods attempt to manually adjust the time scale interval. However, this method not only relies on operator experience and is highly subjective, but also requires a huge workload and is inefficient when faced with massive amounts of process data, making it difficult to ensure the accuracy and rationality of the adjustments. There are also some automatic adjustment algorithms based on fixed rules, such as simply dividing time intervals by the number of processes or time spans. However, because they do not fully consider the actual characteristics and distribution patterns of drawing elements, they cannot accurately adapt to changes in process density over different time periods and still cannot fundamentally solve the problem of uneven drawing information. Summary of the Invention The present invention provides a method, device, equipment and medium for adaptively generating a time scale of a project progress chart, so as to solve the problems of uneven drawing information, difficult scale adjustment and low adjustment efficiency in existing scale generation methods.
[0004] The present invention is achieved through the following technical solutions: The first aspect of the present application provides a project schedule chart time scale adaptive generation method, comprising: According to the process progress data of the engineering project, the construction time interval of the engineering project is extracted; The construction time interval is continuously sliced to obtain a plurality of continuous micro time units, and a micro time unit scale sequence is generated; All drawing elements are extracted from the process progress data, and the following processing is performed for each drawing element: The start time node and the completion time node corresponding to the drawing element are extracted, and based on the start time node and the completion time node, the micro time unit contained by the drawing element is determined; According to the text style and annotation style of the drawing element, the drawing width of the drawing element is determined; According to the drawing width of the drawing element and the contained micro time unit, the width value of each micro time unit contained by the drawing element is calculated; after all drawing elements are processed, each micro time unit has at least one width value; The maximum width value of each micro time unit is taken as the control width of the micro time unit, and the project schedule chart time scale is drawn according to the micro time unit scale sequence.
[0005] In the above scheme of the present application, firstly, the construction time interval is continuously sliced to establish a micro time unit scale sequence, then the control drawing element is extracted from the process progress data, the adaptive width is calculated based on the style, annotation, etc. of the drawing element, the corresponding relationship between the drawing element and the micro time unit is established based on the time sequence, the adaptive width of the drawing element is distributed to the micro time unit contained by the drawing element, the width of the drawing element is differentiated, and finally the time scale is generated according to the micro time unit scale sequence and the maximum width. Therefore, the adaptive time scale can be automatically calculated according to the process progress data, the time scale with process density adaptation can be generated, the drawing efficiency and accuracy are improved, and the information distribution on the drawing is uniform. By controlling the selection of the drawing element, the schedule chart time scale can be adaptively adjusted, the efficiency of scale adjustment is improved, and the adjustment difficulty is reduced.
[0006] In some embodiments, the construction time interval is continuously sliced to obtain a plurality of continuous micro time units, and a micro time unit scale sequence is generated, comprising: The smallest time unit used in the process progress data is taken as the slicing step, and the construction time interval is continuously sliced into a plurality of micro time units, and the length of each micro time unit is equal to the smallest time unit; According to the start time and length information of each micro time unit, a micro time unit scale sequence is generated: , wherein, represents the j th micro time unit, Records the start time and length information of the micro-element.
[0007] In some embodiments, extracting the construction time interval of the engineering project based on the process progress data of the engineering project includes: Extracting the start time node and the end time node of the engineering project from the process progress data of the engineering project, and obtaining the project time interval from the start time node to the end time node; The start time node is the earliest time in the process progress data, and the end time node is the latest time in the process progress data.
[0008] In some embodiments, the drawing elements include real processes and annotation text of the double-code network diagram, virtual processes and annotation text of the double-code network diagram, floating time and annotation text of the double-code network diagram, and ruler scale and annotation text.
[0009] In some implementations, determining the drawing width of the drawing element according to the text style and annotation style of the drawing element includes: For real steps, imaginary steps, and floating times in a double-code network diagram, the drawing width of the drawing elements is calculated as: Drawing width = double code circle radius × 2 + safety distance + dimension text width; For ruler scales, the plot width of a plot element is calculated as: Drawing width = safety distance + dimension text width; The calculation formula for the dimension text width is: Dimension text width = text height × number of characters / 2 × text aspect ratio; The safety distance calculation formula is: Safety distance = text height × text aspect ratio.
[0010] In some implementations, calculating the width value of each micro-element included in the drawing element according to the drawing width of the drawing element and the included micro-element includes: The number of micro-element contained in the time period from the start time node to the completion time node of the drawing element is recorded as N , set the drawing width of the drawing element Distribute evenly to N micro-element, the width of each micro-element is: .
[0011] In some implementations, the method further includes: clustering and summing the micro-element according to time granularity to obtain a time scale of the project progress chart corresponding to the time granularity; the time granularity includes day, month, and year.
[0012] A second aspect of the present invention provides a device for adaptively generating a time scale for a project progress chart, comprising: A construction time extraction module is used to extract the construction time interval of the project based on the process progress data of the project; A micro-element ruler module is used to continuously slice the construction time interval to obtain multiple continuous micro-element rulers and generate a micro-element ruler sequence; The drawing element processing module is used to extract all drawing elements from the process progress data and perform the following processing on each drawing element: Extracting a start time node and a completion time node corresponding to the drawing element, and determining a micro-element included in the drawing element based on the start time node and the completion time node; Determining a drawing width of the drawing element according to a text style and a label style of the drawing element; Calculating a width value of each micro-element contained in the drawing element according to the drawing width of the drawing element and the micro-element contained therein; after processing all the drawing elements, obtaining that each micro-element has at least one width value; The time ruler module is used to use the maximum width value of each micro-element as the controlling width of the micro-element and draw the time ruler of the project progress chart according to the micro-element ruler sequence.
[0013] According to a third aspect of the present invention, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for adaptively generating a time scale for a project schedule chart as described in any one of the first aspects of the present invention is implemented.
[0014] According to a third aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for adaptively generating a time scale of a project schedule chart according to any one of the first aspects of the present invention is implemented.
[0015] Compared with the prior art, the present invention has the following advantages and beneficial effects: 1. The present invention can automatically generate a time-scale network diagram based on the process progress, improve the drawing efficiency and accuracy, and ensure that the drawing information is evenly distributed; 2. The present invention can adaptively adjust the time scale of the progress chart by controlling the drawing elements, thereby improving the efficiency of scale adjustment and reducing the difficulty of adjustment; 3. The time scale generated by the present invention can meet any time granularity requirements; 3. The present invention is flexible in application and can be applied to other types of time scale generation of progress charts by adjusting the selection of controllable drawing elements within the core framework. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required for use in the examples. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be considered as limiting the scope. A person of ordinary skill in the art can also derive other relevant drawings based on these drawings without inventive effort. In the drawings: Figure 1 This is a flow chart of a method for adaptively generating a time scale for a project progress chart proposed in an embodiment of the present invention; Figure 2 is a flow chart of a drawing element width differentiation method proposed in an embodiment of the present invention; Figure 3 This is a double-code network scale diagram for a hydropower project proposed in an embodiment of the present invention; Figure 4 This is a block diagram of a device for adaptively generating a time scale for a project progress chart proposed in an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of an electronic device proposed in an embodiment of the present invention. DETAILED DESCRIPTION
[0017] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with examples and drawings. The exemplary embodiments of the present invention and their descriptions are only used to explain the present invention and are not intended to limit the present invention.
[0018] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to or inherent to other steps or units of the device.
[0019] The terms used in the various embodiments of the present invention are only used for the purpose of describing specific embodiments and are not intended to limit the various embodiments of the present invention. As used herein, the singular form is intended to also include the plural form, unless the context clearly indicates otherwise. Unless otherwise specified, all terms used herein (including technical terms and scientific terms) have the same meaning as those commonly understood by those skilled in the art to which the various embodiments of the present invention belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meaning as the contextual meaning in the relevant technical field and will not be interpreted as having an idealized meaning or an overly formal meaning unless clearly defined in the various embodiments of the present invention.
[0020] Embodiments of the present invention provide a method, device, equipment, and medium for adaptively generating a time scale for a project progress diagram. Based on the innovative concept of "maximum differential value of drawing element width," this method automatically calculates an adaptive time scale based on the density of process steps in different time periods by selecting controlling drawing elements, ensuring relatively uniform drawing information. This invention also provides technical support for the creation of dual-code time-scaled network diagrams.
[0021] See Figure 1 , Figure 1 FIG2 is a flow chart of a method for adaptively generating a time scale of a project progress chart according to an embodiment of the present invention, which specifically includes the following steps.
[0022] 1. Establish a micro-element scale sequence (see steps S1 and S2 for details).
[0023] S1, extracting the construction time interval of the project based on the process progress data of the project; S2, continuously slice the construction time interval to obtain multiple continuous micro-time units and generate a micro-time unit scale sequence.
[0024] Among them, S1 specifically is: extracting the start time node and end time node of the engineering project from the process progress data of the engineering project, and obtaining the project time interval from the start time node to the end time node; among them, the start time node is the earliest time in the process progress data, and the end time node is the latest time in the process progress data.
[0025] In step S2, the project time interval is continuously divided using the same time step to obtain micro-time units, i.e., time differential units. Preferably, the minimum time unit used in the process progress data is used as the slicing step.
[0026] Specifically, step S2 preferably adopts the following method: S2-1, extract the minimum time unit used in the process progress data, use the minimum time unit as the slicing step, and continuously slice the construction time interval into multiple micro-hours. The length of each micro-hour is the minimum time unit; S2-2, based on the start time and length information of each micro-element, generate a micro-element ruler sequence: ,in, Indicates the j A micro-hour, m Indicates the total number of micro-element, It is a two-dimensional vector that records the start time and length of the micro-element, as well as the time granularity to which the micro-element belongs.
[0027] Furthermore, after establishing the micro-element scale sequence, the process also includes clustering the micro-element according to different time granularities, grouping the micro-element into categories based on the different time granularities. Specifically, time granularities can be divided into: year, season, month, ten-day period, week, day, hour, etc. The micro-element is stored in a tree structure, making it easy to read the different time granularities to which the micro-element belongs, and to facilitate clustering and summation to obtain time scales of different time granularities (day, month, year).
[0028] 2. Establish a drawing element set (see steps S3 and S4 for details).
[0029] S3, extract all drawing elements from process progress data and establish a drawing element set , Contains the start and completion time of the drawing elements and the annotation text content.
[0030] S4, calculating the width of the micro-element contained in the drawing element, traversing and calculating all the drawing elements, and obtaining at least one width value corresponding to each micro-element.
[0031] See also Figure 2 The flowchart of the drawing element width differentiation method shown in FIG. 4 is as follows: in step S4, for each drawing element The following processing is performed: S4-1, extracting drawing elements The corresponding start time node and completion time node, and based on the start time node and completion time node, determine the drawing elements The micro-element included; S4-2, according to the drawing elements Text style, annotation style, determine the drawing elements Drawing width ; S4-3, according to the drawing elements Drawing width and the contained micro-element, calculate the drawing element width value of each micro-time unit contained .
[0032] In step S4, after processing all drawing elements, each micro-time unit has at least one width value, and when there is only one width value, it is the default drawing width of the micro-time unit, and when there are two or more, one is the default drawing width, and the rest are the drawing widths of the drawing elements taken calculated width value .
[0033] In some embodiments, the drawing elements include real process and annotated text of the double code network diagram, virtual process and annotated text of the double code network diagram, floating time and annotated text of the double code network diagram, and scale and annotated text.
[0034] Further, in step S4-2, the drawing width of the drawing element is determined according to the text style and annotation style of the drawing element , which specifically includes the following calculation method.
[0035] For the real process, virtual process and floating time of the double code network diagram, the drawing width of the drawing element is calculated as: drawing width = double code circle radius × 2 + safety distance + annotated text width; For the scale, the drawing width of the drawing element is calculated as: drawing width = safety distance + annotated text width; Wherein, the annotated text width calculation formula is: annotated text width = text height × text character number / 2 × text width-height ratio; The safety distance calculation formula is: safety distance = text height × text width-height ratio.
[0036] Traverse all drawing elements to form a width set , corresponding to one by one.
[0037] In one embodiment, step S4-3 specifically includes: recording the number of micro-time units contained in the time period from the start time node to the completion time node of the drawing element as N , and the drawing width of the drawing element is evenly distributed to N micro-time units, and the width of each micro-time unit is
[0038] In this embodiment, the drawing element Start and finish time interval , according to the micro-element sequence Reading time interval The number of micro-element included is .Will Decompose according to the average mode and distribute to each micro-element The width is ; Represents a drawing element In each micro-element The minimum width required.
[0039] Traverse all drawing elements and set all width values Combined into a width value matrix :
[0040] Each column corresponds to a micro-element .
[0041] 3. Generate an adaptive time scale for the project progress chart.
[0042] S5, taking the maximum width value of each micro-element as the controlling width of the micro-element, and drawing the time scale of the project progress chart according to the micro-element scale sequence.
[0043] In step S4, it is found that each micro-element has at least one width value. Based on the maximum value of the width differential of the drawing element, the matrix The maximum value of each column , as each micro-element The scale width ensures that the controllable width of all drawing elements can be satisfied, and finally combines the ruler micro-time element sequence Draw a micro-element ruler that adaptively adapts to the width required by each drawing element and realizes an adaptive ruler as the drawing elements are adaptively adjusted.
[0044] In some embodiments, after step S5, that is, after obtaining the width value matrix After that, the step of clustering the micro-element is also included. Specifically, according to the width value of the micro-element, different time granularities are selected to cluster the micro-element. Perform cluster summation to obtain time scales such as day, month, and year.
[0045] Taking a hydropower project as an example, a relational database is used to provide data storage and computing services, and AutoCAD is used for visual drawing. In combination with the accompanying drawings, the technical method of the invention is further specifically described.
[0046] Step 1: Create a scale element time series .
[0047] The project in this example includes 835 processes. The project start and completion dates are January 1, 2024, and March 31, 2038, respectively. The minimum time unit used for the project schedule is day. The project duration interval is sliced by day to obtain a daily time list.
[0048] Draw the number according to the double-code time-scale network diagram, select the time granularity as "year", "month", and "day", store the micro-element in the tree structure of year-month-day, and establish the sequence The micro-element sequence after slicing is shown in Table 1.
[0049] Table 1
[0050] Table 1 shows the continuous slicing results of the start and completion time intervals of the engineering project in the embodiment, wherein the micro-epoch is in days. The slicing results are daily time series, which include the year, month, and day information of the micro-epoch.
[0051] Step 2: Extract control drawing elements from process progress data and create a drawing element set , Contains the start and completion time of the drawing elements and the annotation text content.
[0052] The control drawing elements selected in the double-code network diagram include: the real process of the double-code network diagram and its annotated text; the virtual process of the double-code network diagram and its annotated text; the floating time of the double-code network diagram and its annotated text; the ruler scale and its annotated text.
[0053] According to the set text style and double code style, calculate the control width of the drawing element to form a width set .
[0054] For real processes, virtual processes, floating time, controllable width = radius of double code circle × 2 + safety distance + width of dimension text; Scale control width =safety distance + dimension text width.
[0055] Dimension text width = text height × number of characters / 2 × text aspect ratio; Safety distance = text height × text aspect ratio.
[0056] The text style and double code style given in this example are as follows: The height of the marking text for real processes, virtual processes, and floating time is 2.2, and the aspect ratio is 0.8; the height of the ruler scale text is 1.7, and the aspect ratio is 0.8; the radius of the double-code circle is 0.5.
[0057] Step 3: Read the drawing elements Start and finish time intervals, according to the micro-element sequence Read the micro-element contained in the time interval, and record the number of micro-element as ,Will Decompose according to the average mode and distribute to each micro-element The width is . Traverse all drawing elements and set all width values Combined into a width value matrix In this case the width value matrix It is a 5204×2089 dimensional matrix.
[0058] Step 4: Extract the matrix The maximum value of each column is used as each micro-element The scale width, combined with the scale micro-time element sequence The calculated micro-element scale is shown in Table 2.
[0059] Table 2
[0060] Table 2 is a list of micro-element scales calculated based on the engineering project drawing elements of the embodiment, which records the daily scale width, the start and end positions of the daily time. Table 2 includes the daily scale widths for May, June, and July 2027, and the scale widths for different months are different.
[0061] Step 5: According to the micro-element scale described in step 4, select different time granularities and Cluster summation to obtain time scales of different granularities.
[0062] In this example, in the drawing preferences, only the year and month scales need to be displayed in the drawing. The drawing result is as follows: Figure 3 As shown, Figure 3 Only the time scales for the first five years are shown, including the annual time scale, the engineering month time scale, and the monthly time scale. The annual time scale is obtained by clustering and summing the daily time scales. Figure 1 In the figure, "Year 0" is the ruler folding area. Since there is no process in this year, the ruler scale is controlled by the ruler scale and its labeled text. The ruler width just meets the space required for the monthly labeled text. "Year 1, Month 1" in the figure is the ruler widening area 1. In this area, there is the process "Sidewalk and Construction Preparation". In order to meet the space for drawing the process text, the ruler scale of this month needs to be widened. Figure 1 "October of the 4th year" is the scale widening zone 3. This month is mainly affected by the processes "Pour concrete into the plug" and "Backfill concrete into the plug", and the required text width is larger, so the scale of this month is obviously widened. Figure 1 The process density of "Ruler Widening Area 2" is relatively high, and the widening and folding of the ruler are more complicated, but they can all meet the drawing space required for the drawing elements.
[0063] The embodiment of the present invention further provides a device for adaptively generating a time scale of a project progress chart, which is used to execute the method for adaptively generating a time scale of a project progress chart of any of the above embodiments of the present invention. Figure 4 As shown, the device includes: The construction time extraction module is used to extract the construction time interval of the project based on the process progress data of the project; The micro-element ruler module is used to continuously slice the construction time interval to obtain multiple continuous micro-element and generate a micro-element ruler sequence; The drawing element processing module is used to extract all drawing elements from the process progress data; for each drawing element, the following processing is performed: Extracting the start time node and the completion time node corresponding to the drawing element, and determining the micro-element contained in the drawing element based on the start time node and the completion time node; Determine the drawing width of the drawing element according to the text style and annotation style of the drawing element; Calculating the width of each micro-element contained in the drawing element according to the drawing width of the drawing element and the micro-element contained therein; after processing all the drawing elements, obtaining that each micro-element has at least one width value; The time ruler module is used to use the maximum width value of each micro-element as the controlling width of the micro-element and draw the time ruler of the project progress chart according to the micro-element ruler sequence.
[0064] The above functional modules correspond one-to-one to the steps of the method for adaptively generating a time scale of a project progress chart. The specific implementation of each step can be found in the method embodiment and will not be described in detail here.
[0065] An embodiment of the present invention further provides an electronic device, such as Figure 5 As shown, the electronic device includes a processor 50 and a memory 51. The number of processors 50 can be one or more. Memory 51, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules. Processor 50 executes the software programs, instructions, and modules stored in the memory to perform various electronic device functions and data processing, thereby implementing the method for adaptively generating a timescale for a project schedule diagram according to any of the above-mentioned embodiments of the present invention.
[0066] The memory 50 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data generated based on the use of the terminal. Furthermore, the memory 50 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state memory device. In some instances, the memory may further include memory remotely located relative to the processor, and such remote memory may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0067] The electronic device further includes an input device 52 and an output device 53 , and external interaction is achieved based on the input device 52 and the output device 53 .
[0068] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for adaptively generating a time scale for a project schedule diagram according to any embodiment of the present invention is implemented.
[0069] The computer storage media of the embodiments of the present invention may employ any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or component.
[0070] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0071] An embodiment of the present invention further provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the method for adaptively generating a time scale for a project schedule chart according to any of the above embodiments of the present invention.
[0072] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for adaptively generating a time scale for a project progress chart, characterized in that: include: Extracting the construction time interval of the project based on the process progress data of the project; Continuously slicing the construction time interval to obtain a plurality of continuous micro-element scales, and generating a micro-element scale sequence; Extract all drawing elements from the process progress data, and perform the following processing on each drawing element: Extracting a start time node and a completion time node corresponding to the drawing element, and determining a micro-element included in the drawing element based on the start time node and the completion time node; Determining a drawing width of the drawing element according to a text style and a label style of the drawing element; Calculating a width value of each micro-element contained in the drawing element according to the drawing width of the drawing element and the micro-element contained therein; after processing all the drawing elements, obtaining that each micro-element has at least one width value; The maximum width value of each micro-hour is used as the controlling width of the micro-hour, and the time scale of the project progress chart is drawn according to the micro-hour scale sequence.
2. The method for adaptively generating a time scale for a project progress chart according to claim 1, characterized in that: The construction time interval is continuously sliced to obtain a plurality of continuous micro-element time units, and a micro-element scale sequence is generated, including: Using the minimum time unit used in the process progress data as a slicing step, the construction time interval is continuously sliced into multiple micro-hours, with the length of each micro-hour being equal to the minimum time unit; Generate a micro-element ruler sequence based on the start time and length information of each micro-element: ,in, Indicates the j A micro-hour, Records the start time and length information of the micro-element.
3. The method for adaptively generating a time scale for a project progress chart according to claim 1 or 2, characterized in that: Extract the construction time interval of the project based on the process progress data of the project, including: Extracting the start time node and the end time node of the engineering project from the process progress data of the engineering project, and obtaining the project time interval from the start time node to the end time node; The start time node is the earliest time in the process progress data, and the end time node is the latest time in the process progress data.
4. The method for adaptively generating a time scale for a project progress chart according to claim 1, characterized in that: The drawing elements include the real process and annotation text of the double-code network diagram, the virtual process and annotation text of the double-code network diagram, the floating time and annotation text of the double-code network diagram, and the ruler scale and annotation text.
5. The method for adaptively generating a time scale for a project progress chart according to claim 4, characterized in that: The determining the drawing width of the drawing element according to the text style and the annotation style of the drawing element includes: For real steps, imaginary steps, and floating times in a double-code network diagram, the drawing width of the drawing elements is calculated as: Drawing width = double code circle radius × 2 + safety distance + dimension text width; For ruler scales, the plot width of a plot element is calculated as: Drawing width = safety distance + dimension text width; The calculation formula for the dimension text width is: Dimension text width = text height × number of characters / 2 × text aspect ratio; The safety distance calculation formula is: Safety distance = text height × text aspect ratio.
6. The method for adaptively generating a time scale for a project progress chart according to claim 1, characterized in that: Calculating a width value of each micro-element included in the drawing element according to the drawing width of the drawing element and the micro-element included therein, including: The number of micro-element contained in the time period from the start time node to the completion time node of the drawing element is recorded as N , set the drawing width of the drawing element Distribute evenly to N micro-element, the width of each micro-element is: .
7. The method for adaptively generating a time scale for a project progress chart according to claim 1, characterized in that: The method further includes: clustering and summing the micro-element according to time granularity to obtain a time scale of a project progress chart corresponding to the time granularity; the time granularity includes day, month, and year.
8. The device for adaptively generating a time scale for a project progress chart is characterized by: include: A construction time extraction module is used to extract the construction time interval of the project based on the process progress data of the project; A micro-element ruler module is used to continuously slice the construction time interval to obtain multiple continuous micro-element rulers and generate a micro-element ruler sequence; The drawing element processing module is used to extract all drawing elements from the process progress data and perform the following processing on each drawing element: Extracting a start time node and a completion time node corresponding to the drawing element, and determining a micro-element included in the drawing element based on the start time node and the completion time node; Determining a drawing width of the drawing element according to a text style and a label style of the drawing element; Calculating a width value of each micro-element contained in the drawing element according to the drawing width of the drawing element and the micro-element contained therein; after processing all the drawing elements, obtaining that each micro-element has at least one width value; The time ruler module is used to use the maximum width value of each micro-element as the controlling width of the micro-element and draw the time ruler of the project progress chart according to the micro-element ruler sequence.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for adaptively generating a time scale for a project schedule diagram according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for adaptively generating a time scale of a project schedule chart according to any one of claims 1 to 7 is implemented.