CN109062875A - A kind of end C/S three-dimensional modeling data conversion method, device and storage medium - Google Patents
A kind of end C/S three-dimensional modeling data conversion method, device and storage medium Download PDFInfo
- Publication number
- CN109062875A CN109062875A CN201810737902.1A CN201810737902A CN109062875A CN 109062875 A CN109062875 A CN 109062875A CN 201810737902 A CN201810737902 A CN 201810737902A CN 109062875 A CN109062875 A CN 109062875A
- Authority
- CN
- China
- Prior art keywords
- dimensional modeling
- data conversion
- speciality
- scala
- conversion method
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/151—Transformation
- G06F40/154—Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/14—Tree-structured documents
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention discloses a kind of end C/S three-dimensional modeling data conversion method, device and storage medium, is related to internet data processing technology field, extracts product model the file information, constructs the set of model object;The data for extracting the set of model object are mapped, and are indicated different data types by different speciality marks, are generated xml element;Parsing generates xml document structure;Xml document is obtained according to xml element and xml document structure, completes three-dimensional modeling data conversion;Versatility of the present invention is extremely strong, provides a kind of new approaches to solve product data transmission Internet-based with sharing problem.
Description
Technical field
The present invention relates to internet data processing technology field more particularly to a kind of end C/S three-dimensional modeling data conversion sides
Method, device and storage medium.
Background technique
With the development of China's advanced manufacturing technology, scatter data needs to highlight already.First is that enterprise
When internal Implementing Concurrent Engineering, it is desirable that in the design phase of product, while considering subsequent technological design, manufacturing equipment and worker
Constraint of the technical level to design.This requires can run through the information sharing of entire product life cycle.Second is that implementing enterprise
When alliance manufactures, virtual enterprise gets up to carry out strange land coordinate design using product as machine, when constructing dynamic supply chain,
Due to their isomerisms that respectively design platform is likely that there are, electronic document and drawing information can not directly be shared and become association
Same huge obstacle, this also proposes urgent demand to the shared of product information.Using step as the product data of core and with
The advantages of xml is the network data of core, respectively there is oneself, in order to solve Internet-based in networking and Digitized manufacturing
Product data transmission and sharing problem, propose a kind of data transfer device and device.
Usual conversion method is first by the STEP file of some fundamental figures produced to CAD software (such as Pro/E)
Manual analysis is carried out, obtains the analysis of the result of STEP physical file, format, grammer and semanteme as a result, establishing STEP language
Rule.Then, morphological analysis, syntactic analysis and semanteme are carried out by character style using STEP file of the technique of compiling to importing
Analysis obtains STEP data and structure.Finally, actual analysis as a result, being applied to EXPRESS (ISO 10303-11) and xml
Mapping mechanism is defined the result and grammatical and semantic of XML document, it is established that the corresponding relationship of STEP example and XML element
To generate XML document.
Universal transform method only supports the graph data of STEP neutral file storage form to convert to XML, and has no way
Expand the support to other business agreements and data storage format.Technique of compiling is for converting high-level language to low-level language
, and be not suitable for handle the conversion between markup language, the treatment process of compiler is extremely complex, and it is non-to implement efficiency
It is often low.Have at present based on C, C++ SDAI interface realization rate similar with Java language, EXPRESS language and its binding, SDAI
The definition of operation operates SDAI to realize, but still low efficiency, the scope of application are small.
Summary of the invention
The present invention provides a kind of end C/S three-dimensional modeling data conversion method, device and storage aiming at the problem that background technique
Medium, to solve the problems, such as that low efficiency and use scope are small.
To achieve the goals above, the present invention proposes a kind of end C/S three-dimensional modeling data conversion method, including walks as follows
It is rapid:
Product model the file information is extracted, the set of model object is constructed;
The data for extracting the set of model object are mapped, and indicate different data class by different speciality marks
Type generates xml element;
Parsing generates xml document structure;
Xml document is obtained according to xml element and xml document structure, completes three-dimensional modeling data conversion.
Preferably, the extraction product model file data, constructs in the set step of model object, further includes, mention
Take database information.
Preferably, the data of the set of the extraction model object are mapped, and being identified by different speciality indicates
Different data types generates xml element, specifically:
By solid data Type mapping to Scala language, mapping ruler are as follows: remove table using the speciality of different letter prefix
Show different types of data;Realize that Scala supports the mapping of xml document after solid data Type mapping to Scala language.
Preferably, the speciality, comprising: Scala interface speciality, Scala superposition speciality, Scala richness interface speciality and
Additional Scala embodies speciality.
Preferably, mapping of the Scala to xml document, using the mapping mode of late binding.
Preferably, in late binding, the label of xml is directly corresponding with the metadata object in Scala speciality tuple,
And load preservation.
Preferably, the product model the file information, comprising: entity, data type, defines data type, is several attribute
What data type, constant and function.
The present invention also proposes a kind of end C/S three-dimensional modeling data conversion equipment, comprising:
Processor;
Memory is coupled to the processor and is stored with instruction, and the instruction is executing reality by the processor
The now the step of end C/S three-dimensional modeling data conversion method.
The present invention also proposes that a kind of computer-readable storage medium, the computer-readable storage medium are stored with C/
The application program of the end S three-dimensional modeling data conversion method, the application program realize the end the C/S three-dimensional modeling data conversion
The step of method.
The present invention proposes a kind of end C/S three-dimensional modeling data conversion method, device and storage medium, and versatility is extremely strong, is
It solves product data transmission Internet-based and provides a kind of new method and apparatus with sharing problem.Realize manufacturing field number
According to shared, more importantly the marriage of it and XML technology, make it possible cross-platform data communication reality.It realizes
Conversion to complex three-dimensional model to xml document meets the information requirement of product whole life cycle.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
The structure shown according to these attached drawings obtains other attached drawings.
Fig. 1 is the end C/S three-dimensional modeling data conversion method flow chart in an embodiment of the present invention;
Fig. 2 is the end C/S three-dimensional modeling data transfer framework figure in an embodiment of the present invention;
Fig. 3 is the end C/S three-dimensional modeling data conversion device structure block diagram in an embodiment of the present invention;
Fig. 4 is computer-readable storage medium structural schematic diagram in an embodiment of the present invention;
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiment is only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
His embodiment, shall fall within the protection scope of the present invention.
It is to be appreciated that if relating to directionality instruction (such as up, down, left, right, before and after ...) in the embodiment of the present invention,
Then directionality instruction be only used for explain under a certain particular pose (as shown in the picture) between each component relative positional relationship,
Motion conditions etc., if the particular pose changes, directionality instruction is also correspondingly changed correspondingly.
In addition, being somebody's turn to do " first ", " second " etc. if relating to the description of " first ", " second " etc. in the embodiment of the present invention
Description be used for description purposes only, be not understood to indicate or imply its relative importance or implicitly indicate indicated skill
The quantity of art feature." first " is defined as a result, the feature of " second " can explicitly or implicitly include at least one spy
Sign.It in addition, the technical solution between each embodiment can be combined with each other, but must be with those of ordinary skill in the art's energy
It is enough realize based on, will be understood that the knot of this technical solution when conflicting or cannot achieve when occurs in the combination of technical solution
Conjunction is not present, also not the present invention claims protection scope within.
The present invention proposes a kind of end C/S three-dimensional modeling data conversion method;
In first preferred embodiment of the invention, by taking product model file step is converted to network data file xml as an example, stream
Journey figure is as shown in Figure 1, include the following steps:
S10, product model the file information and database information are extracted, constructs the set of model object;
In the embodiment of the present invention, based on scala language specific implementation speciality (similar this abstract specification of SDAI) application
Programming interface, it is important to extract product model the file information, such as expression formula:
With Scala language binding, the interface of the arbitrary data of data model, i.e. entity, attribute, data type etc. are handled;
The data of the set of S20, extraction model object are mapped, and passing through different speciality marks indicates different data
Type generates xml element;
It in the embodiment of the present invention, extracts schema (set of model object), entity, attribute, data type, defines data
Type, geometric data type and constant, function etc. are mapped to the corresponding specific speciality of Scala.Part of standards part is various right
Element is answered to deposit in the database.
Building maps for example: val Scores=scala.collection.mutable.Step [String, int] ()
In the embodiment of the present invention, in order to support more succession language in product model file, by product mould when realization maps
Type extracts the speciality that each tuple in information corresponds to Scala specific implementation.The speciality is each display of entity
Attribute generate two read methods: set<consolelogger>Scala language be abstracted speciality interface arbitrarily reads with get<
Consolelogger > Scala language is abstracted the specific reading of speciality interface.Each entity " XXX " is corresponded to one by the present invention
Scala interface speciality " EXXX ", Scala are superimposed speciality " CXXX ", a Scala richness interface speciality " TXXX " and one it is attached
The Scala added embodies speciality " AXXX " to contain the tuple of the example of this entity.
S30, parsing generate xml document structure;
In the embodiment of the present invention, desorber operation xml is called for example:
The speciality of Scala language binding is generating new corresponding element, corresponding attribute, corresponding daughter element, sequence, quantity with
And data type, the value and fixed value of element and attribute default;
S40, xml document is obtained according to xml element and xml document structure, completes three-dimensional modeling data conversion.
It, can be with since xml document is closely similar in terms of data-interface definition with scala speciality in the embodiment of the present invention
Coupling element is corresponded to using Scala to describe product data, and defines product data document with corresponding xml schema, it is real
Data conversion is showed.
In the embodiment of the present invention, as shown in Fig. 2, product model file and database, it is various to obtain xml by conversion extraction
Corresponding element, in addition generating xml document knot with the set of speciality (resolver) schema model object of Scala language binding
Structure ultimately generates xml document.
In second preferred embodiment of the invention, pass through different speciality described in step S20 in the first preferred embodiment
Mark indicates different data types, specific as follows:
Solid data type is mapped to Scala by following rule:
Expression solid data type, such as " EXXX " are gone as the speciality that interface uses by band " E " prefix;
Solid polymer composite data type, such as " CXXX " are expressed by the superposition speciality started with " C " prefix;
Multiple entities data type, such as " TXXX " are expressed by the rich interface speciality started with " T " prefix;
The set of solid data type, such as " AXXX " are expressed by the concrete embodiment speciality with " A " prefix;
Extraction element realizes Scala to the mapping branch of xml document for after all product model information and Scala mapping
It holds.
In third preferred embodiment of the invention, mapping of the Scala to xml document in the second preferred embodiments,
The specific mapping mode for using late binding;In late binding, the not direct data with physical model file of the label of xml
Type is corresponding, but directly corresponding with the metadata object (including entity, attribute, data type) in Scala speciality tuple,
And load preservation.
The present invention also proposes a kind of end C/S three-dimensional modeling data conversion equipment, as shown in Figure 3, comprising:
Processor;
Memory is coupled to the processor and is stored with instruction (application program), and the instruction is by described
It manages device and executes the step of realizing the end the C/S three-dimensional modeling data conversion method;Such as:
S10, product model the file information and database information are extracted, constructs the set of model object;
The data of the set of S20, extraction model object are mapped, and passing through different speciality marks indicates different data
Type generates xml element;
S30, parsing generate xml document structure;
S40, xml document is obtained according to xml element and xml document structure, completes three-dimensional modeling data conversion.
In the embodiment of the present invention, the end the C/S three-dimensional modeling data conversion equipment internal processor can be by integrated electricity
Road composition, such as can be made of the integrated circuit of single package, it is also possible to be sealed by multiple identical functions or different function
The integrated circuit of dress is formed, including one or more central processing unit (Central Processing unit, CPU), micro-
Processor, digital processing chip, graphics processor and combination of various control chips etc..Processor utilizes various interfaces and route
Connection takes all parts, by running or execute the program being stored in memory or unit, and calls and is stored in storage
Data in device, to execute the various functions and processing data of the conversion of the end C/S three-dimensional modeling data;
Memory is used to store program code and various data, is mounted in the three-dimensional modeling data conversion equipment of the end C/S, and
The access realized high speed in the process of running, be automatically completed program or data.The memory includes read-only memory
(Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read only memory
(Programmable Read-Only Memory, PROM), Erasable Programmable Read Only Memory EPROM (Erasable
Programmable Read-Only Memory, EPROM), disposable programmable read-only memory (One-time
Programmable Read-Only Memory, OTPROM), electronics erasing type can make carbon copies read-only memory
(Electrically-Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact
Disc Read-Only Memory, CD-ROM) or other disc memories, magnetic disk storage, magnetic tape storage or can
For carrying or any other computer-readable medium of storing data.
The present invention also proposes a kind of computer-readable storage medium, as shown in figure 4, the computer-readable storage is situated between
Matter is stored with the application program of the end C/S three-dimensional modeling data conversion method, and the application program realizes the end the C/S three-dimensional mould
The step of type data transfer device;Such as:
S10, product model the file information and database information are extracted, constructs the set of model object;
The data of the set of S20, extraction model object are mapped, and passing through different speciality marks indicates different data
Type generates xml element;
S30, parsing generate xml document structure;
S40, xml document is obtained according to xml element and xml document structure, completes three-dimensional modeling data conversion.
In the description of embodiments of the present invention, it should be noted that in flow chart or described otherwise above herein
Any process or method description be construed as, indicate to include one or more for realizing specific logical function or mistake
Module, segment or the part of the code of the executable instruction of the step of journey, and the range packet of the preferred embodiment of the present invention
Include other realization, wherein sequence shown or discussed can not be pressed, including according to related function by it is basic simultaneously
Mode or in the opposite order, to execute function, this should be managed by the embodiment of the present invention person of ordinary skill in the field
Solution.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processing module or other can be from instruction
Execute system, device or equipment instruction fetch and the system that executes instruction) use, or combine these instruction execution systems, device or
Equipment and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, store, communicating, propagating
Or transfer program uses for instruction execution system, device or equipment or in conjunction with these instruction execution systems, device or equipment
Device.The more specific example (non-exhaustive list) of computer-readable medium include the following: there are one or more wirings
Electrical connection section (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium because can then be edited for example by carrying out optical scanner to paper or other media, interpret or when necessary with
Other suitable methods are handled electronically to obtain described program, are then stored in computer storage.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all at this
Under the inventive concept of invention, using equivalent structure transformation made by description of the invention and accompanying drawing content, or directly/use indirectly
It is included in other related technical areas in scope of patent protection of the invention.
Claims (9)
1. a kind of end C/S three-dimensional modeling data conversion method, which comprises the steps of:
Product model the file information is extracted, the set of model object is constructed;
The data for extracting the set of model object are mapped, and indicate different data types by different speciality marks, raw
At xml element;
Parsing generates xml document structure;
Xml document is obtained according to xml element and xml document structure, completes three-dimensional modeling data conversion.
2. the end C/S three-dimensional modeling data conversion method according to claim 1, which is characterized in that the extraction product
Model file data construct in the set step of model object, further include, and extract database information.
3. the end C/S three-dimensional modeling data conversion method according to claim 1, which is characterized in that the extraction model
The data of the set of object are mapped, and are indicated different data types by different speciality marks, are generated xml element, tool
Body are as follows:
By solid data Type mapping to Scala language, mapping ruler are as follows: go to indicate not using the speciality of different letter prefix
Same data type;Realize that Scala supports the mapping of xml document after solid data Type mapping to Scala language.
4. the end C/S three-dimensional modeling data conversion method according to claim 3, which is characterized in that the speciality, packet
Include: Scala interface speciality, Scala superposition speciality, Scala richness interface speciality and additional Scala embody speciality.
5. the end C/S three-dimensional modeling data conversion method according to claim 3, which is characterized in that described Scala pairs
The mapping of xml document, using the mapping mode of late binding.
6. the end C/S three-dimensional modeling data conversion method according to claim 5, which is characterized in that in late binding,
The label of xml is directly corresponding with the metadata object in Scala speciality tuple, and loads preservation.
7. the end C/S three-dimensional modeling data conversion method according to claim 1, which is characterized in that the product model
The file information, comprising: entity, data type, defines data type, geometric data type, constant and function at attribute.
8. a kind of end C/S three-dimensional modeling data conversion equipment characterized by comprising
Processor;
Memory is coupled to the processor and is stored with instruction, and the instruction is executing the power of realization by the processor
Benefit require any one of 1 to 7 described in the end C/S three-dimensional modeling data conversion method the step of.
9. a kind of computer-readable storage medium, which is characterized in that the computer-readable storage medium is stored with the end C/S
The application program of three-dimensional modeling data conversion method, the application program realize the C/ as described in any one of claims 1 to 7
The step of end S three-dimensional modeling data conversion method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810737902.1A CN109062875A (en) | 2018-07-06 | 2018-07-06 | A kind of end C/S three-dimensional modeling data conversion method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810737902.1A CN109062875A (en) | 2018-07-06 | 2018-07-06 | A kind of end C/S three-dimensional modeling data conversion method, device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109062875A true CN109062875A (en) | 2018-12-21 |
Family
ID=64819023
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810737902.1A Pending CN109062875A (en) | 2018-07-06 | 2018-07-06 | A kind of end C/S three-dimensional modeling data conversion method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109062875A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110007906A (en) * | 2018-12-27 | 2019-07-12 | 阿里巴巴集团控股有限公司 | Processing method, device and the server of script file |
CN112100125A (en) * | 2020-09-23 | 2020-12-18 | 深圳中广核工程设计有限公司 | Three-dimensional data model file filing method, device, equipment and storage medium |
CN112559612A (en) * | 2020-12-15 | 2021-03-26 | 北京动力机械研究所 | Dynamic data extraction and sharing method and device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107679141A (en) * | 2017-09-25 | 2018-02-09 | 上海壹账通金融科技有限公司 | Data storage method, device, equipment and computer-readable recording medium |
-
2018
- 2018-07-06 CN CN201810737902.1A patent/CN109062875A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107679141A (en) * | 2017-09-25 | 2018-02-09 | 上海壹账通金融科技有限公司 | Data storage method, device, equipment and computer-readable recording medium |
Non-Patent Citations (1)
Title |
---|
张运森 等: "STEP与XML转换系统设计与实现", 《机械设计与制造工程》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110007906A (en) * | 2018-12-27 | 2019-07-12 | 阿里巴巴集团控股有限公司 | Processing method, device and the server of script file |
CN112100125A (en) * | 2020-09-23 | 2020-12-18 | 深圳中广核工程设计有限公司 | Three-dimensional data model file filing method, device, equipment and storage medium |
CN112559612A (en) * | 2020-12-15 | 2021-03-26 | 北京动力机械研究所 | Dynamic data extraction and sharing method and device |
CN112559612B (en) * | 2020-12-15 | 2024-05-10 | 北京动力机械研究所 | Dynamic data extraction and sharing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101699397B (en) | Realize the method that Java and XML data are bound | |
CN101946248A (en) | Method and apparatus for providing API service and making API mash-up, and computer readable recording medium thereof | |
JP2004530225A (en) | System and method for mapping between software objects and document-based structured language elements | |
CN109062875A (en) | A kind of end C/S three-dimensional modeling data conversion method, device and storage medium | |
CN109194704A (en) | A kind of end B/S three-dimensional modeling data storage method, device and storage medium | |
CN104156313A (en) | Method for automatically generating Web service testing case | |
CN103955549A (en) | Web GIS system based on SVG and data input and search method thereof | |
CN102609255A (en) | Generation method for Spring IOC (Inversion of Control) configuration file | |
WO2009000141A1 (en) | Representation method, system and device of layout file logical structure information | |
JP2011501851A5 (en) | ||
CN103927385A (en) | Unifying method and device of data model | |
CN104090920A (en) | System for realizing digital content cross-terminal publishing | |
CN104750468B (en) | A kind of server-side topological data conversion method and conversion equipment | |
CN114139090A (en) | Method for configuring and dynamically generating form page | |
Nour | Performance of different (BIM/IFC) exchange formats within private collaborative workspace for collaborative work | |
CN116521181B (en) | Script data processing method, device, equipment and medium based on game system | |
JP2000259659A (en) | Geographic information system and recording medium | |
CN114969586A (en) | BIM (building information modeling) graphic engine loading method and device based on WEB side | |
CN104462157A (en) | Method and device for secondary structuralizing of text data | |
EP2333665A2 (en) | Computer method and system providing access to data of a target system | |
CN106293862A (en) | A kind of analysis method and device of expandable mark language XML data | |
Amann et al. | BIM programming | |
Li et al. | Automated creation of navigable REST services based on REST chart | |
Murer et al. | Improving component interoperability information | |
CN105739997A (en) | Website construction assistance design system |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181221 |