CN110968558B - Method, system and storage medium for renaming prototype, example and folder - Google Patents

Method, system and storage medium for renaming prototype, example and folder Download PDF

Info

Publication number
CN110968558B
CN110968558B CN201911081364.6A CN201911081364A CN110968558B CN 110968558 B CN110968558 B CN 110968558B CN 201911081364 A CN201911081364 A CN 201911081364A CN 110968558 B CN110968558 B CN 110968558B
Authority
CN
China
Prior art keywords
resource
name
prototype
folder
prototypes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911081364.6A
Other languages
Chinese (zh)
Other versions
CN110968558A (en
Inventor
周小稳
吴晓梅
龙璞
李金海
邹永标
杨选平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Mino Automotive Equipment Co Ltd
Original Assignee
Guangzhou Mino Automotive Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Mino Automotive Equipment Co Ltd filed Critical Guangzhou Mino Automotive Equipment Co Ltd
Priority to CN201911081364.6A priority Critical patent/CN110968558B/en
Publication of CN110968558A publication Critical patent/CN110968558A/en
Application granted granted Critical
Publication of CN110968558B publication Critical patent/CN110968558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation
    • G06F16/166File name conversion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a renaming method, a renaming system and a storage medium of prototypes, examples and folders, wherein the method comprises the following steps: acquiring a resource library prototype node and a modification command; acquiring a folder and a new and old resource comparison table associated with a prototype node of a resource library through an interface; acquiring all resource prototypes under the prototype nodes of the resource library and storing the resource prototypes into a set, traversing the set to acquire the names of the resource prototypes, the instances associated with the resource prototypes and the paths of the folders, and storing the names, the instances and the paths into the set; checking the occupation condition of all resource prototypes, the occupation condition of the instances, the path condition of the folder and the name conflict condition of the folder, and modifying the name of the folder, the name of the prototypes and the name of the instances. The method can rapidly rename the resource prototype in the Process Design resource library and the associated resource instance and folder thereof in batches, and has high accuracy. The invention can be widely applied to the field of computer simulation.

Description

Renaming method, system and storage medium for prototype, example and folder
Technical Field
The invention relates to the field of computer simulation, in particular to a renaming method, a renaming system and a storage medium for prototypes, instances and folders.
Background
At present, software Process Design and Process Simulation are mainstream software for carrying out Process Simulation when a manufacturing production line is planned in the automobile intelligent manufacturing industry. Before formal production of a factory production line, a production line integrator builds a factory three-dimensional visual Simulation environment by using Process Design and Process Simulation software, and analyzes and simulates and optimizes the production capacity of the production line and the positions of all resources in a factory, namely, reasonably plans the factory, automobile body products and resources so as to improve the production flow of the factory before mass production. The resources in the simulation software comprise corresponding three-dimensional models of a robot, a clamp, a gripper, a welding gun and the like in a factory. These simulation resources generally have a uniform naming specification, but since the naming standard of the automobile manufacturer is changed during the simulation, the resources in the simulation also need to be modified and adjusted according to the naming standard.
In the Process Design software, resources correspond to several objects: and the resource prototype, the resource prototype are distributed to the resource instance under the line body station and the folder linked by the resource prototype. The folder linked by the resource prototype is a folder saved after the simulation engineer changes the resource prototype. The object of the Simulation optimization operation in the Process Simulation is the resource instance, and as long as the resource prototype and the linked folder in the Process Design are changed, the name of the resource instance in the Process Simulation also changes.
If the resource name needs to be changed, the current practice is: 1. closing a Process Simulation window; 2. finding a resource to be renamed in a resource library of the Process Design, and manually changing the name into a new name; 3. searching a resource instance according to the old name of the resource by using the self-carried function Power Bar of the Process Design, and changing the resource instance into a new name; 4. according to the attribute of the right key resource, finding the 3D-file attribute of the resource and copying a folder link in the attribute frame to open the link; 5. the name of the ". Cojt" folder is changed to a new name, and then the files in the format of ". Jt" under the ". Cojt" folder are also changed to the new name. Because the existing function of the Process Design software is limited, the Process Design software can only be renamed through manual operation, and other faster methods are not available; if hundreds or even thousands of resources need to be renamed, engineers need to repeat the operation, which takes a lot of time and risks high error rate.
Disclosure of Invention
It is therefore an object of the present invention to provide a method, system and storage medium for renaming prototype, instance and folder. The method can rapidly rename the resource prototype in the Process Design resource library and the associated resource instance and folder thereof in batches, and has high accuracy.
In a first aspect, an embodiment of the present invention provides a method for renaming a prototype, an example, and a folder, including the following steps:
acquiring a resource library prototype node and a modification command;
acquiring a folder and a new and old resource comparison table associated with the resource library prototype node through an interface;
acquiring all resource prototypes under the resource library prototype node and storing the resource prototypes into a set, traversing the set to acquire the name of the resource prototype, the instance associated with the resource prototype and the path of the folder, and storing the name, the instance and the path into the set;
checking the occupation situation of all the resource prototypes, the occupation situation of the examples, the path situation of the folder and the name conflict situation of the folder, and modifying the name of the folder, the name of the prototypes and the name of the examples.
Preferably, after the new and old resource comparison tables are acquired through the interface, the method further includes verifying all information of the new and old resource comparison tables, and specifically includes the following steps:
checking whether the new name and the old name of the new and old resource comparison table are empty, modifying the renaming state of the resource when any one name is empty, stopping checking and returning a false Boolean value; otherwise, checking continues;
checking whether the new name and the old name of the new and old resource comparison table are the same, if so, modifying the rename state of the row of resources, checking and stopping, and returning a false Boolean value; otherwise, checking continues;
checking whether the new name and the old name of the new and old resource comparison table are repeated with the existing names in the set or not, if so, modifying the renaming state of the resource in the row, stopping the checking and returning a false Boolean value; otherwise, storing the re-routing resources in the set, and continuing the check;
when a false Boolean value returns, feeding back prompt information; otherwise, the check is continued until all the information of the new and old resource comparison tables is verified.
Preferably, the checking the occupation status of all the resource prototypes includes the following steps:
when the resource prototype state is occupied by the current user, the checking is continued until all the original occupation conditions of the resources are checked;
when the resource prototype state is not occupied by all users, calling an interface to switch the resource prototype state to be occupied by the current user, and continuing the check until the original occupation condition of all the resources is checked;
when the resource prototype state is occupied by other users, modifying the rename state of the resource prototype of the line, and exiting the check;
preferably, the checking the path condition of all the folders comprises the following steps:
checking whether a 3D-file path associated with the resource prototype exists and the write permission of the folder;
when the 3D-file path does not exist, modifying the rename state of the line of resources, and exiting the check; otherwise, checking continues;
when the folder has no write-in right, modifying the rename state of the row of resources, and exiting the check; otherwise, the checking is continued until the path conditions of all the folders are checked.
Preferably, the checking the name conflict condition of all the folders comprises the following steps:
checking whether the new name modified by the folder is the same as the original folder name;
if the same name exists, modifying the rename state of the line of resources, and quitting the check; otherwise, the checking is continued until the name conflict condition of all the folders is checked.
Preferably, said modifying said folder name, said prototype name and said instance name comprises the steps of:
when the name modification requirement is met, the modification operation is started;
modifying the name of the folder and the format file, modifying the name-changing state of the line of resources when the name of the folder or the format file fails to be modified, and quitting the modification; otherwise, continuing to modify the prototype name;
when the prototype name fails to be modified, modifying the rename state of the line of resources, and quitting modification; otherwise, continuing to modify the instance name;
and when the instance name is successfully modified, modifying the rename state of the line of resources.
In a second aspect, an embodiment of the present invention provides a renaming system for prototypes, instances, and folders, including:
the first acquisition module is used for acquiring a resource library prototype node and a modification command;
the second acquisition module is used for acquiring the folder and the new and old resource comparison table associated with the resource library prototype node through an interface;
the storage module is used for acquiring all resource archetypes under the resource library prototype node and storing the resource archetypes into a set, traversing the set to acquire the name of the resource archetype, the instance associated with the resource archetype and the path of the folder, and storing the name, the instance and the path into the set;
and the name modification module is used for checking the occupation situation of all the resource prototypes, the occupation situation of the examples, the path situation of the folder and the name conflict situation of the folder, and modifying the name of the folder, the name of the prototypes and the name of the examples.
In a third aspect, an embodiment of the present invention provides another renaming system for prototypes, instances, and folders, including:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, cause the at least one processor to implement the above-described prototypes, instances, and folder renaming methods.
In a fourth aspect, embodiments of the present invention provide a storage medium having stored therein processor-executable instructions, which when executed by a processor, are used to perform the above-described method of renaming prototypes, instances, and folders.
In a fifth aspect, an embodiment of the present invention provides another renaming system for prototypes, examples, and folders, including an emulation software device and a computer device connected to the emulation software device; wherein,
the simulation software equipment is used for carrying out process simulation when the manufacturing production line is planned in the automobile intelligent manufacturing industry;
the computer device includes:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, cause the at least one processor to implement the above-described prototypes, instances, and folder renaming methods.
The embodiment of the invention has the following beneficial effects: the invention obtains the new and old resource comparison table according to the interface, automatically searches and obtains the instance name and the folder name associated with the resource prototype through the interface, and automatically modifies all the folder names, prototype names and instance names after checking the occupation conditions of the resource prototype, the instance and the folder and the name conflict condition of the folder. The whole modification process automatically realizes renaming of the folder prototype and the instance in batches, and is high in speed and high in accuracy.
Drawings
FIG. 1 is a flowchart illustrating steps of a method for renaming a prototype, an example and a folder according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a step of obtaining a new and old resource comparison table according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps for verifying information of a new and old resource look-up tables according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating steps for modifying prototype, example and folder names according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating an implementation procedure after name modification according to an embodiment of the present invention;
FIG. 6 is a block diagram of a renaming system for a first prototype, example and folder according to an embodiment of the present invention;
FIG. 7 is a block diagram of a renaming system for prototypes, examples and folders according to a second embodiment of the present invention;
fig. 8 is a block diagram of a renaming system for a third prototype, example and folder according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and the specific embodiments. The step numbers in the following embodiments are provided only for convenience of illustration, the order between the steps is not limited at all, and the execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art.
As shown in FIG. 1, an embodiment of the present invention provides a method for renaming a prototype, an instance, and a folder, which includes the following steps.
S1, acquiring a resource library prototype node and a modification command;
s2, acquiring a folder and a new and old resource comparison table associated with the prototype node of the resource library through an interface;
s3, acquiring all resource prototypes under the resource library prototype node and storing the resource prototypes into a set, traversing the set to acquire the name of the resource prototype, the instance associated with the resource prototype and the path of the folder, and storing the name, the instance and the path into the set;
s4, checking the occupation situation of all the resource prototypes, the occupation situation of the examples, the path situation of the folder and the name conflict situation of the folder, and modifying the name of the folder, the name of the prototypes and the name of the examples.
The embodiment of the invention has the following beneficial effects: the invention obtains the new and old resource comparison table according to the interface, automatically searches and obtains the instance name and the folder name associated with the resource prototype through the interface, and automatically modifies all the folder names, prototype names and instance names after checking the occupation conditions of the resource prototype, the instance and the folder and the name conflict condition of the folder. The whole modification process automatically realizes renaming of the folder prototype and the instance in batches, and is high in speed and high in accuracy.
The following describes in detail a method for renaming a prototype, an example, and a folder provided by an embodiment of the present invention, specifically as follows:
a1, as shown in FIG. 2, acquiring data selected by a user on a Process Design software interface, and judging whether the node is a resource library type or workpiece library type node; if not, the procedure ends; if so, continue to step A2.
And A2, displaying a renaming window, wherein the renaming window is provided with a new and old resource comparison table for a user to select, and the new and old resource comparison table is embodied in an excel form and is used for recording original names, modified names and relevant information of the resource library prototype, example and associated folder. And acquiring whether a sysroot folder associated with the prototype of the current resource library of the Process Design exists through a Process Design secondary development interface, wherein the sysroot folder is a resource storage path which is set by a user and is in a standard structure. When the sysroot folder does not exist, the user is prompted to "prompt: no currently set sysroot! "; when the sysroot folder exists, the process continues.
And A3, acquiring a new and old resource comparison table selected by a user in the renaming window and determining operation, and acquiring the new and old resource comparison table selected by the user through an interface. If the acquisition fails, prompting the user to: "get Excel object error! ", the program is ended; if the acquisition is successful, the procedure continues.
After acquiring the new and old resource comparison table, verifying from the first row of resources of the Excel table, and sequentially checking whether the following conditions exist or not as shown in fig. 3: 1) Checking whether the new resource name or the old resource name of the row of resources is empty, if one of the new resource name or the old resource name is empty, remarking that the name is empty in the renaming state column of the row of resources, and exiting the program and returning a false Boolean value; if not, adding the resource into the resource set, and continuing to check the next step; 2) Checking whether the new resource name and the old resource name of the row of resources are the same, if so, noting that the new name and the old name are consistent in the rename state column of the row of resources, and exiting the program and returning a false Boolean value; if not, adding the resource into the resource set, and continuing to check the next step; 3) Checking whether the new resource name or the old resource name of the row is obviously the same as a certain resource in the resource set, if so, noting that the resource name is repeated in the rename state column of the row of resources, and the program quits and returns a false Boolean value; if not, the procedure continues. One of the three program exit conditions occurs, the program returns a false boolean value, and an information box on the secondary development window appears to prompt a user with information: "there is a problem with the information in the lookup table, please check! "or" indicates: failure to obtain information in the look-up table! "; if the return value is a True Boolean value, the procedure continues. And starting verification from the first row of resources in the new and old resource comparison table, and completing verification of all resources in the new and old resource comparison table according to the method.
And A5, acquiring all resource libraries and workpiece libraries under the resource library nodes specified by the user through a recursive circulation method, and respectively storing the resource libraries and the workpiece libraries in a resource library prototype set or a workpiece library set. And successively traversing the resource library prototype set and the workpiece library set, acquiring resources under the resource library and acquiring the names, associated instance objects and 3D-file paths of the resources when traversing the sets, and adding the names, the associated instance objects and the 3D-file paths into the resource prototype set or the workpiece library set, wherein the 3D-file is a storage data file linked with the resources. Checking whether the resource prototype set and the workpiece library set are empty, and if the resource prototype set and the workpiece library set are empty, remarking a 'rename state' column of the new and old resource comparison table to 'no resource under the selected library node'; if not, the process continues.
And A6, as shown in FIG. 4, traversing all elements of the resource prototype set, and modifying the name of the folder, the name of the prototype and the name of the instance.
And starting traversal from the first resource, and setting the current traversal element as i. Check out is a way for ensuring no conflict in cooperative office, and for a node object in software, there are three cases: check out represents that the resource is occupied by the current user of the user and can be modified; the check in state indicates that the resource is not occupied by all users; the check out by others indicates that the state is occupied by other users, the modification operation cannot be carried out, and other users can only be informed to manually switch to the check in state. Firstly, checking the check out condition of the resource prototype object, and if the check out condition is checked by the current user, continuing the program; if the check state is a check in state, the program calls a secondary development interface to switch the resource object to a check out state; if the resource is checked Out by other users, the column of the rename state of the row of the resource in Excel notes that the Check Out fails, and the program exits. And after checking the check out state of the resource prototype set, continuously acquiring the resource instances associated with the resource prototypes, circularly checking the check out states of all the resource instances, if the check out state of all the resource instances exists, after the program is remarked in an Excel table, exiting the program, otherwise, continuing the program.
Continuously checking whether a 3D-file path associated with the resource i +1 has the problem of the folder write-in authority, and if the folder does not exist or has no write-in authority, noting that the resource original path folder does not exist or the resource path folder has no write-in authority in the Excel table, and exiting the program; if no exception exists, the routine continues.
Continuously checking whether the modified folder has same name conflict with the original folder, if so, noting that the resource is in a name-changing state and has conflict with the modification in the Excel table, and exiting the program; otherwise the procedure continues.
When the check is passed, starting modification operation, firstly modifying the names of the 3D-file folder and the jt format file associated with the resource into new names, and if the modification fails, remarking that the resource file is occupied in a 'rename state' column of a row where the resource is located in the Excel; if the modification is successful, the program continues to modify the names of the resource prototype objects in the Process Design, and if the modification is successful, the program continues to modify the resource instance names associated with the resources into new names one by one. After the modification is successful, the column of "rename state" notes "modification successful".
And after the ith resource is modified, continuously traversing and modifying the (i + 1) th resource until all the resources in the resource prototype set are traversed.
A7, as shown in FIG. 5, after all the names in the resource prototype set are modified, checking whether error information is recorded, and if so, displaying the error information by a popup window; if not, the popup displays: s resources are successfully modified; the routine is ended.
In the above embodiment, the situations that whether the new resource name or the old resource name in the new and old resource tables is empty, whether the new resource name and the old resource name are the same, whether the new resource name or the old resource name is the same as a certain resource name in the resource set, and the like are checked, the situations of error, omission, repetition, and the like of information in the new and old resource tables are eliminated, the modification time is further saved, and the efficiency and the accuracy are improved.
As shown in fig. 6, an embodiment of the present invention further provides a system for renaming a prototype, an example, and a folder, including:
the first acquisition module is used for acquiring a resource library prototype node and a modification command;
the second acquisition module is used for acquiring the folder and the new and old resource comparison table associated with the resource library prototype node through an interface;
the storage module is used for acquiring all resource prototypes under the resource library prototype node and storing the resource prototypes into a set, traversing the set to acquire the names of the resource prototypes, the instances associated with the resource prototypes and the paths of the folders and storing the names, the instances and the paths into the set;
and the name modification module is used for checking the occupation situation of all the resource prototypes, the occupation situation of the examples, the path situation of the folder and the name conflict situation of the folder, and modifying the name of the folder, the name of the prototypes and the name of the examples.
It can be seen that the contents in the foregoing method embodiments are all applicable to this system embodiment, the functions specifically implemented by this system embodiment are the same as those in the foregoing method embodiment, and the advantageous effects achieved by this system embodiment are also the same as those achieved by the foregoing method embodiment.
As shown in fig. 7, another renaming system for prototypes, instances and folders is provided in the embodiments of the present invention, which includes:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, cause the at least one processor to implement the method steps of renaming prototypes, instances, and folders as described in the above method embodiments.
It can be seen that the contents in the foregoing method embodiments are all applicable to this system embodiment, the functions specifically implemented by this system embodiment are the same as those in the foregoing method embodiment, and the advantageous effects achieved by this system embodiment are also the same as those achieved by the foregoing method embodiment.
Furthermore, a storage medium is provided in which processor-executable instructions are stored, which when executed by a processor are configured to perform the steps of the method for renaming prototypes, instances and folders as described in the above method embodiments. Likewise, the contents of the above method embodiments are all applicable to the present storage medium embodiment, the functions specifically implemented by the present storage medium embodiment are the same as those of the above method embodiments, and the advantageous effects achieved by the present storage medium embodiment are also the same as those achieved by the above method embodiments.
As shown in fig. 8, another renaming system for prototypes, examples, and folders according to an embodiment of the present invention includes an emulation software device and a computer device connected to the emulation software device; wherein,
the simulation software equipment is used for carrying out process simulation when a manufacturing production line is planned in the automobile intelligent manufacturing industry;
the computer device includes:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, cause the at least one processor to implement the method steps of renaming prototypes, instances, and folders as described in the above method embodiments.
In particular, for the emulation software device, it is mainly implemented by emulation software, and it may particularly comprise at least one emulation software platform; the computer device may be different types of electronic devices, including but not limited to a desktop computer, a laptop computer, and other terminals.
It can be seen that the contents in the foregoing method embodiments are all applicable to this system embodiment, the functions specifically implemented by this system embodiment are the same as those in the foregoing method embodiment, and the advantageous effects achieved by this system embodiment are also the same as those achieved by the foregoing method embodiment.
The embodiment of the invention provides another implementation way, and specifically describes a using process, which is specifically as follows.
Firstly, opening the Process Design software, selecting a resource library node, clicking a secondary development function button, and popping up a window for renaming resources in batches. And selecting a new and old resource comparison table from the popped-up window, and clicking an application button. The new and old resource comparison table comprises new and old names of resources needing to be modified and other relevant conditions. Before modification, the resource prototype name is different from both the resource instance name and the folder name associated with the resource prototype.
After the "application" button is clicked, the program is waited to run according to the method, and generally, the program can run and finish in only a few minutes. If the modification is successful, the new and old resource comparison table prompts the modification to be successful, and meanwhile, a pop-up window prompts how many resources are successfully modified. After the modification is successful, the resource prototype name is the same as the resource instance name and the folder name associated with the resource prototype.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (9)

1. A renaming method for prototypes, examples and folders is characterized by comprising the following steps:
acquiring a resource library prototype node and a modification command;
acquiring a folder and a new and old resource comparison table associated with the resource library prototype node through an interface; the new and old resource comparison table comprises a plurality of rows of resource information;
acquiring all resource prototypes under the resource library prototype node and storing the resource prototypes into a set, traversing the set to acquire the name of the resource prototype, the instance associated with the resource prototype and the path of the folder, and storing the name, the instance and the path into the set;
checking the occupation situation of all the resource prototypes, the occupation situation of the instances, the path situation of the folder and the name conflict situation of the folder, and modifying the name of the folder, the name of the prototypes and the name of the instances; the method specifically comprises the following steps:
when the name modification requirement is met, the modification operation is started;
modifying the name of the folder and the format file, modifying the name-changing state of the line of resources when the name of the folder or the format file fails to be modified, and quitting the modification; otherwise, continuing to modify the prototype name;
when the prototype name is failed to be modified, modifying the rename state of the line of resources, and quitting modification; otherwise, continuing to modify the instance name;
and when the instance name is successfully modified, modifying the rename state of the line of resources.
2. The method for renaming a prototype, an example and a folder according to claim 1, wherein after the new and old resource lookup tables are obtained through the interface, the method further comprises verifying all information of the new and old resource lookup tables, and specifically comprises the following steps:
checking whether the new name and the old name of the new and old resource comparison table are empty, modifying the renaming state of the resource when any one name is empty, stopping checking and returning a false Boolean value; otherwise, checking continues;
checking whether the new name and the old name of the new and old resource comparison table are the same, modifying the renaming state of the row of resources when the new name and the old name are the same, stopping checking and returning a false Boolean value; otherwise, checking continues;
checking whether the new name and the old name of the new and old resource comparison table are repeated with the existing names in the set or not, if so, modifying the rename state of the resource in the row, stopping checking and returning a false Boolean value; otherwise, storing the row of resources in the set, and continuing the check;
when a false Boolean value returns, feeding back prompt information; otherwise, the check is continued until all the information of the new and old resource comparison tables is verified.
3. The method for renaming prototypes, instances and folders according to claim 1, wherein the step of checking the occupation status of all the prototypes of the resources comprises the following steps:
when the resource prototype state is occupied by the current user, the checking is continued until the occupation condition of all the resource prototypes is checked;
when the resource prototype state is not occupied by all users, calling an interface to switch the resource prototype state to be occupied by the current user, and continuing the check until the original occupation condition of all the resources is checked;
and when the resource prototype state is occupied by other users, modifying the rename state of the resource prototype of the line, and exiting the check.
4. The method for renaming prototype, instance and folder according to claim 1, wherein said checking the path status of all said folders comprises the steps of:
checking whether a 3D-file path associated with the resource prototype exists and the writing permission of the folder;
when the 3D-file path does not exist, modifying the rename state of the line of resources, and exiting the check; otherwise, checking continues;
when the folder has no write-in right, modifying the rename state of the row of resources, and exiting the check; otherwise, the checking is continued until the path conditions of all the folders are checked.
5. The method for renaming prototype, instance and folder according to claim 1, wherein said checking all said folders for name conflicts comprises the steps of:
checking whether the new name modified by the folder is the same as the original folder name;
if the same name exists, modifying the rename state of the line of resources, and quitting the check; otherwise, the checking is continued until the name conflict condition of all the folders is checked.
6. A system for renaming prototypes, instances, and folders, comprising:
the first acquisition module is used for acquiring a resource library prototype node and a modification command;
the second acquisition module is used for acquiring the folder and the new and old resource comparison table associated with the resource library prototype node through an interface; the new and old resource comparison table comprises a plurality of rows of resource information;
the storage module is used for acquiring all resource prototypes under the resource library prototype node and storing the resource prototypes into a set, traversing the set to acquire the names of the resource prototypes, the instances associated with the resource prototypes and the paths of the folders and storing the names, the instances and the paths into the set;
a name modification module, configured to check occupation statuses of all the resource prototypes, occupation statuses of the instances, path statuses of the folders, and name conflict statuses of the folders, and modify names of the folders, the prototype names, and the instance names; the method specifically comprises the following steps: when the name modification requirement is met, the modification operation is started; modifying the name of the folder and the format file, modifying the name-changing state of the line of resources when the name of the folder or the format file fails to be modified, and quitting the modification; otherwise, continuing to modify the prototype name; when the prototype name is failed to be modified, modifying the rename state of the line of resources, and quitting modification; otherwise, continuing to modify the instance name; and when the instance name is successfully modified, modifying the rename state of the line of resources.
7. A system for renaming prototypes, instances, and folders, comprising:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, cause the at least one processor to implement the method of renaming prototypes, instances, and folders as claimed in any one of claims 1-5.
8. A storage medium having stored therein processor-executable instructions for performing the method of renaming prototypes, instances and folders as claimed in any one of claims 1-5 when executed by a processor.
9. A renaming system for prototypes, examples and folders is characterized by comprising simulation software equipment and computer equipment connected with the simulation software equipment; wherein,
the simulation software equipment is used for carrying out process simulation when the manufacturing production line is planned in the automobile intelligent manufacturing industry;
the computer device includes:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, cause the at least one processor to implement the method of renaming prototypes, instances, and folders as claimed in any one of claims 1-5.
CN201911081364.6A 2019-11-07 2019-11-07 Method, system and storage medium for renaming prototype, example and folder Active CN110968558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911081364.6A CN110968558B (en) 2019-11-07 2019-11-07 Method, system and storage medium for renaming prototype, example and folder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911081364.6A CN110968558B (en) 2019-11-07 2019-11-07 Method, system and storage medium for renaming prototype, example and folder

Publications (2)

Publication Number Publication Date
CN110968558A CN110968558A (en) 2020-04-07
CN110968558B true CN110968558B (en) 2023-04-07

Family

ID=70030403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911081364.6A Active CN110968558B (en) 2019-11-07 2019-11-07 Method, system and storage medium for renaming prototype, example and folder

Country Status (1)

Country Link
CN (1) CN110968558B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858485A (en) * 2020-06-24 2020-10-30 广州明珞汽车装备有限公司 Robot track enveloping body naming method, system and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1975721A (en) * 2005-11-02 2007-06-06 三星电子株式会社 Method and apparatus for managing content file information, and medium of storing program
CN104166669A (en) * 2014-06-16 2014-11-26 周连惠 File management method and system based on graphical interface
CN105373636A (en) * 2014-08-26 2016-03-02 南车株洲电力机车研究所有限公司 Enterprise Windchill system based ProE standard part library construction method
CN105630818A (en) * 2014-10-31 2016-06-01 东莞宇龙通信科技有限公司 Method and device for renaming files in batches
CN106021359A (en) * 2016-05-10 2016-10-12 北京数码大方科技股份有限公司 CAD file modification method and device
CN106202022A (en) * 2016-07-18 2016-12-07 广州明珞汽车装备有限公司 A kind of solder joint data processing method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6832371B1 (en) * 1999-01-04 2004-12-14 Microsoft Corporation Method for automatically updating a computer registry

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1975721A (en) * 2005-11-02 2007-06-06 三星电子株式会社 Method and apparatus for managing content file information, and medium of storing program
CN104166669A (en) * 2014-06-16 2014-11-26 周连惠 File management method and system based on graphical interface
CN105373636A (en) * 2014-08-26 2016-03-02 南车株洲电力机车研究所有限公司 Enterprise Windchill system based ProE standard part library construction method
CN105630818A (en) * 2014-10-31 2016-06-01 东莞宇龙通信科技有限公司 Method and device for renaming files in batches
CN106021359A (en) * 2016-05-10 2016-10-12 北京数码大方科技股份有限公司 CAD file modification method and device
CN106202022A (en) * 2016-07-18 2016-12-07 广州明珞汽车装备有限公司 A kind of solder joint data processing method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于AutoCAD的铁路枢纽线路设计辅助***的研究";祝正梅;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20120415;全文 *

Also Published As

Publication number Publication date
CN110968558A (en) 2020-04-07

Similar Documents

Publication Publication Date Title
US7917895B2 (en) Automated software testing and validation system
US6002869A (en) System and method for automatically testing software programs
Bourdonov et al. UniTesK test suite architecture
CN105389256A (en) Unit testing method and system
CN114880220B (en) Development system and method of vehicle automatic driving software
CN110543427B (en) Test case storage method and device, electronic equipment and storage medium
US5951697A (en) Testing the sharing of stored computer information
CN110968558B (en) Method, system and storage medium for renaming prototype, example and folder
CN109948212A (en) Modeling specification inspection method and device
CN114237754B (en) Data loading method and device, electronic equipment and storage medium
CN107577527A (en) Task generation and scheduling method and device
CN111767218B (en) Automatic test method, equipment and storage medium for continuous integration
CN111191321B (en) Control method, system and storage medium for renaming welding spots
CN107844535B (en) External resource library calling method and system
CN111259619A (en) Control method and device for configuration object, storage medium and verification platform
CN114546823B (en) Method for reproducing debug scenario of logic system design and related equipment
CN115757172A (en) Test execution method and device, storage medium and computer equipment
CN115470141A (en) Fault simulation method, device and related equipment
CN115470132A (en) Test method, device, equipment and medium for automatic driving data recording system
CN114996076A (en) Traversal type use case verification method and system for chip simulation and electronic equipment
CN114817047A (en) Compiler test method, case generation method and device and instruction storage structure
CN113934446A (en) Micro-service configuration system and method based on container cloud platform
CN109800155B (en) Method and device for testing QTE interlocking application software based on Probe
CN109669868A (en) The method and system of software test
US20240241889A1 (en) Framework for building cluster management controllers

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant