CN111488313A - Tribon-based model name batch processing method and system - Google Patents

Tribon-based model name batch processing method and system Download PDF

Info

Publication number
CN111488313A
CN111488313A CN202010173788.1A CN202010173788A CN111488313A CN 111488313 A CN111488313 A CN 111488313A CN 202010173788 A CN202010173788 A CN 202010173788A CN 111488313 A CN111488313 A CN 111488313A
Authority
CN
China
Prior art keywords
model
target
tribon
sequence
models
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.)
Granted
Application number
CN202010173788.1A
Other languages
Chinese (zh)
Other versions
CN111488313B (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.)
Shanghai Waigaoqiao Shipbuilding Co Ltd
Original Assignee
Shanghai Waigaoqiao Shipbuilding 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 Shanghai Waigaoqiao Shipbuilding Co Ltd filed Critical Shanghai Waigaoqiao Shipbuilding Co Ltd
Priority to CN202010173788.1A priority Critical patent/CN111488313B/en
Publication of CN111488313A publication Critical patent/CN111488313A/en
Application granted granted Critical
Publication of CN111488313B publication Critical patent/CN111488313B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a batch processing method and a batch processing system based on a Tribon model name, wherein the batch processing method comprises the following steps: acquiring n models from a model database of the Tribon as target models; n is a positive integer; receiving an initial number, and generating an integer sequence taking the initial number as an initial value, wherein the integer sequence comprises n target serial numbers, and the n target serial numbers accord with a preset rule; and replacing the sequence number field of the target model by each target sequence number to generate a new model name. According to the invention, the model database of the Tribon is directly accessed, and the model names are modified in batch in the model database, so that the efficiency of modifying the model names is improved, and the time is saved.

Description

Tribon-based model name batch processing method and system
Technical Field
The invention belongs to the technical field of batch processing of model names based on a Tribon (a computer software integrated system for assisting ship design and construction), and particularly relates to a batch processing method and system of model names based on the Tribon.
Background
The Tribon is a computer software integrated system for assisting ship design and construction, which is widely applied in the fields of ship body design, outfitting design and the like. In the process of designing on the Tribon platform, model names are modified for three-dimensional construction models sometimes. In this case, the model is often activated on the design interface of the Tribon, and then the model name is modified and the model is saved. The mode of modifying the model name can only modify one model name at a time, and the model name is required to be manually operated, so that the efficiency is low, and the time consumption is high.
Disclosure of Invention
The invention aims to overcome the defect of low efficiency of modifying model names on a Tribon platform in the prior art, and provides a method and a system for batch processing of the model names based on the Tribon.
The invention solves the technical problems through the following technical scheme:
the invention provides a batch processing method of a model name based on a Tribon, wherein the model name comprises a sequence number field, and the batch processing method comprises the following steps:
s1, acquiring n models from a Tribon model database as target models; n is a positive integer;
s2, receiving the initial number, and generating an integer sequence taking the initial number as an initial value, wherein the integer sequence comprises n target serial numbers, and the n target serial numbers accord with a preset rule;
and S3, replacing the sequence number field of the target model with each target sequence number respectively to generate a new model name.
Preferably, step S1 includes:
and receiving the target keyword, and searching a model containing the target keyword in the model name from the model database to serve as a target model.
Preferably, the target keywords comprise characters for characterizing the type of the model.
Preferably, the predetermined rule is that n target sequence numbers form an arithmetic sequence.
Preferably, step S1 further includes:
ordering the target models according to the position information of the n target models;
step S3 includes:
the sequence number field of the sorted ith target model, i ∈ [1, n ], is replaced with the ith target sequence number listed in arithmetic.
Preferably, the step of ordering the target models according to the n pieces of target model position information includes:
and sequencing the target models according to the X-axis coordinate, the Y-axis coordinate or the Z-axis coordinate of the n target models from small to large.
The invention also provides a batch processing system based on the Tribon model name, wherein the model name comprises a sequence number field, and the batch processing system comprises a model acquisition unit, a sequence generation unit and a name generation unit;
the model acquisition unit is used for acquiring n models from a model database of the Tribon as target models; n is a positive integer;
the sequence generating unit is used for receiving the initial number and generating an integer sequence taking the initial number as an initial value, wherein the integer sequence comprises n target serial numbers, and the n target serial numbers accord with a preset rule;
the name generation unit is used for replacing the sequence number field of the target model with each target sequence number respectively to generate a new model name.
Preferably, the model obtaining unit is further configured to receive the target keyword, and search the model database for a model containing the target keyword in the model name as the target model.
Preferably, the target keywords comprise characters for characterizing the type of the model.
Preferably, the predetermined rule is that n target sequence numbers form an arithmetic sequence.
Preferably, the model obtaining unit is further configured to sort the target models according to the position information of the n target models;
the name generation unit is arranged to replace the sequence number field of the sorted ith target model, i ∈ [1, n ], with the ith target sequence number listed in arithmetic.
Preferably, the model obtaining unit is further configured to sort the target models in order from small to large according to the X-axis coordinates, the Y-axis coordinates, or the Z-axis coordinates of the n target models.
The positive progress effects of the invention are as follows: according to the invention, the model database of the Tribon is directly accessed, and the model names are modified in batch in the model database, so that the efficiency of modifying the model names is improved, and the time is saved.
Drawings
Fig. 1 is a flowchart illustrating a batch processing method based on a Tribon model name according to a preferred embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a batch processing system based on a Tribon model name according to a preferred embodiment of the present invention.
Detailed Description
The present invention is further illustrated by the following preferred embodiments, but is not intended to be limited thereby.
The embodiment provides a batch processing method based on a model name of a Tribon. The model name in the Tribon platform includes a sequence number field. For example, the model name "EB 114-SCT-211" includes a plurality of fields separated by "-". Where "SCT" is a field indicating a type of the model ("SCT" indicates that the model is a model indicating a carriage, similarly, "FB" indicates that the model is a model indicating a flat bar, "NST" indicates that the model is a model indicating a base), and "211" is a serial number field. Referring to fig. 1, the batch processing method based on the name of the Tribon model of the present embodiment includes the following steps:
and S101, acquiring n models from a model database of the Tribon as target models. n is a positive integer. In the prior art, the model needs to be activated on a design interface of the Tribon so as to modify the model name. In the embodiment, the model name can be modified by directly accessing the model database of the Tribon without activating the model, so that the time is saved, and the efficiency is improved.
Step S102, receiving the initial number, and generating an integer sequence taking the initial number as an initial value. The integer sequence comprises n target serial numbers, and the n target serial numbers accord with a preset rule.
And step S103, replacing the sequence number field of the target model with each target sequence number respectively to generate a new model name.
As a preferred implementation manner, the batch processing method based on the model name of the Tribon further sets an interactive window in the Tribon platform, receives the target keyword input by the user through the interactive window in step S101, and then searches the model database for the model with the model name including the target keyword as the target model. In the present embodiment, the target keyword includes a character for characterizing the type of the model. For example, if the user inputs "SCT", the models in the model database including "SCT" in the model name are each set as the target model. Suppose the number of target models is 4, and the names of the 4 target models are "EB 114-SCT-211", "EB 114-SCT-213", "EB 114-SCT-225", and "EB 114-SCT-226", respectively. Then, the 4 object models are sorted according to their position information. As an optional implementation manner, the target models are preferentially sorted according to the X-axis coordinates of the target models from small to large; under the condition that the X-axis coordinates are equal, sequencing the related target models according to the Y-axis coordinates from small to large; and under the condition that the Y-axis coordinates are also equal, sequencing the related target models according to the Z-axis coordinates from small to large. The sequence of 4 target models after sequencing is set as 'EB 114-SCT-226', 'EB 114-SCT-213', 'EB 114-SCT-211' and 'EB 114-SCT-225'. In other alternative embodiments, the priority of the X-axis coordinates or the Y-axis coordinates or the Z-axis coordinates according to the order is adjusted as necessary.
Then, in step S102, a start number input by the user is received through the interactive window, and then an integer sequence including 4 target sequence numbers is generated. As an alternative implementation, in the generated integer sequence, 4 target sequence numbers form an arithmetic sequence. For example, when the initial number is 002, the 4 target numbers are 002, 003, 004, and 005, respectively.
In step S103, replacing the sequence number field of the i-th target model with the i-th target sequence number listed by the equal difference, i ∈ [1, 4 ]. that is, the model name "EB 114-SCT-226" is modified to "EB 114-SCT-002", the model name "EB 114-SCT-213" is modified to "EB 114-SCT-003", the model name "EB 114-SCT-211" is modified to "EB 114-SCT-004", the model name "EB 114-SCT-225" is modified to "EB 114-SCT-005", the target models are sequentially ordered according to the order of the coordinate values from small to large, and the names are modified according to the order, which can facilitate the post-production of installation diagrams, and the searching and management of models by users in the aspect.
Compared with the technical scheme that model names need to be manually modified one by one in the prior art, the batch processing method based on the model names of the Tribon directly accesses the model database of the Tribon, modifies the model names in batch in the model database, improves the efficiency of modifying the model names, and saves time.
The present embodiment further provides a batch processing system based on the name of the Tribon model, and referring to fig. 2, the batch processing system based on the name of the Tribon model includes a model obtaining unit 201, a sequence generating unit 202, and a name generating unit 203.
The batch processing system of the embodiment is embedded in a Tribon platform. The model obtaining unit 201 is configured to obtain n models from a model database of a Tribon as target models; n is a positive integer. The sequence generating unit 202 is configured to receive the start number, and generate an integer sequence using the start number as a start value, where the integer sequence includes n target sequence numbers, and the n target sequence numbers conform to a preset rule. The name generation unit 203 is configured to replace the sequence number field of the target model with each target sequence number to generate a new model name.
In the process of modifying the name in batch, the model obtaining unit 201 is further configured to receive a target keyword input by a user through an interactive window, and search a model database for a model with the model name including the target keyword as a target model. The target keywords include characters that characterize the type of the model. For example, the user inputs "SCT", the model acquisition unit 201 sets, as the target model, models in the model database each including "SCT" in the model name. Suppose the number of target models is 4, and the names of the 4 target models are "EB 114-SCT-211", "EB 114-SCT-213", "EB 114-SCT-225", and "EB 114-SCT-226", respectively. Then, the model acquisition unit 201 also sorts the 4 object models according to their position information. As an optional implementation manner, the model obtaining unit 201 preferentially ranks the target models in the order from small to large according to the X-axis coordinates of the target models; under the condition that the X-axis coordinates are equal, the model acquisition unit 201 sorts the relevant target models according to the Y-axis coordinates in the descending order; in the case where the Y-axis coordinates are also equal, the model acquisition unit 201 sorts the relevant target models in descending order according to the Z-axis coordinates. The sequence of 4 target models after sequencing is set as 'EB 114-SCT-226', 'EB 114-SCT-213', 'EB 114-SCT-211' and 'EB 114-SCT-225'. In other alternative embodiments, the priority of the X-axis coordinates or the Y-axis coordinates or the Z-axis coordinates according to the order may be adjusted as needed.
Then, the sequence generating unit 202 receives the start number input by the user through the interactive window and generates an integer sequence including 4 target sequence numbers. As an alternative implementation, in the generated integer sequence, 4 target sequence numbers form an arithmetic sequence. For example, when the initial number is 002, the 4 target numbers are 002, 003, 004, and 005, respectively.
Next, the name generating unit 203 replaces the sequence number field of the i-th object model by the i-th object sequence number listed by the difference, i ∈ [1, 4 ]. that is, the model name "EB 114-SCT-226" is modified to "EB 114-SCT-002", the model name "EB 114-SCT-213" is modified to "EB 114-SCT-003", the model name "EB 114-SCT-211" is modified to "EB 114-SCT-004", the model name "EB 114-SCT-225" is modified to "EB 114-SCT-005", the object models are sequentially ordered in order of smaller coordinate values to larger coordinate values, and the names are modified for the object models in accordance with the order, which can facilitate post-production of installation diagrams, and searching and management of models by users in the aspect.
Compared with the technical scheme that model names need to be manually modified one by one in the prior art, the batch processing system based on the model names of the Tribon directly accesses the model database of the Tribon and modifies the model names in batch in the model database, so that the efficiency of modifying the model names is improved, and the time is saved.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (12)

1. A batch processing method of a model name based on a Tribon is characterized in that the model name comprises a sequence number field, and the batch processing method comprises the following steps:
s1, acquiring n models from a Tribon model database as target models; n is a positive integer;
s2, receiving a starting number, and generating an integer sequence taking the starting number as a starting value, wherein the integer sequence comprises n target sequence numbers, and the n target sequence numbers accord with a preset rule;
s3, respectively replacing the sequence number field of the target model by each target sequence number to generate a new model name.
2. The method of batching a Tribon-based model name according to claim 1, wherein the step S1 comprises:
receiving a target keyword, and searching the model name containing the target keyword from the model database to serve as the target model.
3. The method of claim 2, wherein the target keyword comprises a character for characterizing a type of the model.
4. The batch processing method of a model name based on a Tribon according to claim 1, wherein the predetermined rule is that n target sequence numbers form an arithmetic series.
5. The method of batching Tribon-based model names according to claim 4, wherein the step S1 further comprises:
sorting the target models according to the position information of the n target models;
step S3 includes:
replacing the sequence number field, i ∈ [1, n ], of the object model ordered i with the ith said object sequence number listed in the arithmetic.
6. The method of claim 5, wherein the step of ordering the target models according to the n pieces of target model location information comprises:
and sequencing the target models according to the X-axis coordinate, the Y-axis coordinate or the Z-axis coordinate of the n target models from small to large.
7. The batch processing system of the model name based on the Tribon is characterized in that the model name comprises a sequence number field, and the batch processing system comprises a model obtaining unit, a sequence generating unit and a name generating unit;
the model acquisition unit is used for acquiring n models from a model database of the Tribon as target models; n is a positive integer;
the sequence generating unit is used for receiving a starting number and generating an integer sequence taking the starting number as a starting value, wherein the integer sequence comprises n target sequence numbers, and the n target sequence numbers accord with a preset rule;
the name generating unit is used for replacing the sequence number field of the target model with each target sequence number respectively to generate a new model name.
8. The batch processing system of a Tribon-based model name of claim 7, wherein the model obtaining unit is further configured to receive a target keyword, and search the model database for a model in the model name that contains the target keyword as the target model.
9. The Tribon-based model name batch processing system of claim 8, wherein the target keywords comprise characters that characterize a type of the model.
10. The Tribon-based model name batch processing system of claim 7, wherein the predetermined rule is that n target sequence numbers form an arithmetic sequence.
11. The batch processing system of a Tribon-based model name according to claim 10, wherein the model obtaining unit is further configured to order the target models according to the location information of the n target models;
the name generation unit is configured to replace the sequence number field, i ∈ [1, n ], of the object model ordered i with the ith said object sequence number listed in the arithmetic.
12. The batch processing system of a Tribon-based model name according to claim 11, wherein the model obtaining unit is further configured to sort the target models in order of small to large according to X-axis coordinates or Y-axis coordinates or Z-axis coordinates of the n target models.
CN202010173788.1A 2020-03-13 2020-03-13 Model name batch processing method and system based on Tribon Active CN111488313B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010173788.1A CN111488313B (en) 2020-03-13 2020-03-13 Model name batch processing method and system based on Tribon

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010173788.1A CN111488313B (en) 2020-03-13 2020-03-13 Model name batch processing method and system based on Tribon

Publications (2)

Publication Number Publication Date
CN111488313A true CN111488313A (en) 2020-08-04
CN111488313B CN111488313B (en) 2024-02-02

Family

ID=71794389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010173788.1A Active CN111488313B (en) 2020-03-13 2020-03-13 Model name batch processing method and system based on Tribon

Country Status (1)

Country Link
CN (1) CN111488313B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416870A (en) * 2020-11-26 2021-02-26 维沃移动通信有限公司 Name modification method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000132548A (en) * 1998-10-21 2000-05-12 Sharp Corp Character string retrieval device and method and computer-readable recording medium recording character string retrieval program
US20120179711A1 (en) * 2011-01-06 2012-07-12 Eric Delafortrie System and Method for Accessing a Database Including Data Abstraction Layer and Request Table Processing
JP2015179315A (en) * 2014-03-18 2015-10-08 日本電信電話株式会社 Object generation device, method, and program
CN105630818A (en) * 2014-10-31 2016-06-01 东莞宇龙通信科技有限公司 Batch file renaming method and apparatus
CN109102170A (en) * 2018-07-24 2018-12-28 广东电网有限责任公司 Device model title modification method, device and storage medium based on OMS
CN109360220A (en) * 2018-10-25 2019-02-19 南昌工程学院 A kind of batch processing system of rock core tomography CT sequence image

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000132548A (en) * 1998-10-21 2000-05-12 Sharp Corp Character string retrieval device and method and computer-readable recording medium recording character string retrieval program
US20120179711A1 (en) * 2011-01-06 2012-07-12 Eric Delafortrie System and Method for Accessing a Database Including Data Abstraction Layer and Request Table Processing
JP2015179315A (en) * 2014-03-18 2015-10-08 日本電信電話株式会社 Object generation device, method, and program
CN105630818A (en) * 2014-10-31 2016-06-01 东莞宇龙通信科技有限公司 Batch file renaming method and apparatus
CN109102170A (en) * 2018-07-24 2018-12-28 广东电网有限责任公司 Device model title modification method, device and storage medium based on OMS
CN109360220A (en) * 2018-10-25 2019-02-19 南昌工程学院 A kind of batch processing system of rock core tomography CT sequence image

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
LIU PEI-LIN ETC.: "Ship CAE Modeling Based on Tribon XML File", 《2012 EIGHTH INTERNATIONAL CONFERENCE ON COMPUTATIONAL INTELLIGENCE AND SECURITY》, pages 425 - 428 *
王天: "船舶机舱三维模型虚拟仿真系统设计", 《电子世界》, pages 183 *
罗广祥 等: "曲线坐标系下线状要素名称注记定位模型的研究", 《测绘科学》, pages 57 - 58 *
魏思 等: "《结构软件学且思——以STAAD为例》", 天津大学出版社, pages: 87 - 91 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416870A (en) * 2020-11-26 2021-02-26 维沃移动通信有限公司 Name modification method and device and electronic equipment

Also Published As

Publication number Publication date
CN111488313B (en) 2024-02-02

Similar Documents

Publication Publication Date Title
US20030149704A1 (en) Similarity-based search method by relevance feedback
CN109522011B (en) Code line recommendation method based on context depth perception of programming site
WO2007085187A1 (en) Method of data retrieval, method of generating index files and search engine
EP2631815A1 (en) Method and device for ordering search results, method and device for providing information
CN111651453A (en) User historical behavior query method and device, electronic equipment and storage medium
US8489643B1 (en) System and method for automated content aggregation using knowledge base construction
CN115827715B (en) Search recommendation list generation system based on user behavior and design hierarchical tree
CN113434482A (en) Data migration method and device, computer equipment and storage medium
CN111488313B (en) Model name batch processing method and system based on Tribon
JPH09245043A (en) Information retrieval device
CN111984673B (en) Fuzzy retrieval method and device for tree structure of power grid electric energy metering system
CN106127863A (en) A kind of refrigerator foaming die series design system and method thereof
CN112632264A (en) Intelligent question and answer method and device, electronic equipment and storage medium
CN116955538A (en) Medical dictionary data matching method and device, electronic equipment and storage medium
JP4136594B2 (en) Data processing method and data processing program
CN106980673A (en) Main memory database table index updating method and system
CN115795521A (en) Access control method, device, electronic equipment and storage medium
CN114722140A (en) Data pushing method, device, equipment and storage medium based on user label
CN114547286A (en) Information searching method and device and electronic equipment
JP3558267B2 (en) Document search device
CN112395365B (en) Knowledge graph batch offline query solution
CN102436446A (en) Method and device for updating abstract structure
CN105930162B (en) A kind of characteristic positioning method based on subgraph search
CN115455010B (en) Data processing method based on milvus database, electronic equipment and storage medium
CN110019993B (en) Method for realizing sequencing optimization algorithm technology based on massive standard literature data

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