CN113420408A - CAD networked import system and import method - Google Patents

CAD networked import system and import method Download PDF

Info

Publication number
CN113420408A
CN113420408A CN202110527265.7A CN202110527265A CN113420408A CN 113420408 A CN113420408 A CN 113420408A CN 202110527265 A CN202110527265 A CN 202110527265A CN 113420408 A CN113420408 A CN 113420408A
Authority
CN
China
Prior art keywords
cad
import
objectarx
networked
importing
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
CN202110527265.7A
Other languages
Chinese (zh)
Other versions
CN113420408B (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 Hyp Arch Architectural Design Consultant Co ltd
Original Assignee
Shanghai Hyp Arch Architectural Design Consultant 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 Hyp Arch Architectural Design Consultant Co ltd filed Critical Shanghai Hyp Arch Architectural Design Consultant Co ltd
Priority to CN202110527265.7A priority Critical patent/CN113420408B/en
Publication of CN113420408A publication Critical patent/CN113420408A/en
Application granted granted Critical
Publication of CN113420408B publication Critical patent/CN113420408B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a CAD networked import system import method developed based on ObjectARX, and the CAD networked import system comprises the following steps: the method comprises the steps that a CAD drawing is imported into a client side, the CAD drawing is built based on a preset browser, a drawing library is published based on the browser, the CAD drawing import client side and the drawing library carry out data transmission based on a web socket communication protocol, and the communication protocol comprises a callback method appointed by the CAD drawing import client side and the drawing library. The invention can directly import the editable CAD file content into the currently opened CAD file from the webpage end by one key. Complicated operation steps of downloading, waiting for software starting, selecting copying and pasting and the like are omitted, and production efficiency is improved.

Description

CAD networked import system and import method
Technical Field
The invention relates to a CAD (computer-aided design) networked importing system and method, belonging to the field of software.
Background
At present, designers obtain CAD materials of a webpage end, need to download and then open specific files for content transfer, unnecessary working time is consumed in the process, and the operation burden of a computer is increased and the speed is reduced due to software starting, so that the production efficiency is reduced.
Disclosure of Invention
The invention aims to reduce the steps of acquiring materials by designers and the operation burden of a computer, save the working time and improve the production efficiency.
The invention adopts the following technical scheme:
a CAD networked import system developed based on ObjectARX, comprising: the method comprises the steps that a CAD drawing is imported into a client side, the CAD drawing is built based on a preset browser, a drawing library is published based on the browser, the CAD drawing import client side and the drawing library carry out data transmission based on a web socket communication protocol, and the communication protocol comprises a callback method appointed by the CAD drawing import client side and the drawing library.
Further, the CAD networked import system developed based on ObjectARX of the present invention is characterized in that: the method and parameters of the drawing import command interface based on the ObjectARX are preset between the CAD drawing import client and the drawing library.
Further, the CAD networked import system developed based on ObjectARX of the present invention is characterized in that: and the CAD drawing importing client receives the metadata information of the model storage address and the type transmitted by the parameters from the browser.
Further, the CAD networked import system developed based on ObjectARX of the present invention is characterized in that: and according to the appointed callback method between the CAD drawing import client and the drawing library, the browser informs the CAD drawing import client to finish automatic downloading and automatic import to the current manufacturing interface.
The invention also provides a CAD networked importing method developed based on ObjectARX, which is characterized by comprising the following steps:
1) web page request
A user directly accesses the model library system through a browser, submits a downloading and importing operation request through an Html webpage, and request data are transmitted to a server through parameters;
2) event determination and message delivery
The server judges whether the request data is the operation of downloading and importing the CAD drawing, automatically verifies the request data, submits the request data to a predetermined callback method, and transmits metadata information such as the storage address and the type of the drawing to the CAD drawing importing client;
3) drawing import
And after receiving the message, the CAD drawing importing client finishes the downloading and importing operation from the browser to the CAD design tool.
Further, the CAD networked importing method developed based on ObjectARX of the present invention has the following features: in step 3), the downloading and importing operation of the CAD drawing from the browser to the CAD design tool comprises the following steps: step 3-1, newly defining a database object to represent a file containing blocks, wherein the database object can be loaded into a memory but cannot be displayed in a CAD window, step 3-2, reading an external DWG file into the newly defined database object, and step 3-3, copying the block object in the external DWG file into the database of the current CAD to finish the downloading and importing operations from a browser to a CAD design tool.
Further, the CAD networked import system developed based on ObjectARX of the present invention is characterized in that: in step 3-2, the external DWG file is read into the newly defined Database object by calling the ReadDwgFile function of the Database class.
Further, the CAD networked import system developed based on ObjectARX of the present invention is characterized in that: in step 3-3, the block objects in the external DWG file are copied to the Database of the current CAD by calling the WblockCloneObjects function of the Database class.
Further, the CAD networked import system developed based on ObjectARX of the present invention is characterized in that: the ObjectARX application is a dynamically linked library that shares the address space of AutoCAD and directly calls the AutoCAD's functions.
The CAD networked importing system and the importing method can directly import the editable CAD file contents into the currently opened CAD file from a webpage end by one key. Complicated operation steps of downloading, waiting for software starting, selecting copying and pasting and the like are omitted, a large number of material acquisition steps and time are reduced, and the computer can operate at a higher speed to improve the production efficiency.
Drawings
FIG. 1 is a schematic diagram of the technical architecture of the present invention.
Detailed Description
The technical means of the present invention will be specifically described below by way of specific embodiments.
The system comprises: and importing the CAD drawing into a client and a drawing library issued by a browser, wherein the communication protocol of the client and the drawing library adopts a data transmission format based on WebSocket. As shown in fig. 1, the technical process includes:
1) event callback commitment
The CAD drawing import client and the drawing library reserve the method and the parameters of the interface based on the Objectarx drawing import command, and the following are core code examples:
voidCTrimeDraw::MyReadDwgFile(CStringstr)
AcDbDatabasepExternalDb(Adesk::kFalse);
CString is a parameter appointed between a CAD drawing import client and a drawing library, a browser transmits metadata information such as model storage addresses, types and the like to the CAD drawing import client through the parameter, ReadwgFile is a callback method appointed by both parties, and the browser informs the CAD drawing import client of completing automatic downloading and automatic import to a current manufacturing interface.
2) Web page request
A user directly accesses the model library system through a browser, submits a downloading and importing operation request through an Html webpage, and request data are transmitted to a server through parameters.
3) Event determination and message delivery
The server judges whether the request data is the operation of downloading and importing the CAD drawing, if the judgment result is the operation of downloading and importing the CAD drawing, the request data is submitted to a predetermined callback method, and metadata information such as a drawing storage address, a drawing type and the like is transmitted to the CAD drawing importing client.
4) Drawing import
After receiving the message, the CAD drawing importing client defines a database object to represent the file containing the DWG file block, and the database object is loaded into the memory but not displayed in the CAD window. And calling a ReadDwgFile function of the Database class to read the external DWG file into the newly created Database object. And finally, calling a WblockCloneObjects function of the Database class to copy the block objects in the external DWG file into a current Database, and finally realizing the downloading and importing operations from the browser to the CAD design tool.
The invention is based on the application message transmission technology of the standard ObjectARX, and can rapidly access the AutoCAD graphic database. Different from the conventional AutoLISP and ADS, the ObjectARX application program is a dynamic link library DLL, shares the address space of the AutoCAD and carries out direct function call on the AutoCAD. Therefore, the execution speed of the function programmed using the ARX is greatly improved. The ARX class library adopts a standard encapsulation form of a C + + class library, so that the reliability and the efficiency of programmer programming are greatly improved.
The database structure, graphics system, and AutoCAD geometry construction core of AutoCAD are accessed directly with ObjectARX, and new classes are added to the ObjectARX programming environment and output for other programs to call. The created custom entity has no difference from the AutoCAD internal entity. The ObjectARX protocol may also be augmented at runtime by adding functions to existing AutoCAD classes. The external commands defined by ObjectARX are the same as the execution mechanism of AutoCAD internal commands.
The ObjectARX application program is a DLL program of Windows, AutoCAD itself is a typical Windows program, and Windows message passing mechanisms are adopted for direct communication between the ObjectARX application program and AutoCAD and Windows.
The ObjectARX application runs in the same address space as AutoCAD and can directly utilize the AutoCAD core database structure and code. The external command defined by the ObjectARX application is registered by the accedregcmds () macro. These external commands are executed by the AutoCAD itself as well as the commands inherent to the AutoCAD itself.
The ObjectARX application program is developed on the basis of a VisualC + + language and has the characteristics of data encapsulation, inheritability, polymorphism and the like in an object-oriented programming mode. The engineering CAD software developed by the method has the advantages of good modularity, strong independence, simple connection, convenient use, high-efficiency and practical internal functions, strong code reusability and the like, supports MFC libraries of Microsoft and can realize a plurality of complex functions simply and efficiently.
In the technology, the following four types of messages are used by AutoCAD for passing to the ObjectARX application:
■ message for transmitting to CAD drawing importing client program
■ messages transmitted only when a CAD drawing imports a client program to register an AutoLISP function using acededfun ()
■ to application messages that have registered for service with ObjectARX
■ messages that need to respond only to applications that use ActiveX controls
Table 1: AutoCAD messages to ObjectARX applications
Figure BDA0003066253350000061
Because the drawing has larger capacity and more data are carried by the drawing, the invention adopts a light-weight data transmission technology. The AJAX technology is called Asynchronus JavaScript And XML-asynchronous JavaScript And XML technology, And the application of the AJAX technology can enable an operation interface of Web application to generate the effect of an application program client window interface. In addition, the submission can be realized without refreshing the whole Web page, because the AJAX technology can provide the capability of asynchronous communication between the client browser program and the Web server program, so that a Web user is released from the request/response and the response efficiency of a Web application system is improved.
Because the same HTML tag content exists in all pages of the Web application system, such as page structure, format, Logo image at the top of the page, copyright and contact information at the bottom of the page, and the like, the difference is only a small portion of changed data content in the page that needs to be updated for display. In the application of a traditional Web application system requesting a response, each time the Web server generates an independent and complete Web page file content, the content is returned to the Web browser program of the client. The invention only transmits the required data, namely a small part of changed data content required to be updated and displayed in the Web page, thereby reducing the data volume output by the request response to the maximum extent and reducing the performance consumption caused to the Web server.
The importing system can be widely applied to the existing CAD software on the market, the test time for automatically downloading and importing 1 drawing with the size of 10M is shorter than 10 seconds after actual measurement, the efficiency is improved by more than 50% compared with the traditional method that the drawing is downloaded first and then imported through the CAD software, and the manufacturing efficiency and the collaborative design time of a drafter are greatly improved.

Claims (9)

1. A CAD networked import system developed based on ObjectARX, comprising:
importing the CAD drawing into a client, establishing the CAD drawing based on a preset browser,
the graph paper library, based on browser publishing,
the CAD drawing import client and the drawing library carry out data transmission based on a web socket communication protocol, and the communication protocol comprises a callback method appointed by the CAD drawing import client and the drawing library.
2. The CAD networked import system developed based on ObjectARX of claim 1, wherein:
the method and parameters of the drawing import command interface based on the ObjectARX are preset between the CAD drawing import client and the drawing library.
3. The CAD networked import system developed based on ObjectARX of claim 2, wherein:
and the CAD drawing importing client receives the metadata information of the model storage address and the type transmitted by the parameters from the browser.
4. The CAD networked import system developed based on ObjectARX of claim 1, wherein:
and according to the appointed callback method between the CAD drawing import client and the drawing library, the browser informs the CAD drawing import client to finish automatic downloading and automatic import to the current manufacturing interface.
5. A CAD networking importing method developed based on ObjectARX is characterized by comprising the following steps:
1) web page request
A user directly accesses the model library system through a browser, submits a downloading and importing operation request through an Html webpage, and request data are transmitted to a server through parameters;
2) event determination and message delivery
The server judges whether the request data is the operation of downloading and importing the CAD drawing, automatically verifies the request data, submits the request data to a predetermined callback method, and transmits metadata information such as the storage address and the type of the drawing to the CAD drawing importing client;
3) drawing import
And after receiving the message, the CAD drawing importing client finishes the downloading and importing operation from the browser to the CAD design tool.
6. The CAD networked import method developed based on ObjectARX of claim 5, wherein:
in step 3), the downloading and importing operation of the CAD drawing from the browser to the CAD design tool comprises the following steps: step 3-1, newly defining a database object to represent a file containing blocks, wherein the database object can be loaded into a memory but cannot be displayed in a CAD window, step 3-2, reading an external DWG file into the newly defined database object, and step 3-3, copying the block object in the external DWG file into the database of the current CAD to finish the downloading and importing operations from a browser to a CAD design tool.
7. The CAD networked import method developed based on ObjectARX of claim 5, wherein:
in step 3-2, the external DWG file is read into the newly defined Database object by calling the ReadDwgFile function of the Database class.
8. The CAD networked import method developed based on ObjectARX of claim 5, wherein:
in step 3-3, the block objects in the external DWG file are copied to the Database of the current CAD by calling the WblockCloneObjects function of the Database class.
9. The CAD networked import method developed based on ObjectARX of claim 6, wherein:
the ObjectARX application is a dynamically linked library that shares the address space of AutoCAD and directly calls the AutoCAD's functions.
CN202110527265.7A 2021-05-14 2021-05-14 CAD (computer aided design) networked importing system and importing method Active CN113420408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110527265.7A CN113420408B (en) 2021-05-14 2021-05-14 CAD (computer aided design) networked importing system and importing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110527265.7A CN113420408B (en) 2021-05-14 2021-05-14 CAD (computer aided design) networked importing system and importing method

Publications (2)

Publication Number Publication Date
CN113420408A true CN113420408A (en) 2021-09-21
CN113420408B CN113420408B (en) 2024-03-19

Family

ID=77712321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110527265.7A Active CN113420408B (en) 2021-05-14 2021-05-14 CAD (computer aided design) networked importing system and importing method

Country Status (1)

Country Link
CN (1) CN113420408B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001022841A (en) * 1999-07-06 2001-01-26 Fuji Fp:Kk Internet edi system and edi method
JP2002108684A (en) * 2000-09-15 2002-04-12 Geo Interactive Kk Video sticker service system and method through internet
DE102004019452A1 (en) * 2004-04-19 2005-11-10 Detlef Poulet Product data importing method, involves importing individual or several product data, combining text data and diagram together in importing data file, and importing text and diagram in one production step in application software
CN102955694A (en) * 2011-08-31 2013-03-06 中国电信股份有限公司 Client implementation method based on WebKit browser and client
WO2013102335A1 (en) * 2012-01-06 2013-07-11 华为技术有限公司 Gateway handshake and communication method, gateway and web communication system
CN105574303A (en) * 2016-03-04 2016-05-11 昆山远飞软件信息科技有限公司 Enterprise informatization operation system
CN107368622A (en) * 2017-06-07 2017-11-21 浙江建设职业技术学院 The method for realizing CAD diagram paper online browse
WO2018098880A1 (en) * 2016-11-30 2018-06-07 深圳Tcl数字技术有限公司 Method and device for downloading website information
CN109740372A (en) * 2018-12-17 2019-05-10 广州天越电子科技有限公司 Based on the system and method for realizing that conceptual schematic drawing paper is divided in automatic audit room on WEB
CN110399631A (en) * 2019-05-31 2019-11-01 天津大学 The design method and system of ground leaching mine well site drawing platform
CN111524212A (en) * 2020-04-23 2020-08-11 浙江精工钢结构集团有限公司 WebGL technology-based webpage-side CAD drawing viewing system and method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001022841A (en) * 1999-07-06 2001-01-26 Fuji Fp:Kk Internet edi system and edi method
JP2002108684A (en) * 2000-09-15 2002-04-12 Geo Interactive Kk Video sticker service system and method through internet
DE102004019452A1 (en) * 2004-04-19 2005-11-10 Detlef Poulet Product data importing method, involves importing individual or several product data, combining text data and diagram together in importing data file, and importing text and diagram in one production step in application software
CN102955694A (en) * 2011-08-31 2013-03-06 中国电信股份有限公司 Client implementation method based on WebKit browser and client
WO2013102335A1 (en) * 2012-01-06 2013-07-11 华为技术有限公司 Gateway handshake and communication method, gateway and web communication system
CN105574303A (en) * 2016-03-04 2016-05-11 昆山远飞软件信息科技有限公司 Enterprise informatization operation system
WO2018098880A1 (en) * 2016-11-30 2018-06-07 深圳Tcl数字技术有限公司 Method and device for downloading website information
CN107368622A (en) * 2017-06-07 2017-11-21 浙江建设职业技术学院 The method for realizing CAD diagram paper online browse
CN109740372A (en) * 2018-12-17 2019-05-10 广州天越电子科技有限公司 Based on the system and method for realizing that conceptual schematic drawing paper is divided in automatic audit room on WEB
CN110399631A (en) * 2019-05-31 2019-11-01 天津大学 The design method and system of ground leaching mine well site drawing platform
CN111524212A (en) * 2020-04-23 2020-08-11 浙江精工钢结构集团有限公司 WebGL technology-based webpage-side CAD drawing viewing system and method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
唐永勇等: "机械制图中CAD教学的软件选择与教学设计", 图学学报, vol. 35, no. 5, pages 798 - 803 *
宋国辉 , 张耀宗: "Auto CAD中图纸信息的自动提取", 模具工业, no. 11, pages 8 - 11 *
王晓彬: "基于Web浏览器的CAD快速协同设计解决方案研究", 舰船工程研究, no. 2, pages 41 - 45 *

Also Published As

Publication number Publication date
CN113420408B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
US7546576B2 (en) Software framework for web-based applications
US7426734B2 (en) Facilitating presentation functionality through a programming interface media namespace
CN104102545B (en) Mobile augmented reality browser three dimensional resource configures the optimization method with loading
US7162687B2 (en) JSP tag libraries and web services
US8181156B1 (en) System and method for managing web-based forms and dynamic content of website
US8176081B2 (en) Forms integration of an external data model not implemented through a document object model (DOM) accessible application programming interface (API)
CN102915375B (en) A kind of webpage loading method based on layout subregion
CN104866383B (en) Interface calling method and device and terminal
CZ20033330A3 (en) System and method of mapping between software objects and structured language element-based documents
CN110908712A (en) Data processing method and equipment for cross-platform mobile terminal
KR20150043475A (en) Predicting the usage of document resources
JP2005004772A (en) Web page rendering mechanism using theme based on external program
CN101826085A (en) AJAX-based method for importing/exporting large file into/from web page on line
US20140344836A1 (en) Controller and method to build a combined web page using data retrieved from multiple apis
US8230357B2 (en) Visually processing instance data
JP2001506039A (en) Data management in virtual environment browser
CN113326043A (en) Webpage rendering method, webpage manufacturing method and webpage rendering system
CN113420408A (en) CAD networked import system and import method
CN110221819B (en) Modularized extension method of process engine, electronic equipment and storage medium
CN109918598B (en) Web page rendering method based on Android television browser
CN116466915A (en) MVP architecture-based iOS development framework construction method and device
CN115840590A (en) Method, system, equipment and storage medium based on cross-end mixing of android and IOS
WO2023044876A1 (en) Multi-thread rendering method and apparatus, electronic device and storage medium
US11526578B2 (en) System and method for producing transferable, modular web pages
Preston et al. Dynamic run-time application development using CORBA objects and XML in the field of distributed GIS

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