The GeneralizedWeld class gives you access to constrained generalized weld cards in PRIMER. More...
The PRIMER JavaScript API provides many class constants, properties and methods. For Arup to
be able to extend and enhance the API in the future any constant, property or method names beginning with a lowercase
or uppercase letter are reserved.
If you need to add your own properties or methods to one of the existing classes then to avoid any potential future conflict you
should ensure that the name begins with either an underscore (_) or a dollar sign ($) or the name is prefixed with your
own unique identifier.
For example if company 'ABC' need to add a property called 'example' then to avoid any potential future conflict use one of:
| Name | Type | Description |
| a | real | Width of fillet (GeneralizedWeld.FILLET, GeneralizedWeld.CROSS_FILLET) |
| alpha | real | Weld angle (GeneralizedWeld.FILLET, GeneralizedWeld.CROSS_FILLET) |
| beta | real | Failure parameter (GeneralizedWeld.FILLET, GeneralizedWeld.BUTT, GeneralizedWeld.CROSS_FILLET) |
| cid | integer | Coordinate System ID. |
| d | real | Thickness of weld (GeneralizedWeld.BUTT) |
| epsf | real | Effective plastic strain at failure (GeneralizedWeld.SPOT, GeneralizedWeld.FILLET, GeneralizedWeld.BUTT, GeneralizedWeld.CROSS_FILLET) |
| exists (read only) | logical | true if generalized weld exists, false if referred to but not defined. |
| filter | integer | Number of force vectors saved for filtering. |
| id | logical | true if _ID option is set, false if not |
| include | integer | The Include file number that the generalized weld is in. |
| l | real | Length of weld (GeneralizedWeld.FILLET, GeneralizedWeld.BUTT, GeneralizedWeld.CROSS_FILLET) |
| label | integer | Constrained Generalized weld number. |
| lt | real | Transverse length (GeneralizedWeld.BUTT) |
| m | real | Exponent for shear force (GeneralizedWeld.SPOT) |
| model (read only) | integer | The Model number that the generalized weld is in. |
| n | real | Exponent for normal force (GeneralizedWeld.SPOT) |
| npr | integer | Number of individual nodal pairs in cross fillet and combined weld. |
| nprt | integer | Printout option. |
| nsid | integer | Set Node Set ID. |
| option | constant | GeneralizedWeld type. Can be GeneralizedWeld.SPOT, GeneralizedWeld.FILLET, GeneralizedWeld.BUTT, GeneralizedWeld.CROSS_FILLET, GeneralizedWeld.COMBINED |
| sigf | real | Stress at failure (GeneralizedWeld.FILLET) |
| sigy | real | Stress at failure (GeneralizedWeld.BUTT, GeneralizedWeld.CROSS_FILLET) |
| sn | real | Normal force at failure (GeneralizedWeld.SPOT) |
| ss | real | Shear force at faliure (GeneralizedWeld.SPOT) |
| tfail | real | Failure time for constraint set (GeneralizedWeld.SPOT, GeneralizedWeld.FILLET, GeneralizedWeld.BUTT, GeneralizedWeld.CROSS_FILLET) |
| w | real | Width of flange (GeneralizedWeld.FILLET, GeneralizedWeld.CROSS_FILLET) |
| wid | integer | Constrained Generalized weld number (identical to label). |
| window | real | Filter time window. |
Constructornew GeneralizedWeld(Model[Model], option[constant], nsid[integer], cid (optional)[integer], filter (optional)[integer], window (optional)[real], npr (optional)[integer], nprt (optional)[integer], wid (optional)[integer])DescriptionCreate a new GeneralizedWeld object. |
Model that gwld will be created in
Constrained generalized weld type (any).
Set Node Set ID.
Number of force vectors saved for filtering.
Filter time window.
Number of individual nodal pairs in cross fillet and combined weld.
Printout option.
Constrained Generalized weld number.
ReturnsGeneralizedWeld object Return typeGeneralizedWeld |
Details of functionsAssociateComment(Comment[Comment])DescriptionAssociates a comment with a generalized weld. |
Comment that will be attached to the generalized weld
ReturnsNo return value |
ExampleTo associate comment c to the generalized weld gw: gw.AssociateComment(c);
|
Blank()DescriptionBlanks the generalized weld |
No arguments
ReturnsNo return value |
ExampleTo blank generalized weld gw: gw.Blank();
|
BlankAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionBlanks all of the generalized welds in the model. |
Model that all generalized welds will be blanked in
If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using View.Redraw().
ReturnsNo return value |
ExampleTo blank all of the generalized welds in model m: GeneralizedWeld.BlankAll(m);
|
BlankFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionBlanks all of the flagged generalized welds in the model. |
Model that all the flagged generalized welds will be blanked in
Flag set on the generalized welds that you want to blank
If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using View.Redraw().
ReturnsNo return value |
ExampleTo blank all of the generalized welds in model m flagged with f: GeneralizedWeld.BlankFlagged(m, f);
|
Blanked()DescriptionChecks if the generalized weld is blanked or not. |
No arguments
Returnstrue if blanked, false if not. Return typeBoolean |
ExampleTo check if generalized weld gw is blanked: if (gw.Blanked() ) do_something...
|
Browse(modal (optional)[boolean])DescriptionStarts an edit panel in Browse mode. |
If this window is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the window will be modal.
Returnsno return value |
ExampleTo Browse generalized weld gw: gw.Browse();
|
ClearFlag(flag[Flag])DescriptionClears a flag on the generalized weld. |
Flag to clear on the generalized weld
ReturnsNo return value |
ExampleTo clear flag f for generalized weld gw: gw.ClearFlag(f);
|
Copy(range (optional)[boolean])DescriptionCopies the generalized weld. The target include of the copied generalized weld can be set using Options.copy_target_include. |
If you want to keep the copied item in the range specified for the current include. Default value is false. To set current include, use Include.MakeCurrentLayer().
ReturnsGeneralizedWeld object Return typeGeneralizedWeld |
ExampleTo copy generalized weld gw into generalized weld z: var z = gw.Copy();
|
Create(Model[Model], modal (optional)[boolean]) [static]DescriptionStarts an interactive editing panel to create a generalized weld |
Model that the generalized weld will be created in.
If this window is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the window will be modal.
ReturnsGeneralizedWeld object (or null if not made). Return typeGeneralizedWeld |
ExampleTo start creating a generalized weld in model m: var gw = GeneralizedWeld.Create(m);
|
DetachComment(Comment[Comment])DescriptionDetaches a comment from a generalized weld. |
Comment that will be detached from the generalized weld
ReturnsNo return value |
ExampleTo detach comment c from the generalized weld gw: gw.DetachComment(c);
|
Edit(modal (optional)[boolean])DescriptionStarts an interactive editing panel. |
If this window is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the window will be modal.
Returnsno return value |
ExampleTo Edit generalized weld gw: gw.Edit();
|
Error(message[string], details (optional)[string])DescriptionAdds an error for generalized weld. For more details on checking see the Check class. |
The error message to give
An optional detailed error message
ReturnsNo return value |
ExampleTo add an error message "My custom error" for generalized weld gw: gw.Error("My custom error");
|
First(Model[Model]) [static]DescriptionReturns the first generalized weld in the model. |
Model to get first generalized weld in
ReturnsGeneralizedWeld object (or null if there are no generalized welds in the model). Return typeGeneralizedWeld |
ExampleTo get the first generalized weld in model m: var gw = GeneralizedWeld.First(m);
|
FirstFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the first free generalized weld label in the model. Also see GeneralizedWeld.LastFreeLabel(), GeneralizedWeld.NextFreeLabel() and Model.FirstFreeItemLabel(). |
Model to get first free generalized weld label in
Include file (0 for the main file) to search for labels in (Equivalent to First free in layer in editing panels). If omitted the whole model will be used (Equivalent to First free in editing panels).
ReturnsGeneralizedWeld label. Return typeNumber |
ExampleTo get the first free generalized weld label in model m: var label = GeneralizedWeld.FirstFreeLabel(m);
|
FlagAll(Model[Model], flag[Flag]) [static]DescriptionFlags all of the generalized welds in the model with a defined flag. |
Model that all generalized welds will be flagged in
Flag to set on the generalized welds
ReturnsNo return value |
ExampleTo flag all of the generalized welds with flag f in model m: GeneralizedWeld.FlagAll(m, f);
|
Flagged(flag[Flag])DescriptionChecks if the generalized weld is flagged or not. |
Flag to test on the generalized weld
Returnstrue if flagged, false if not. Return typeBoolean |
ExampleTo check if generalized weld gw has flag f set on it: if (gw.Flagged(f) ) do_something...
|
ForEach(Model[Model], func[function], extra (optional)[any]) [static]DescriptionCalls a function for each generalized weld in the model. |
Model that all generalized welds are in
Function to call for each generalized weld
An optional extra object/array/string etc that will appended to arguments when calling the function
ReturnsNo return value |
GetAll(Model[Model], property (optional)[string]) [static]DescriptionReturns an array of GeneralizedWeld objects or properties for all of the generalized welds in a model in PRIMER. If the optional property argument is not given then an array of GeneralizedWeld objects is returned. If the property argument is given, that property value for each generalized weld is returned in the array instead of a GeneralizedWeld object |
Model to get generalized welds from
Name for property to get for all generalized welds in the model
ReturnsArray of GeneralizedWeld objects or properties Return typeArray |
GetCombinedData(index[integer])DescriptionReturns the combined data for a specific nodal pair as an array. |
Index you want the data for. Note that indices start at 0.
ReturnsAn array containing the data (tfail, epsf, sigy, beta, l, w, a, alpha, nodea, nodeb, ncid, wtyp). Return typeArray |
ExampleTo get the data for the 3rd node pair for generalized weld gw: var data = gw.GetCombinedData(2);
|
GetComments()DescriptionExtracts the comments associated to a generalized weld. |
No arguments
ReturnsArray of Comment objects (or null if there are no comments associated to the node). Return typeArray |
ExampleTo get the array of comments associated to the generalized weld gw: var comm_array = gw.GetComments();
|
GetCrossFilletData(index[integer])DescriptionReturns the cross fillet data for a specific nodal pair as an array. |
Index you want the data for. Note that indices start at 0.
ReturnsAn array containing the data (nodea, nodeb, ncid). Return typeArray |
ExampleTo get the data for the 3rd node pair for generalized weld gw: var data = gw.GetCrossFilletData(2);
|
GetFailureData() [deprecated]This function is deprecated in version 11.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. DescriptionAccess the properties directly or use GeneralizedWeld.GetCombinedData() for GeneralizedWeld.COMBINED instead. |
No arguments
ReturnsNo return value |
GetFlagged(Model[Model], flag[Flag], property (optional)[string]) [static]DescriptionReturns an array of GeneralizedWeld objects for all of the flagged generalized welds in a model in PRIMER If the optional property argument is not given then an array of GeneralizedWeld objects is returned. If the property argument is given, then that property value for each generalized weld is returned in the array instead of a GeneralizedWeld object |
Model to get generalized welds from
Flag set on the generalized welds that you want to retrieve
Name for property to get for all flagged generalized welds in the model
ReturnsArray of GeneralizedWeld objects or properties Return typeArray |
GetFromID(Model[Model], number[integer]) [static]DescriptionReturns the GeneralizedWeld object for a generalized weld ID. |
Model to find the generalized weld in
number of the generalized weld you want the GeneralizedWeld object for
ReturnsGeneralizedWeld object (or null if generalized weld does not exist). Return typeGeneralizedWeld |
ExampleTo get the GeneralizedWeld object for generalized weld 100 in model m var gw = GeneralizedWeld.GetFromID(m, 100);
|
GetNodalPair() [deprecated]This function is deprecated in version 11.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. DescriptionUse GeneralizedWeld.GetCombinedData() for GeneralizedWeld.COMBINED or GeneralizedWeld.GetCrossFilletData() for GeneralizedWeld.CROSS_FILLET instead. |
No arguments
ReturnsNo return value |
GetParameter(prop[string])DescriptionChecks if a GeneralizedWeld property is a parameter or not. Note that object properties that are parameters are normally returned as the integer or float parameter values as that is virtually always what the user would want. For this function to work the JavaScript interpreter must use the parameter name instead of the value. This can be done by setting the Options.property_parameter_names option to true before calling the function and then resetting it to false afterwards.. This behaviour can also temporarily be switched by using the GeneralizedWeld.ViewParameters() method and 'method chaining' (see the examples below). |
generalized weld property to get parameter for
ReturnsParameter object if property is a parameter, null if not. Return typeParameter |
Keyword()DescriptionReturns the keyword for this gwld (*CONSTRAINED_GENERALIZED_WELD_xxxx). Note that a carriage return is not added. See also GeneralizedWeld.KeywordCards() |
No arguments
Returnsstring containing the keyword. Return typeString |
ExampleTo get the keyword for generalized weld gw: var key = gw.Keyword();
|
KeywordCards()DescriptionReturns the keyword cards for the gwld. Note that a carriage return is not added. See also GeneralizedWeld.Keyword() |
No arguments
Returnsstring containing the cards. Return typeString |
ExampleTo get the cards for generalized weld gw: var cards = gw.KeywordCards();
|
Last(Model[Model]) [static]DescriptionReturns the last generalized weld in the model. |
Model to get last generalized weld in
ReturnsGeneralizedWeld object (or null if there are no generalized welds in the model). Return typeGeneralizedWeld |
ExampleTo get the last generalized weld in model m: var gw = GeneralizedWeld.Last(m);
|
LastFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the last free generalized weld label in the model. Also see GeneralizedWeld.FirstFreeLabel(), GeneralizedWeld.NextFreeLabel() and see Model.LastFreeItemLabel() |
Model to get last free generalized weld label in
Include file (0 for the main file) to search for labels in (Equivalent to Highest free in layer in editing panels). If omitted the whole model will be used.
ReturnsGeneralizedWeld label. Return typeNumber |
ExampleTo get the last free generalized weld label in model m: var label = GeneralizedWeld.LastFreeLabel(m);
|
Next()DescriptionReturns the next generalized weld in the model. |
No arguments
ReturnsGeneralizedWeld object (or null if there are no more generalized welds in the model). Return typeGeneralizedWeld |
ExampleTo get the generalized weld in model m after generalized weld gw: var gw = gw.Next();
|
NextFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the next free (highest+1) generalized weld label in the model. Also see GeneralizedWeld.FirstFreeLabel(), GeneralizedWeld.LastFreeLabel() and Model.NextFreeItemLabel() |
Model to get next free generalized weld label in
Include file (0 for the main file) to search for labels in (Equivalent to Highest+1 in layer in editing panels). If omitted the whole model will be used (Equivalent to Highest+1 in editing panels).
ReturnsGeneralizedWeld label. Return typeNumber |
ExampleTo get the next free generalized weld label in model m: var label = GeneralizedWeld.NextFreeLabel(m);
|
Pick(prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean], button text (optional)[string]) [static]DescriptionAllows the user to pick a generalized weld. |
Text to display as a prompt to the user
If the argument is a Model then only generalized welds from that model can be picked. If the argument is a Flag then only generalized welds that are flagged with limit can be selected. If omitted, or null, any generalized welds from any model can be selected. from any model.
If picking is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the pick will be modal.
By default the window with the prompt will have a button labelled 'Cancel' which if pressed will cancel the pick and return null. If you want to change the text on the button use this argument. If omitted 'Cancel' will be used.
ReturnsGeneralizedWeld object (or null if not picked) Return typeGeneralizedWeld |
ExampleTo pick a generalized weld from model m giving the prompt 'Pick generalized weld from screen': var gw = GeneralizedWeld.Pick('Pick generalized weld from screen', m);
|
Previous()DescriptionReturns the previous generalized weld in the model. |
No arguments
ReturnsGeneralizedWeld object (or null if there are no more generalized welds in the model). Return typeGeneralizedWeld |
ExampleTo get the generalized weld in model m before generalized weld gw: var gw = gw.Previous();
|
RenumberAll(Model[Model], start[integer]) [static]DescriptionRenumbers all of the generalized welds in the model. |
Model that all generalized welds will be renumbered in
Start point for renumbering
ReturnsNo return value |
ExampleTo renumber all of the generalized welds in model m, from 1000000: GeneralizedWeld.RenumberAll(m, 1000000);
|
RenumberFlagged(Model[Model], flag[Flag], start[integer]) [static]DescriptionRenumbers all of the flagged generalized welds in the model. |
Model that all the flagged generalized welds will be renumbered in
Flag set on the generalized welds that you want to renumber
Start point for renumbering
ReturnsNo return value |
ExampleTo renumber all of the generalized welds in model m flagged with f, from 1000000: GeneralizedWeld.RenumberFlagged(m, f, 1000000);
|
Select(flag[Flag], prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean]) [static]DescriptionAllows the user to select generalized welds using standard PRIMER object menus. |
Flag to use when selecting generalized welds
Text to display as a prompt to the user
If the argument is a Model then only generalized welds from that model can be selected. If the argument is a Flag then only generalized welds that are flagged with limit can be selected (limit should be different to flag). If omitted, or null, any generalized welds can be selected. from any model.
If selection is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the selection will be modal.
ReturnsNumber of generalized welds selected or null if menu cancelled Return typeNumber |
SetCombinedData(index[integer], data[Array of numbers])DescriptionSets the combined data for a specific nodal pair. |
Index you want to set the data for. Note that indices start at 0.
Array containing the data. The array length should be 12 (tfail, epsf, sigy, beta, l, w, a, alpha, nodea, nodeb, ncid, wtyp)
ReturnsNo return value. |
ExampleTo set the data for the 3rd nodal pair for generalized weld gw to the values in array adata: gw.SetCombinedData(2, adata);
|
SetCrossFilletData(index[integer], data[Array of numbers])DescriptionSets the cross fillet data for a specific nodal pair. |
Index you want to set the data for. Note that indices start at 0.
Array containing the data. The array length should be 3 (nodea, nodeb, ncid)
ReturnsNo return value. |
ExampleTo set the data for the 3rd nodal pair for generalized weld gw to the values in array adata: gw.SetCrossFilletData(2, adata);
|
SetFailureData() [deprecated]This function is deprecated in version 11.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. DescriptionAccess the properties directly or use GeneralizedWeld.SetCombinedData() for GeneralizedWeld.COMBINED instead. |
No arguments
ReturnsNo return value |
SetFlag(flag[Flag])DescriptionSets a flag on the generalized weld. |
Flag to set on the generalized weld
ReturnsNo return value |
ExampleTo set flag f for generalized weld gw: gw.SetFlag(f);
|
SetNodalPair() [deprecated]This function is deprecated in version 11.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. DescriptionUse GeneralizedWeld.SetCombinedData() for GeneralizedWeld.COMBINED or GeneralizedWeld.SetCrossFilletData() for GeneralizedWeld.CROSS_FILLET instead. |
No arguments
ReturnsNo return value |
Sketch(redraw (optional)[boolean])DescriptionSketches the generalized weld. The generalized weld will be sketched until you either call GeneralizedWeld.Unsketch(), GeneralizedWeld.UnsketchAll(), Model.UnsketchAll(), or delete the model |
If model should be redrawn or not after the generalized weld is sketched. If omitted redraw is true. If you want to sketch several generalized welds and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo sketch generalized weld gw: gw.Sketch();
|
SketchFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionSketches all of the flagged generalized welds in the model. The generalized welds will be sketched until you either call GeneralizedWeld.Unsketch(), GeneralizedWeld.UnsketchFlagged(), Model.UnsketchAll(), or delete the model |
Model that all the flagged generalized welds will be sketched in
Flag set on the generalized welds that you want to sketch
If model should be redrawn or not after the generalized welds are sketched. If omitted redraw is true. If you want to sketch flagged generalized welds several times and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo sketch all generalized welds flagged with flag in model m: GeneralizedWeld.SketchFlagged(m, flag);
|
Total(Model[Model], exists (optional)[boolean]) [static]DescriptionReturns the total number of generalized welds in the model. |
Model to get total for
true if only existing generalized welds should be counted. If false or omitted referenced but undefined generalized welds will also be included in the total.
Returnsnumber of generalized welds Return typeNumber |
ExampleTo get the total number of generalized welds in model m: var total = GeneralizedWeld.Total(m);
|
Unblank()DescriptionUnblanks the generalized weld |
No arguments
ReturnsNo return value |
ExampleTo unblank generalized weld gw: gw.Unblank();
|
UnblankAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionUnblanks all of the generalized welds in the model. |
Model that all generalized welds will be unblanked in
If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using View.Redraw().
ReturnsNo return value |
ExampleTo unblank all of the generalized welds in model m: GeneralizedWeld.UnblankAll(m);
|
UnblankFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionUnblanks all of the flagged generalized welds in the model. |
Model that the flagged generalized welds will be unblanked in
Flag set on the generalized welds that you want to unblank
If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using View.Redraw().
ReturnsNo return value |
ExampleTo unblank all of the generalized welds in model m flagged with f: GeneralizedWeld.UnblankFlagged(m, f);
|
UnflagAll(Model[Model], flag[Flag]) [static]DescriptionUnsets a defined flag on all of the generalized welds in the model. |
Model that the defined flag for all generalized welds will be unset in
Flag to unset on the generalized welds
ReturnsNo return value |
ExampleTo unset the flag f on all the generalized welds in model m: GeneralizedWeld.UnflagAll(m, f);
|
Unsketch(redraw (optional)[boolean])DescriptionUnsketches the generalized weld. |
If model should be redrawn or not after the generalized weld is unsketched. If omitted redraw is true. If you want to unsketch several generalized welds and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo unsketch generalized weld gw: gw.Unsketch();
|
UnsketchAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionUnsketches all generalized welds. |
Model that all generalized welds will be unblanked in
If model should be redrawn or not after the generalized welds are unsketched. If omitted redraw is true. If you want to unsketch several things and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo unsketch all generalized welds in model m: GeneralizedWeld.UnsketchAll(m);
|
UnsketchFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionUnsketches all flagged generalized welds in the model. |
Model that all generalized welds will be unsketched in
Flag set on the generalized welds that you want to unsketch
If model should be redrawn or not after the generalized welds are unsketched. If omitted redraw is true. If you want to unsketch several things and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo unsketch all generalized welds flagged with flag in model m: GeneralizedWeld.UnsketchAll(m, flag);
|
No arguments
ReturnsGeneralizedWeld object. Return typeGeneralizedWeld |
ExampleTo check if GeneralizedWeld property gw.example is a parameter by using the GeneralizedWeld.GetParameter() method: if (gw.ViewParameters().GetParameter(gw.example) ) do_something...
|
Warning(message[string], details (optional)[string])DescriptionAdds a warning for generalized weld. For more details on checking see the Check class. |
The warning message to give
An optional detailed warning message
ReturnsNo return value |
ExampleTo add a warning message "My custom warning" for generalized weld gw: gw.Warning("My custom warning");
|
Xrefs()DescriptionReturns the cross references for this generalized weld. |
No arguments
ReturnsXrefs object. Return typeXrefs |
ExampleTo get the cross references for generalized weld gw: var xrefs = gw.Xrefs();
|
toString()DescriptionCreates a string containing the gwld data in keyword format. Note that this contains the keyword header and the keyword cards. See also GeneralizedWeld.Keyword() and GeneralizedWeld.KeywordCards(). |
No arguments
Returnsstring Return typeString |
ExampleTo get data for generalized weld gw in keyword format var s = gw.toString();
|