Production Applications: Welding
Welding is an optional Creo Parametric module that allows you to model welds in assemblies. In addition, you can generate report tables about weld parameters and show welding symbols in assembly drawings. This section provides a brief overview of weld features. For more information, refer to the “Welding Design” module in the Creo Parametric Online Help.
Read Access to Weld Features
The functions listed in this section provide access to basic information about existing weld features.
Functions introduced:
Use function ProWeldTypeGet() to output the type and subtype of the specified weld. Function ProWeldInfoGet() outputs the information you get by using the Creo Parametric command Info, in the Weld group, under the welding tab.
Function ProWeldIntermittenceGet() outputs information about an intermittent weld, describing the size, number, and location of the welds that form it.
Use function ProWeldSequenceIdGet() to obtain the sequence ID of a weld feature.
In Creo Simulate, you can add the welds created in Creo Parametric Welding application to models. During meshing, solid elements are created for solid weld objects while surface weld objects are compressed to shells. The function ProMdlIsSolidWeld() checks if the specified solid has been created from a solid weld.
Use the function ProWeldGeomTypeGet() to get the type of geometry representation for the specified weld. The types of geometry representations are defined in the enumerated data type ProWeldGeomType. The valid values are:
•  PRO_WELD_LIGHT—Light welds reference existing curves or edges but have no geometry of their own. The welds are represented by the edge or surface geometry it references.
•  PRO_WELD_SURFACE—Surface welds creates and shows the surface geometry. It is represented by surface geometry.
•  PRO_WELD_SOLID—Solid welds and edge preparations are geometric models that offer mass properties such as volume and surface area.
Refer to the Creo Parametric Welding for more information.
Use function ProWeldRodGet() to provide the feature handle of the rod for the specified weld feature. Function ProWeldRodNameGet() gets the name of the specified weld rod feature.
ProWeldCompoundGet() outputs the list of welds in a compound weld.
Use functions ProWeldFilletdataGet(), ProWeldGroovedataGet(), ProWeldPlugdataGet(), ProWeldSlotdataGet(), and ProWeldSpotdataGet() to output data on a specific fillet, groove, plug, slot, or spot weld respectively.
Use the function ProWeldExtendedInfoToXMLExport() to print the information that is necessary to automatize the welding info file, in XML format.
Customizing Weld Drawing Symbols
Functions introduced:
This section describes three notification functions invoked by Creo Parametric when the user instantiates a weld symbol that documents a weld in drawing mode. Your callback functions can output information which is used to modify the weld symbol that appears on the drawing. The effect is to allow much greater customization of the appearance of the weld symbol than is possible without Creo TOOLKIT .
Note
From Pro/ENGINEER Wildfire 5.0 onward, you can also create weld symbols in weld features as 3D Symbol Annotation Elements. Creo TOOLKIT allows you to access the Weld Symbol Annotation Elements using exisitng ProAnnotation*() functions. For more information on the functions, refer the Annotations: Annotation Features and Annotations section.
Each callback has input arguments which identify the drawing, the weld assembly, the weld feature being annotated, and the path to the drawing symbol being used. The functions for read-access to welds, described in the previous section, would be used inside the callbacks to find out about the weld being annotated.
Refer to the Event-driven Programming: Notifications section for more data on how to set a notification.
Weld symbol notification types are:
•  PRO_DRAWING_WELD_SYMPATH_GET—allows the callback function to override the entire weld symbol by specifying the path and file name of a substitute symbol.
•  PRO_DRAWING_WELD_GROUPIDS_GET—allows the callback to selectively include or exclude symbol groups contained in the symbol. Additional inputs to the callback are a flag to show which way the symbol will point (left or right) and an array of the names of the groups in the symbol; the output is an array of booleans which select the groups to be included.
•  PRO_DRAWING_WELD_SYMTEXT_GET—allows the callback to substitute for variable text in the symbol.
All three notifications can be set at the same time, allowing you to use your own set of generic symbols which are designed to be customized according to the weld type and properties.
Example 1: Weld Callback Notification
The sample code in UgWeld.c located at <creo_toolkit_loadpoint>/protk_appls/pt_userguide/ptu_weld shows how to use weld callback notification functions.