Answer control technology to examine and approve the application that sheds management to go up in PDM design

  • Time:
  • Click:66
  • source:DALLMAN CNC Machining
What the article discusses is NM-PDM(south the Powerbuilder that sheds administrative institute to must be solved and ACAD data switch are examined and approve in PDM) of motor joint-stock company technology and examine and approve what in flowing, must introduce to answer control technology. Data is used correctly of commutative technology mix for PDM ACAD is effective and compositive provide a basis; Answer the adoption of control technology, put an end to the handlers modification to blame accredit data from order system, what assured data of project attempt foundation thereby is effective and complete. 1, when responsor technology overview should produce an event inside AutoCAD system, specific target can call announcement program to deliver incident automatically to arrive other object. Duplicate when the user for example, delete or revise a target or when the user gives out RODO or UNDO commands, can spark automatically to every incident corresponding announcement. The object receives incident to say in answer to. One is answered before incident can be being received from announcement program in it, must make clear first in increasing to inform the program answers list. When incident happening, announcement process transfers corresponding announcement function automatically to answering list medium every. All responsor function is empty function, so its cannot be called directly, must from corresponding responsor kind in the ability after derive is called. Can add code in corresponding function right now, need a function in order to realize user place. Main component is responsor temporarily responsor and permanent responsor. Temporarily responsor basically is used at receiving incident announcement, use temporarily responsor is OK the incident of monitoring database object, also can applying incident of database of the monitoring when the program moves, user to reach other system incident interactively at the same time. If add responsor to eye plotting layer,should pursue in order to monitor the modification state of the layer, if look plotting layer is solved illegally to lock up, will spark the new method locking up a layer in the ObjectClosed() incident in this responsor. Temporarily the tectonic method of responsor basically is to applying a program to be searched when to load or establish catalog target, go to to load of catalog object finger next the response of responsor in list, once content of catalog object finger produces a change, can spark the relevant incident of responsor, call the method that user place defines in responsor incident next. Temporarily responsor can use AddReactor() function to add. Permanent responsor basically is used at receive and sending an announcement, once permanent responsor is added, regard a database as the one part of the object, in keeping existence DWG and DXF file, the meeting when be being laded when graphical file is built to stand again. The tectonic method of permanent responsor basically is the object increases to answer in the database, the ID name that uses target target gets its finger to be restrained with be being built with its. Target object always dogs in the responsor list that permanent responsor is added to announcement object, once target object is changed, will answer the event that user place sets. Permanent responsor can use AddPersistentReactor() function to add. Permanent responsor is the one part of the database, accordingly, when duplicate object, add the permanent responsor on its also can be duplicated, and temporarily responsor won't be duplicated. 2, project attempt is examined and approve shed use circumstance to introduce 2.

South environment of operation of 1 project attempt and description of its lifecycle condition rub the government that ministry of research and development involves blueprint paper, the operation that this system asks to pursue to the project has on the foundation in NM-PDM, the relevant operation that this system asks the ability after passing PDM accredit only enters a project to pursue. Product data management is a kind of object-oriented information system, it defines all information related to the product and course for the object, wait like attempt of documentation, project, relation and process. The object should produce a lot of change in its lifecycle, if version, droit, visit counterpoises,wait. In the different level of lifecycle, have diverse control demand to these change. The lifecycle condition of project attempt target is shown 1 times like the graph. 2.

1NM-PDM is examined and approve in shedding a system to realize model attempt to manage working flow in traditional handiwork, pursue to the project lifecycle each condition is corresponding functional execution is those who pass blueprint deliver will undertake. And examine and approve in NM-PDM in shedding administrative system, to project attempt the establish of lifecycle condition is the processing that basis identifying offers code of handlers attributive state to come true to pursue to the project. Whole process controls next undertaking in PDM. If the graph is shown 2 times,NM-PDM examines and approve the administrative model that sheds a system. 2.

3NM-PDM is examined and approve shed administrative model function to analyse from examine and approve shed administrative model attempt to be able to see, systematic cent is 3 parts: Attributive attestation, communication and monitoring are answered. (1) the course that process of attestation of attributive of attributive attestation process gives handlers authorization namely, log onto identity attestation data through building employee to express memory user, build a working group to express memory the data of attestation of different limits of authority of different user and build project group to express memory user to be in different project the data of different role attestation that holds the position of will undertake. These information are taken to restrain user operation dynamicly through reading when the user is operated. The works to look in this another part of this part -- attributive attestation will study alone. (2) the meeting after communication user selects project member has further operation action, if add project member newly, revise wait for an operation. If want to start AutoCAD to have corresponding operation, want to have news report with AutoCAD necessarily. The AutoCAD that start, build AutoCAD file, deferent data arrives AutoCAD file, if the graph adds parameter of lock parameter, spare parts attribute,wait. After entering AutoCAD, to the modification of parameter of spare parts attribute, the applied program that must use us to be developed in AutoCAD just can be revised, the parameter of spare parts attribute that can assure to revise so conveys through legal approach return a database. After passing attributive attestation, want the document that opens through AutoCAD, have 7 kinds of likely state only: Design, proofread, the check of examine and verify, mark, approval, hair that print cloth, browse. Systematic communication wants to convey these 7 kinds of possible information respectively namely AutoCAD, in order to realize its function. This system passes these information is the server of AutoCAD of OLE technology open that uses PowerBuilder, use AutoCAD embedded development tool VBA will finish. (3) monitoring monitoring mechanism is to assure project attempt file to leave great job in different position. Because the system is whole of working flow finish must undertake in AutoCAD, accordingly, monitoring process is with respect to to load in AutoCAD. Status of project attempt job reachs process monitoring, main research undertakes examination the safeguard problem of flow management in AutoCAD. The job of the different job state that should undertake the project pursues effectively, have more perfect monitoring mechanism with respect to need, in order to supervise the different operation action of the user, the caption column information that makes the architect cannot change a project pursue by hand, detail column information; Make a circle round one's name on a document submitted for approval to show that one has read it person when make a circle round one's name on a document submitted for approval to show that one has read it, cannot revise design information to wait. Communication and monitoring are project attempt examines and approve the main problem of process drag in, also be a body of an article discussion. For the documentation management to facing a design, of the care is fundamental data the in basic message and database data in documentation of whether correct, graph is consistent. This system is in use process, a lot of product data are extract from inside the database, add in graphical database again next, to make the content in product database and graphical database consistent, be about to beg an user to cannot modify the content that must agree with product database in graphical database in AutoCAD. And should achieve this one goal, the individual behavior that cannot rely on an user will accomplish. When undertaking operating to AutoCAD, as a result of the error of handlers, or of AutoCAD itself not perfect, make a few data that cannot revise are revised to mix very easily delete. To prevent all sorts of wrong happening, the system asks to use architect and user of other officer careful to finish design and careful gyp to make on paper of same Zhang Tu, user of careful of the information that asks the architect cannot revise layer of school careful graph to go up at the same time, school cannot amend the information on design layer; To the information of caption column, any handlers cannot undertake modification to it below AutoCAD circumstance. The information of detail column and the information that point to down-lead, the operation in can adopting bill of fare only undertake operating, other operations are illegal. Accordingly, we must establish mechanism of this kind of tie in the program. In this system, we use the design line information, caption column information, detail column information, how-to line and school careful information to be stocked respectively in different graph layer, undertake adding a lock to them, the method that locks up through add a lock and prohibiting solving to graph layer will restrain an user. Below this kind of circumstance, the application of responsor appears very important. 3, monitoring realizes a process 3.

Kind of 1 data switch is summarized (1) DDE (dynamic data switch, DDE of Dynanic Data Exchange) basically is one sends message and the mechanism that receive an information, DDE can make two Windows apply a program to undertake through send or receiving command and data mutual the communication between, it makes can come true between applied process share data, the function waits in condition of far end executive command and examination mistake [3] . PowerBuildier provided relevant incident and function to implement DDE technology, use these incident and function, powerBuildier application process can support the applied process of DDE to send a message to another, also can answer the plea that other DDE applies. (2) OLE(Object Linking And Embedding, object link and built-in) the mechanism that OLE technology provided a kind to make data and program are shared between Windows application process, use OLE technology, the interface that different application can unite in leaves harmonious job. Powerbuilder accuses with OLE as container (Containter) calls OLE server to apply a program to show from which reach operate OLE object [3] . The OLE in Powerbuilder accuses a container that is OLE object, the user can activation OLE accuses, use the function that by OLE server application process provides to edit among them OLE object. Also can pass boy or girl friend of OLE of process designing activation, send a command to make OLE alternant to process of OLE service application automation. Powerscript automation can be used in the window can inspect OLE to accuse on, also can use store at citing in OLEObject variable cannot inspect OLE object to go up, use OLEbject data type, can establish an OLE target, and need not offer in the window for it can inspect OLE container. 3.

2AutoCAD 2000 develops brief introduction of method of tool ARX interface 2 times to use Visual C++ to develop AutoCAD to use a program, its interface function used 3 crucial function, namely: InitApp() , UnloadApp() , with AcrxEntryPoint() . Through knowing to the research of tool of Object ARX application development, object ARX and AutoCAD 2000 come true through special interface program, accordingly, through Object ARX development tool cannot have news report with PowerBuilder directly. But, can pass parameter receiver increases to make in its application process, parameter conveys to it when using a program through calling ARX, with realizing wanted function. Be like: Const Char *must_locklayer; // must want to add the user function after the graph layer Void NMYFWatchLayerReactor() // of the lock is revised, can receive exterior parameter {char* Hline1; AcedGetString(0, "N" , hline1); If(hline1! =NULL) {must_locklayer=&hline1[0]; }else Return; ... this} system transfers this function in PowerBuilder namely, receive attributive code parameter through this function. 3.

3 systems interface and data switch technology are in examine and approve the specific application system in flowing to ask the command in Powerbuilder and data can be in AutoCAD carry out and receive, can deliver parameter effectively. Because the requirement is not to must show AutoCAD file in Powerbuilder window, and in Powerbuilder window must twist implementation successfully to open the AutoCAD file, function that transfers Powerbuilder parameter through pressing again, accordingly, use program interface method to Powerbuilder and AutoCAD service, the system is used blame can inspect OLE object method to come custom-built the act that opens AutoCAD file, control the method that opens a file. OLEObject is a dynamic object type, any attribute names that compiler can accept OLEObject object type, function name reachs parameter list. Use OLEObject variable includes the following measure: (1) . State an OLEObject is variable and initialization, allocate memory space for OLE variable (2) . With server application the program joins (3) . The property that uses a program according to needing to use a server and function operate when object of this object OLEObject and AutoCAD2000 server join and communication, can use VBA to embed AutoCAD uses the character in the program, the function that transfers place of Active AutoMantion VBA to offer serves for its. This system uses two kinds of means to open documentation, a kind of means is to use ConnectToObject function, this function writes means to open demonstrate with reading the documentation of specific ways and means, it is the user opens documentation with means of careful of design, school commonly, because the user needs to undertake adapting operating to documentation,this is, when the system uses this command to open a file, can call AutCAD application server directly, open a file in order to keep kind; Another kind of means is, start OLE server to determine the indication position of AutCAD server by hand next above all, press next appoint means to open target file. (4) . Those who close OLE boy or girl friend join and this variable becomes destroy by melting or burning when server application process runs an end, with respect to the link that should close OLE object and server application process, release the memory space that OLE object place takes up. (5) . Important order " SendCommand " use " SendCommand " it is a very important AuotoCAD order of server application process, through this the command can operate any commands of AutCAD. When use SendComand commands, should special attention, if use ConnectToObject to command join server uses a program, use directly: Ole.

Sendcommand() but if use ConnectToNewobject() command to open some file directly, want to use: Ole.

Activedocument.

SendCommand() because,this is, when use ConnectToObject commands join server uses a program, autoCAD already opened one documentation and activation its automatically; And when commanding with ConnectToNewobject() join server uses a program, its just join above all went up server application process, and did not activation relevant documentation, because this must be added,go up " Activedocument " with activation target documentation. But when calling AutoCAD to command directly with SendCommand, want to notice this is the VBA command of a model, but this command did not discover however in Powerbuilder, when this command is called in Powerbuilder, its grammar format wants to adjust. In VBA SendCommand commands the prototype of the format is: Object.

SendCommand(Command) is in Powerbuilder, this jussive format is however: Object.

SendCommand(" Command " ) and should do when call a few alter. The command that draw a circle sends to command to AutoCAD travel usage is as follows with SendCommand in VB application process: ThisDrawing.

SendCommand "_Circle "&VbCr&"2, 2, 0 "&VbCr&"4 "&VbCr expressed to knock key of a carriage return in command travel with VbCr. Because VBA is direct and built-in in AutoCAD, when it calls AutoCAD, want to join right control code to be able to realize wanted syntactic function according to syntactic regulation only. AutoCAD is called directly in Powerbuilder the command is different, it uses following syntactic formats to call AutoCAD command directly: OLE accuses.

Actiredocument.

SendCommand(" command and parameter list " ) for example: Draw a circle: OLE1.

Activedocument SendCommand(" - Cirde 0, 2, 3 4 " ) we can contrast the circumstance of VBA: ThisDrawing.

SendCommand " - Cirde2, 2, 3, 4 blank space " the part that can discover these two kinds of grammar are different: Call in Powerbuilder must add a pair of bracket. When using to be called reliably, the beard in the statement increases Activedocument. 3.

4The process of process of application of AutoCAD of Powerbuilder to load uses a program in AutoCDA of the to load in Powerbuilder, cannot come with above grammar however to load namely: OLE ActiveDocament SendCommand(" Arx L D:MYarxMyarx, arx " ) because should input the last parameter,this is when, blank space cannot consider as carriage return key. But, can use what use in AutoCAD " Command " the instruction is one-time the method that is defeated by command and parameter comes process of to load application: OLE ActiveDocament SendCommand (' (Command "arx" "l "&"D:LAYERCONTRLlayermenaDebugLOCKLAYER.

Arx") ' ) can see, this paragraph of syntactic command and parameter list are understandable for: String Tempref Tempref= ' (Command "arx" "l "&"D:LAYERCONTRLlayermenaDebugLOCKLAYER.

Arx") ' Ole.

SendCommand(tempref) passes a test, if parameter "D:LAYERCONTRLlayermenaDebugLOCKLAYER.

Arx" is written into "D:LAYERCONTRLlayermenaDebugLOCKLAYER.

Arx" commands in AutoCAD travel parameter input field can show for: "D:LAYERCONTRLlayermenaDebugLOCKLAYER.

Arx" system cannot find a document. Because sprit is turned over in VB,this is " " it is control accord with, in appearing to just can express to be file method in couples only " " . Such, the ARX program that adopts AutoCAD of dynamic in PowerBuilder to load but user of whole journey monitoring is all handle action. After using a program, correct to load can realize the operation that should have. If carry out the applied program that develops by oneself to found new plan layer mediumly, assign color, route wide: Contact_ltr.

Activedocument.

SendCommand("createnewlayer proofreads a 5 1 ") 3.

5 examine and approve the responsor in flowing apply reach the field that wants an attention this system uses responsor of graph layer to load to realize pair of product database parameter, design information, proofread the information of check of information, mark, segregation that examines information, authorized information, craft to examine information to protect. The information that wants place protection is put in corresponding figure layer, and layer of to load graph bans lock responsor, make the user cannot lay layer of manual Jiesuo graph in AutoCAD. Pass programme controll, the system can convey the information in product database the corresponding figure layer in AutoCAD blueprint, add a lock again next. AutoCAD should know to issue ability to undertake adding a lock to corresponding graph layer in what kind of circumstance, how can just lock up layer of the plotting that decide eye correctly. This is about to pass pass the parameter information that come over from inside PowerBuilder application process, look plotting layer adds a lock in order to be opposite accordingly. ARX application process is passed receive this one parameter, inform graph layer condition of monitor, condition of layer of surveillant eye plotting. In Arx program, need sets a few parameter, when the graph layer that arrives when systematic retrieval and the graph layer photograph that the user asks to add a lock are consistent, add its the lock, opened graph layer when the user, no matter whether its undertook modification to graph layer, found new layer the operating system can undertake retrieval, add formulary plan layer the lock. Carry out the following statement but detail column, will authorized layer, proofread a layer, examine layer, standardization layer to add a lock: / / responsor of layer of to load graph applies program Contact_ltr.

Activedocument.

SendCommand(' (Command "arx" "l "&"D:LAYERCONTRLlayermenaDebugLOCKLAYER.

Arx") ' ) among them " LOCKLAYER " the responsor of layer of to load graph that develops to use ARX uses a program, "AddlocklayerReactor " the layer that it is a graph adds lock responsor program. The grammar that understands all graph layer the lock is: Contact_ltr.

Activedocument.

SendCommand("addlocklayerReactor ") will proofread a grammar that understands a lock to be: Contact_ltr.

Activedocument.

SendCommand("addlocklayerReactor&Authorized layer + detail column layer + examine a layer + when standardization layer ") is built in AutoCAD or unfolding a piece of blueprint, no matter this blueprint has,do not have design object, to this graph object, it has to be able to never be deleted, also cannot by incognito graph layer -- " 0 " layer, this system is in namely " 0 " responsor of layer of graph of layer to load, in order to monitor whether eye plotting layer already was revised illegally. Think when the user Suo Dingtu the layer solves a lock when, he must open graph layer watch to undertake operating, because be in " 0 " the to load on the layer graph layer responsor, this responsor can monitor " 0 " the working status of the layer. Once " 0 " the layer is opened, can spark OpenForModify function; Or " 0 " when the layer is shut, spark ObjectClosed function, the system pursues in the to load in ObjectClosed function namely a searcher and monitor of graph layer state. Searcher meets graph layer retrieve all graph layer come out, the information that feedbacks according to monitor of graph layer state again, judgement ought not to solve the graph of the lock to whether be solved illegally to lock up, if be solved to lock up, call graph layer to add lock function to add its the lock afresh. The following respect ought to note when use responsor, will cause a system to break down otherwise: (1) ought to make clear incident carries out early or late ordinal for example, to AcDbObjectReactor, answer incident can happen instantly or be referred by remit to happen after time. Referring time is to show when the user aspirant travel operates the base in a complete object when, the time that the object operation that finish is shut or be in when the user below clerical mode when executive operation the outerest the time that general affairs ends. (2) in must making detecting necessarily is in use a process actually to referred incident, the after referring a process to must carry out corresponding test to work ability of incident affirms. For example, when the graph layer that decides illegally to systematic lock in the user solves a lock, if just be simple in the ObjectClosed incident of responsor of eye plotting layer,pursue to the target the layer adds a lock afresh, can cause the EWasNotOpenFOrWrite wrong message of AutoCAD, can make AutoCAD breaks down. Want to solve this one problem, ought to revise in eye plotting layer end, and the method of new lock layer that user place just can call to define after the system shuts the graph layer watch related its and collection of graph layer souvenir successfully already. Wait for the responsor related to entity through studying AcDbObjectReactor, AcEditorReactor, AcTransactionReactor, discover only AcTransactionReactor can monitor whether hypostatic unit process of cargo bandling ends, but if use the monitoring function of AcTransactionReactor only, cannot decide when general affairs begins. Because this is,handle this one issue, should at the same time to load AcDbObjectReactor is mixed AcTransactionReactor two kinds of responsor, acDbObjectReactor is OK when does monitoring general affairs begin, acTransactionReactor is OK when does monitoring target general affairs end, once general affairs ends, lock up a method afresh with respect to what can call user place to define. 4, what conclusion adopts graphical database and database system is compositive, the fundamental data that moves on PDM system can be dynamic be united in wedlock with blueprint paper information, produce a change when blueprint paper information, the data that PDM transmits downward can produce a change subsequently. Proofread, examine and verify, standardization and authorized undertake on PDM, the blueprint inside the blueprint that makes finalize the design finally and computer is unified rise. Carry inquiry, a certain machine is planted design circumstance be clear at a glance. Examine and approve in PDM responsor technology introduces in flowing, from go up at all solved the safe problem that examines and approve information of the accredit in flowing, can put an end to the handlers modification to blame accredit information effectively, the safety that will assure information data by the system and reliable; Mix in Powerbuilder through realizing iformation flow at the same time between ACAD deliver, those who make PDM and AutoCAD can effective is compositive together, promoted the administrative levels of NM-PDM. CNC Milling CNC Machining