Be based on SolidWorks to develop the implementation method of standard component library with VB

  • Time:
  • Click:257
  • source:EAMOM CNC Machining
Introduced the principle that standard component library develops with VB below SolidWorks environment, the method that emphasizes function of the development technological process that studied standard component library, API in calling SolidWorks with VB and through advanced language (if VB, VC) calls SolidWorks of drive of library of standard component parameter,realize standard component method of three-dimensional and hypostatic formative. The commonly used standard component such as combinative bolt, nut, gasket the development of the library, the establishs program of method, interface and driver development method that explored warehouse of standard component parameter, finished commonly used standard component the design of the library and development, gave out to use example. SolidWorks is software of a kind of when use generally three-dimensional and mechanical CAD, have parameter to change build modular function with the feature, have graphical user interface intuitionistic, use convenient, Yi Xueyi to use wait for a characteristic, it is the design tool with engineering design active personnel. Design personnel is assembling a design in, want to use numerous standard component, wait like washerbed down the livestock, bolt, nut. Standard component is the main unit with the most extensive use in engineering design, its scale also is to design personnel to repeat the link with most labor. SolidWorks itself does not take library of national level spare parts, when using standard component every time design personnel needs to build a model afresh, this creates time waste. Be based on this kind of circumstance, use the API port that SolidWorks itself offers, can develop a standard component library, go to the lavatory to assemble a design to offer, shun repeatability work. Build and use of standard component library rose to design efficiency and quality, it is CAD system the trend is economic the indispensable link that change. The design develops a standard component library to will bring huge to go to the lavatory to design an engineer, 2 development that the article is like washerbed down the livestock, bolt, nut with commonly used standard component are exemple, the develops function of the flow, APl in calling SolidWorks with VB method that studied standard component library and through advanced language (if VB, VC) calls SolidWorks of drive of library of standard component parameter,realize standard component method of three-dimensional and hypostatic formative. 2 1 development principle SolidWorks is to be based on parameter to convert the products plan software that builds modular technology with the feature, of the standard component that can realize each parameter drive through process designing generate and call, build three-dimensional standard component library plug-in unit, the module that the development that use VB comes out can generate SolidWorks toolbar, it is to generate commonly. Exe file, grand command calls the tool that uses SolidWorks next generate a toolbar, simplified to design the unit process of cargo bandling of personnel so. On the base that builds warehouse of standard component parameter, through transferring the API function that SolidWorks provides, can realize three-dimensional aprametric model build become with serious new student. For the SolidWorks system that changes a function to having parameter, build three-dimensional standard component the library needs scale only the pattern plate graph of all sorts of standard component, name dimension parameter variable next, build corresponding dimension parameter list. To some kind for standard component, have the dimension parameter with many model different correspondence normally, these dimension parameter can form the library of standard component parameter of this type. Model of development standard component chooses a program, can choose the standard component of some model from inside library of standard component parameter, call the dimension parameter of this model standard component at the same time. Pass API interface, conduct dimension parameter the modelling function that sends SolidWorks, update the dimension in pattern plate graph with new measure, build as corresponding as new measure hypostatic model afresh, repeat with respect to what avoided to be the same as type standard component so build a model. The applied program that use VB develops can embed directly in SolidWorks environment, menu of process of the application after to load is successful appears on the entree sheet of SolidWorks directly, as SolidWorks the job has like taking a function oneself, rose to design efficiency greatly. The 2 processes that develop standard component library with VB and implementation method 2. The development method of 1 standard component library develops a method to have 2 kinds: One kind is to use interactive form to build a model, install reasonable design variable, drive of repass VB program designs variable, replace original spare parts parameter, with realizing a model newer, process designing of this kind of method is simple, versatility is good; Another kind is the editor that uses a program completely to realize the parameter of three-dimensional model to turn design and model, process designing of this kind of method is formerer and complex, but the spare parts modelling that can realize complex body, if build model of parameter of accurate involute gear tooth profile, hob,wait. The article uses the first kind of method. 2. The develops flow to establish standard component warehouse primary process of 2 standard component libraries is: According to the basic measure that chooses from the interface and norms, read from inside watch of parameter of standard component design take corresponding configuration, the three-dimensional model of this standard component is built in SolidWorks environment, if pursue,1 is shown. 2 development of the standard component library that is based on VB basically include 3 shares: Of database of the scale of standard component model, Access build, the work out of VB program. 2. Of model of substance of 3 standard component build a root to occupy some kind the structural feature of standard component, build its standard component three-dimensional and hypostatic model, it is to build the parameter of this kind of standard component to change design pattern plate actually, put its into standard component library, the development that is standard component library lays a foundation, so that pass a program to change its dimension parameter, make the standard component of new measure. Undertaking standard component when three-dimensional substance builds a model, want to analyse the structural feature of standard component above all, in order to decide the tie between dimension variable and dimension variable concerns, the associated sex of clear and main parameter, active dimension and driven dimension, set dimension variable tag, establish the associated relationship between drive variable watch, variable, so that pass dimension variable to gift,different parameter value comes the three-dimensional and hypostatic model that drive SolidWorks builds this standard component afresh, the measure that implements standard component is newer, develop SolidWorks parameter adequately to change the dominant position of the design thereby, achieve shorten the purpose of cycle of new products plan. Generally speaking, when building a model, want to be able to make each draft of the model are defined completely as far as possible, with assuring a model be updated correctly and generate, the geometric constraint that uses spare parts itself at the same time and symmetrical relation will simplify the process that build a model. Go up surely really in spare parts parameter, basically consider the project sense that parameter conveys, make the crucial dimension of the spare parts gets reflecting as far as possible, on this foundation, consider the handy sex that parameter develops to 2 at the same time? . A detailed introduction is with bolt below as follows. When building a model, the fixed position of draft, geometric constraint concerns and add the respect such as equation to need special attention appropriately, if entity is out of shape,appear, of draft cross definition, certain feature to produce the problem such as conflict, bring about parameter to turn the failure of the design thereby. Pursue not same because of the draft of three-dimensional CAD and the project of 2 dimension CAD, software of 2 dimension CAD faces blueprint, the main measure that should tag only is true, with respect to the proper expression that can implement pair of parts. And in three-dimensional CAD software, draft is the base that builds all sorts of features, the position between draft substance has strict restriction. Accordingly, special attention wants in the process building a model of bolt the scale of draft, draft must have located completely, the tie is good, such ability have the effect of get twice the result with half the effort. 2. Of library of parameter of 4 standard component build library of standard component parameter to be able to use Access database to manage a system to build, so that pass a program to call among them parameter, newer to the dimension of hypostatic pattern plate in standard component library, the parameter that realizes standard component changes a design. When building warehouse of standard component parameter with Access, need decides according to the main measure variable of standard component its parameter is expressed, for example watch of parameter of bolt of 6 horn head sees a table 1. 2. Programming includes 5VB programming and development VB the content of 2 respects: It is the design of program interface and development; 2 it is parameter calls the design with driver and development. Program interface should be understood simply, use convenient. Of the option of the model of the part that program interface should include to need to found, type and corresponding norms and correspondence preview a graph, still should include a program to carry out additionally, end key-press, if pursue,2 are shown. Graph 2 in installed 3 sheet to choose pushbutton, still set draw a frame round of a combination below washerbed down the livestock and bolt among them, assorted casing can choose the norms of washerbed down the livestock and bolt, next norms of avery kind of can choose various type through the assorted casing above model. Right is a spare parts preview. 2 commands pushbutton is below, begin pushbutton and end pushbutton namely. Parameter calls the parameter in realizing libraries of pair of standard component parameter with driver call, update the dimension of hypostatic pattern plate in standard component library through these parameter drive S0lidworks, build new hypostatic model. This is involved join and the problem of drive SolidWorks. Build standard component library to need to involve the dimension drive of standard component model, dimension driver is written more troublesome, use " transcribe grand + the method that revises grand " , can simplify process designing workload. Transcribe grand the method is as follows: The grand transcribe function of the SolidWorks that start, the substance that undertakes standard component pattern plate builds a model, after finishing, choose among them " feature - draft " pushbutton, in hypostatic work area, doubleclick place to build hypostatic some part feature, can examine the dimension related to this feature, doubleclick some dimension to be able to undertake modification to its, trim concerned size the size of model of some of instead standard component, build the hypostatic model of this model thereby. Finally, a grand document obtains after stopping grand transcribe () of grand interior process designing, duplicate next and stickup macrodoce arrives in VB, do certain modification to code, replace the crucial data in macrodoce with variable. These variable data come from the data that plays a part at database of spare parts parameter to express, carry program drive variable, those who realize model of standard component substance is fast found. Bolt parameter is changed cut in the design, the operation that removes knife chamfer and crucial position to pour round wine cup, the crucial parameter that gives out according to the architect is carried out automatically in program interior, need not intervene artificially. SolidWorks of 3 last words is a CAD software system that is based on Windows platform, be applied extensively at all trades and professions, the main trend that already made personal computer platform go up at present is three-dimensional design software. However, because abroad develops this software, did not take the standard component library that accords with requirement of our country standard, bring a lot of inconvenience to the architect. For this, the article is analysing the base that principle of standard component library and method develop with VB below SolidWorks environment to go up, advanced the development technological process of a kind of standard component library, considered to adopt advanced language (VB, VC) calls library of standard component parameter to come method of formative of three-dimensional substance of standard component of implementation of function of the API in drive SolidWorks, announced the common law that standard component library develops. The commonly used standard component such as combinative bolt, nut, gasket the development of the library, build standard component library and parameter to changed product part library to provide example and the means that can draw lessons from independently for the enterprise, have better actual application value. CNC Milling CNC Machining