Compositive technology program researchs AutoCAD and PDM information and come true

  • Time:
  • Click:122
At present a lot of enterprises use all sorts of software systems, make in order to realize plan of design of products plan, technology, production, treatment, the advanced management of the chain of computer network news that supplies the link such as management, sale management and quality management. But if where these products plan (CAD) , craft is designed (CAPP) and product data management (natural resources of PDM) , company plans (information comes true between the software platform such as ERP) compositive, it is the core problem that enterprise compose builds comprehensive informatization to manage systematic place to care all the time. A lot of production enterprises used base of technology of 1 AutoCAD development the dominant software that AutoCAD regards subdesign as, how to develop the function of AutoCAD further, build deliver a relation with the data between the database, the made data information that concerns with products plan can be PDM system to be obtained well and truly, it is AutoCAD system the main task of advanced development. 1. AutoCAD of   of interface of 1 AutoCAD process designing offerred port of applied process process designing (API) , development staff can control graph and database with this interface. Uses interface type needs a decision by what use a program. 1)ActiveX Automation: It is Microsoft is based on component object model (a technology that COM) architecture develops. Can use come from definition AutoCAD, with other application the program shares graphical data and finish the job automatically. 2)AutoCAD VBA: It is a process designing environment that is based on an object, can provide rich development function. The main distinction of VBA and VB(Visual Basic 6) depends on: VBA and AutoCAD move in same process space, carry sacrificial vessel to have AutoCAD intelligence, fast process designing environment. 3)Auto LISP and Visual LISP: It is the programming language that is based on the LISP with powerful function. As a result of the buy inside AutoCAD LISP interpreter, auto LISP code can be inputted in command travel, or from code of Auto LISP of the to load in exterior file. VISual LISP(VLISP) is the software tool that be developed to accelerate Auto LISP program and designs. In AutoCAD use ActiveX interface has following two advantages: (1) can visit AutoCAD figure in the process designing in a variety of process designing environments. Before ActiveX Automation appears, developer can use Auto LISP only or C++ interface visits AutoCAD figure. (2) more use a program with other Windows easily (for example Microsoft Excel and Microsoft Word) share data. 1. 2 with AutoCAD VBA VBA of development program   passes interface of AutoCAD, ActiveX Automation to send message to AutoCAD. AutoCAD VBA allows Visual Bas. Ic environment and AutoCAD move at the same time, pass ActiveX Auto, the process designing control that Mation interface offers pair of AutoCAD. Connect AutoCAD, ActiveX Automation and VBA together cheek by jowl so, offer a very powerful port. It can control AutoCAD target not only, also can transmit data to other application process or collect data from which. VBA compositive to AutoCAD, provide to defined AutoCAD to offer a kind of visible T that uses easily oneself. For example, the user can establish an application program, use at collecting property information automatically, thrust the result directly in Excel spreadsheet or other database, the aleatoric data that executable place requires is changed. In fact AutoCAD has very perfect 2 development function, it offerred port of applied process process designing (API) , a variety of application processes can control graph and database through this interface, and but from use as Auto. Any application of Mation control program are founded in the program and operate AutoCAD object. Automation makes the work out crosses applied process to carry out grand become reality. 1. 3 products 0 / the design implementation that the component codes is reached to the product 0 / the encode that accurate, convenient identifying handles component information, it is the foundation with implementation CAD and PDM compositive information. Product part codes design principle should make encode is helpful for PDM generating all sorts of BOM of the product, the system such as facilitating CAPP accedes design data, guide manufacturing plan and production to make. Accordingly, 0 / component encode should consider facilitating project to personnel understands and be used already, up to specification, want to describe the information that PDM place asks well and truly again. Of logistic to asking to reflect product structure relation, should use the structure that establish formula, it reflects the logistic subordinating relation of the product, of OK and automatic compositive CAD and PDM product information 0 / component encode. And to making all sorts of stock detailed list (the image part encode of BOM) , should combine set technology, use classified code means. The structure of code uses the mixture structure of chain and tree type commonly. In the system with CAD and PDM compositive information, encode of part of requirement product image should have the news that reflects product logic structure already, want to have the news that reflects component feature again. Such product code digit is more, and the partial digit information that different utility needs to code only. Use to go to the lavatory, can will 0 / component encode fractionation codes into two, one is 0 / encode of component logic relation, namely code name encode, another is 0 / character of component geometry physics codes, namely diagnostic encode. Code name encode uses the structure that establish formula (classification structural) , and the mixture structure that diagnostic encode uses chain and tree formula. No matter be code name encode or diagnostic encode, should use the means that section codes. Same 0 / the component codes two kinds is man-to-man correlation. Different company should draft product code regulation according to the real need of oneself, also can draw lessons from domestic and international current encode standard data, combine set technology (GT) will finish products plan to code. 1. Data switch is the premise with implementation AutoCAD and PDM system compositive information between 4 graphs and graph of AutoCAD of   of database information exchange and database. The data switch between AutoCAD graph and database can have two kinds of forms: One kind is attribute link means; One kind is means of new data link, build link model namely. To the compositive requirement of AutoCAD and PDM system, the concerned data such as column of caption of the such as in achieving blueprint kind, detail column is delivered automatically to the database system besides AutoCAD system in, need to build database and data-in 2 times artificially no longer as far as possible. In view of afore-mentioned reasons, use attribute to link means more agile advantage, accord with a project to design the requirement of personnel. 1)AutoCAD and database link: VBA is embedded to develop an environment inside AutoCAD, operate Automation object through process designing, realize the operation to AutoCAD, in VBA project grand (the operation that other operation of Macro) and AutoCAD completes pair of figures in same process. Meanwhile VBA can cross applied process to operate database system like VB, through configuring engine of DB Engine database (Jet) , implementation database links an operation. 2) attribute definition and extraction: Found graph of caption column, detail column piece (BLOCK) , will 0 / the information set such as component code name, encode, name and material is corresponding figure piece property value. Attribute is defined and attribute extraction all is founded by VBA program, the process is as follows: (1) attribute defines: Form piece founds the attribute chart that finish, include caption column, detail column the attribute set of all information. (Information of 2) caption column, detail column adds: Implementation attribute chart piece call, property value is added, graph piece is inserted wait for an operation. (3) database operates: Found database file automatically, build field of data table, data, add the logarithm in the process to undertake differentiate and feedback according to library, watch and corresponding record in new record, prevent to the record repeats and be omited. (4) attribute extracts: Take out the each property cost that names graph piece, add to the database, become data to express medium corresponding record. In graph of 2 products plan design information database basically found through be opposite the product reachs his the image part processing that designs information basically, can reflect M to comprise each fundamental condition of the product. 1) reflects product logic structure -- product structure tree. A product reachs his 0 / the logistic composition of the structure establishing record that the code name encode of the component can build product structure. It is the serious content of PDM. 2) reflects whole product the composition of all material, 0 / component sort and amount, namely material detailed list (BOM) . 3) reflects design autograph, design to examine and approve the management that waits for material information, provide information of design technological process for products plan management. 4) reflects craft to design information. As compositive as CAPP information, for the computer auxiliary technology design offerred the base that can use directly to design information. Anyhow, what the product designs information database basically is automatic build, offerred the fundamental database with compositive information for PDM and CAPP, it is the important segment with CAD/CAPP/PDM compositive information. 2. Of Sui Tu piece of Zhan of 1 caption column, detail column build   1) to found graph piece: Column of the caption that make, detail column pursues a means that can use seesaw pattern plot, the means that also can use process designing comes true. 2) attribute defines: Caption column pursues the property value of a definition has scale of encode of name of spare parts code name, spare parts, spare parts, material, gross, plot and plan information, useful still standardization and craft examine and verify and auditor and the design member that approves an autograph at the design and date, date, date, date and approval and date. The property value that detail column defines has code name, name, material, amount and property. 3) outputs a graphical file: The attribute chart that has defined piece should serve as global piece to output graphical file, save its at specific ways and means and folder. 2. The editor in graph of 2 products plan wants to compile information of column of caption column, detail in process of caption column and sketch design of detail column product, this one process adds a process with respect to the attribute that is graphical file. The method that adds attribute has varied, if why have the editor, operation that accords with a project to design staff with the rightest kind,the requirement such as the habit is the fierce element that makes sure data validity must consider. AutoCAD VBA is object-oriented programming technology, can adopt program of module of body of moving VBA window, the property that completes pair of caption column and detail column adds the job. 2. The extraction of attribute of extraction of data of information of 3 caption column, detail column and column of the caption in building library graph archives, detail column has two kinds of kind, one kind is to editing caption column, detail column while, its property value is added in the record that data expresses, if revise caption column or list, so the program revises data souvenir to record at the same time; Another kind is caption column, list after the editor is finished, the has specific name plan that in carrying out convenience graph archives, inserts piece, take out property one by one, increase to the database in. 3 through VBA application program implementation data is exchanged and information is compositive project of   AutoCAD VBA is in VBA compositive development environment (found below VBA IDE) editorial. VBA project can be inside set VBA project, also can be independent global VBA project. Global VBA project has more function, can move in AutoCAD graph, also can be opened in the project and shut AutoCAD graph. Global project is shared more easily with other user, and can make the grand resource warehouse that share, when use VBA develops general application program, should save its for global project. Global project won't be automatic to load, must separate to load this Ding Cheng, ability is carried out among them grand. AutoCAD VBA project can introduce AutoCAD interface bill of fare or command (VBALOAD) means to load, also can use control means to load through process designing. More general pattern is to make file of the menu that start, use menu to control to load all sorts of VBA application processes, in implementing VBA project grand. Found and menu is pulled below the editor group group, can use Auto LISP language to compile former AutoCAD document normally, also can use VBA to develop new bill of fare group group file, and VBA project medium grand move automatically when AutoCAD is started can. AutoCAD VBA of 4 epilogue   regards 2 development of AutoCAD as the tool, can move with the process with AutoCAD graph operation, can operate through ActiveXAutomation object of almost all AutoCAD. At the same time it has most VB language function, can operate all sorts of database software, undertake database process designing is operated, can cross applied process to operate a database in AutoCAD system thereby, undertake with the database data is exchanged. At the same time language union uses VBA and Auto LISP programming make development AutoCAD and PDM compositive interface becomes more convenient. The development means of this kind of compositive AutoCAD and PDM is the effective mode with compositive technology of system of implementation enterprise informatization, special apply to medium or small the development of system of informatization of rigid production business comes true. CNC Milling