The Section class gives you access to section 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 |
| aafac | real | ALE advection factor(SHELL, SOLID) |
| aet | integer | Ambient element type (ALE1D, ALE2D, SOLID) |
| afac | real | Smoothing weight factor - Simple average (SHELL, SOLID) |
| ale | logical | If _ALE option is set. Can be true or false (SHELL, SOLID) |
| aleform | integer | ALE formulation (ALE1D, ALE2D) |
| baselm | integer | Base element type for XFEM (SHELL) |
| bfac | real | Smoothing weight factor - Volume weighting (SHELL, SOLID) |
| cfac | real | Smoothing weight factor - Isoparametric (SHELL, SOLID) |
| cmid | integer | Cohesive material (SHELL, SOLID) |
| cohthk | real | Cohesive thickness (SOLID) |
| colour | Colour | The colour of the section |
| dfac | real | Smoothing weight factor - Equipotential (SHELL, SOLID) |
| domint | integer | Domain integration in XFEM (SHELL) |
| dr | real | PERI normalized horizon size (SOLID) |
| dx | real | Normalized dilation parameter of kernel function in X (SHELL, SOLID) |
| dy | real | Normalized dilation parameter of kernel function in Y (SHELL, SOLID) |
| dz | real | Normalized dilation parameter of kernel function in Z (SOLID) |
| efac | real | Smoothing weight factor - Equilibrium (SHELL) |
| efg | logical | If _EFG option is set. Can be true or false (SHELL, SOLID) |
| elform | integer | Element formulation (ALE1D, ALE2D, BEAM, IGA_SHELL, IGA_SOLID, SHELL, SOLID, TSHELL) |
| end | real | End time for smoothing (SHELL, SOLID) |
| exists (read only) | logical | true if section exists, false if referred to but not defined. |
| failcr | integer | Different failure criteria (SHELL) |
| fs | real | SPG Failure strain if IDAM = 1 (SOLID) |
| icomp | integer | Composite flag (IGA_SHELL, IGA_SOLID, SHELL, TSHELL) |
| idam | integer | SPG Option of damage mechanism (SOLID) |
| idila | integer | Normalized dilation parameter definition (SOLID) |
| idim | integer | Domain integration method (SOLID) |
| iebt | integer | Essential boundary condition treatment (SOLID) |
| ihgf | integer | Flag for using hourglass stabilization (SHELL, SOLID) |
| iloc | integer | Coordinate system option (SHELL) |
| include | integer | The Include file number that the section is in. |
| ispline | integer | EFG kernel function definition (SHELL, SOLID) |
| itaj | integer | Flag for setting up finite element matrices (SHELL, SOLID) |
| itb | integer | SPG Stabilization flag (SOLID) |
| ithelfm | integer | THERMAL shell formulation (SHELL) |
| iunf | integer | Flag for using nodal fibre vectors (SHELL) |
| kernel | integer | SPG kernel type approximation (SOLID) |
| label | integer or string | Section ID (all types) or character label. Also see the secid property which is an alternative name for this. |
| lmc | integer | Number of property parameters (SHELL, SOLID) |
| lprint | integer | Debug printout option (SHELL) |
| lscale | real | SPG length scale for displacement regularisation (SOLID) |
| misc | logical | If _MISC option is set. Can be true or false (SHELL, SOLID) |
| model (read only) | integer | The Model number that the section is in. |
| nhsv | integer | Number of history variables (SHELL, SOLID) |
| nip | integer | Number of integration points (IGA_SHELL, IGA_SOLID, SHELL, SOLID, TSHELL) |
| nipp | integer | Number of in-plane integration points (SHELL) |
| nxdof | integer | Number of extra degrees of freedom per node (SHELL, SOLID) |
| peri | logical | If _PERI option is set. Can be true or false (SOLID) |
| propcr | integer | Not used (SHELL) |
| propt | real | Printout option (SHELL, TSHELL) |
| ptype | integer | PERI peridynamics formulation (SOLID) |
| qr | real | Quadrature rule (BEAM, IGA_SHELL, IGA_SOLID, SHELL, TSHELL) |
| secid | integer or string | Section ID (all types) or character label. Also see the label property which is an alternative name for this. |
| shrf | real | Shear correction factor (BEAM, IGA_SHELL, IGA_SOLID, SHELL, TSHELL) |
| smstep | integer | SPG Interval of timestep to conduction displ regularisation (SOLID) |
| spg | logical | If _SPG option is set. Can be true or false (SOLID) |
| start | real | Time imposed SPH approximation is activated (SPH) or Start time for smoothing (SHELL, SOLID) |
| stretch | real | SPG stretching parameter if IDAM = 1 (SOLID) |
| swtime | real | SPG Time to switch from updated Lagrangian to Eulerian kernel (SOLID) |
| thermal | logical | If _THERMAL option is set. Can be true or false (SHELL) |
| thick | real | Thickness (ALE1D, SEATBELT) |
| title | string | Section title (all types) |
| toldef | real | Deformation tolerance (SOLID) |
| transparency | integer | The transparency of the section (0-100) 0% is opaque, 100% is transparent. |
| type (read only) | constant | Section type. Can be Section.ALE1D, Section.ALE2D, Section.BEAM, Section.DISCRETE, Section.IGA_SHELL, Section.IGA_SOLID, Section.POINT_SOURCE, Section.SEATBELT, Section.SHELL, Section.SOLID, Section.SPH or Section.TSHELL |
| xfem | logical | If _THERMAL option is set. Can be true or false (SHELL) |
| Name | Type | Description |
| irl | integer | Lamina integration rule |
| nloc | real | Location of reference surface |
| t | real | Shell thickness |
| Name | Type | Description |
| ir | integer | Integration rule |
| Name | Type | Description |
| area | real | Optional cross sectional area used in contact |
| Name | Type | Description |
| edgset | integer | Edge node set |
| idof | real | Thickness field value |
| marea | real | Non structural mass per unit area |
| nloc | integer | Location of reference surface |
| setyp | integer | 2D solid element type |
| t1 | real | Thickness at Node 1 |
| t2 | real | Thickness at Node 2 |
| t3 | real | Thickness at Node 3 |
| t4 | real | Thickness at Node 4 |
| Name | Type | Description |
| tshear | integer | Flag for transverse shear strain or stress distribution |
Detailed DescriptionThe Section class allows you to create, modify, edit and manipulate section cards. See the documentation below for more details. |
Constructornew Section(Model[Model], secid[integer or string], type[constant], title (optional)[string])DescriptionCreate a new Section object. |
Model that section will be created in
Section number or character label
Section type. Can be Section.BEAM, Section.DISCRETE, Section.IGA_SHELL, Section.IGA_SOLID, Section.POINT_SOURCE, Section.SEATBELT, Section.SHELL, Section.SOLID, Section.SPH or Section.TSHELL
Title for the section
ReturnsSection object Return typeSection |
ExampleTo create a new section, type shell, called 'Example' in model m with label 100: var s = new Section(m, 100, Section.SHELL, 'Example');
|
Details of functionsAssociateComment(Comment[Comment])DescriptionAssociates a comment with a section. |
Comment that will be attached to the section
ReturnsNo return value |
ExampleTo associate comment c to the section s: s.AssociateComment(c);
|
Blank()DescriptionBlanks the section |
No arguments
ReturnsNo return value |
ExampleTo blank section s: s.Blank();
|
BlankAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionBlanks all of the sections in the model. |
Model that all sections 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 sections in model m: Section.BlankAll(m);
|
BlankFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionBlanks all of the flagged sections in the model. |
Model that all the flagged sections will be blanked in
Flag set on the sections 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 sections in model m flagged with f: Section.BlankFlagged(m, f);
|
Blanked()DescriptionChecks if the section is blanked or not. |
No arguments
Returnstrue if blanked, false if not. Return typeBoolean |
ExampleTo check if section s is blanked: if (s.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 section s: s.Browse();
|
ClearFlag(flag[Flag])DescriptionClears a flag on the section. |
Flag to clear on the section
ReturnsNo return value |
ExampleTo clear flag f for section s: s.ClearFlag(f);
|
Copy(range (optional)[boolean])DescriptionCopies the section. The target include of the copied section 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().
ReturnsSection object Return typeSection |
ExampleTo copy section s into section z: var z = s.Copy();
|
Create(Model[Model], modal (optional)[boolean]) [static]DescriptionStarts an interactive editing panel to create a section |
Model that the section 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.
ReturnsSection object (or null if not made). Return typeSection |
ExampleTo start creating a section in model m: var s = Section.Create(m);
|
DetachComment(Comment[Comment])DescriptionDetaches a comment from a section. |
Comment that will be detached from the section
ReturnsNo return value |
ExampleTo detach comment c from the section s: s.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 section s: s.Edit();
|
Error(message[string], details (optional)[string])DescriptionAdds an error for section. 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 section s: s.Error("My custom error");
|
ExtractColour()DescriptionExtracts the actual colour used for section. |
No arguments
Returnscolour value (integer) Return typeNumber |
ExampleTo return the colour used for drawing section s: var colour = s.ExtractColour();
|
First(Model[Model]) [static]DescriptionReturns the first section in the model. |
Model to get first section in
ReturnsSection object (or null if there are no sections in the model). Return typeSection |
ExampleTo get the first section in model m: var s = Section.First(m);
|
FirstFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the first free section label in the model. Also see Section.LastFreeLabel(), Section.NextFreeLabel() and Model.FirstFreeItemLabel(). |
Model to get first free section 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).
ReturnsSection label. Return typeNumber |
ExampleTo get the first free section label in model m: var label = Section.FirstFreeLabel(m);
|
FlagAll(Model[Model], flag[Flag]) [static]DescriptionFlags all of the sections in the model with a defined flag. |
Model that all sections will be flagged in
Flag to set on the sections
ReturnsNo return value |
ExampleTo flag all of the sections with flag f in model m: Section.FlagAll(m, f);
|
Flagged(flag[Flag])DescriptionChecks if the section is flagged or not. |
Flag to test on the section
Returnstrue if flagged, false if not. Return typeBoolean |
ExampleTo check if section s has flag f set on it: if (s.Flagged(f) ) do_something...
|
ForEach(Model[Model], func[function], extra (optional)[any]) [static]DescriptionCalls a function for each section in the model. |
Model that all sections are in
Function to call for each section
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 Section objects or properties for all of the sections in a model in PRIMER. If the optional property argument is not given then an array of Section objects is returned. If the property argument is given, that property value for each section is returned in the array instead of a Section object |
Model to get sections from
Name for property to get for all sections in the model
ReturnsArray of Section objects or properties Return typeArray |
GetBetaData(ipt[integer])DescriptionReturns the beta angle data for an integration point in *SECTION_IGA_SHELL, *SECTION_SHELL or *SECTION_TSHELL. |
The integration point you want the data for. Note that integration points start at 0, not 1.
Returnsreal Return typeNumber |
ExampleTo get the beta angle for the 3rd integration point for section shell s: if (s.icomp && s.nip >= 3)
{
var beta = s.GetBetaData(2);
}
|
GetComments()DescriptionExtracts the comments associated to a section. |
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 section s: var comm_array = s.GetComments();
|
GetFlagged(Model[Model], flag[Flag], property (optional)[string]) [static]DescriptionReturns an array of Section objects for all of the flagged sections in a model in PRIMER If the optional property argument is not given then an array of Section objects is returned. If the property argument is given, then that property value for each section is returned in the array instead of a Section object |
Model to get sections from
Flag set on the sections that you want to retrieve
Name for property to get for all flagged sections in the model
ReturnsArray of Section objects or properties Return typeArray |
GetFromID(Model[Model], number[integer]) [static]DescriptionReturns the Section object for a section ID. |
Model to find the section in
number of the section you want the Section object for
ReturnsSection object (or null if section does not exist). Return typeSection |
ExampleTo get the Section object for section 100 in model m var s = Section.GetFromID(m, 100);
|
GetLmcData(i[integer])DescriptionReturns the LMC property parameter for *SECTION_SHELL or *SECTION_SOLID. |
The point you want the parameter for. Note that points start at 0, not 1.
Returnsreal Return typeNumber |
ExampleTo get the 3rd LMC parameter for section shell s: if (s.lmc >= 3)
{
var p = s.GetLmcData(2);
}
|
GetParameter(prop[string])DescriptionChecks if a Section 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 Section.ViewParameters() method and 'method chaining' (see the examples below). |
section property to get parameter for
ReturnsParameter object if property is a parameter, null if not. Return typeParameter |
GetPointData(ipt[integer])DescriptionReturns the point data for a single point in *SECTION_POINT_SOURCE. |
The point you want the data for. Note that integration points start at 0, not 1.
ReturnsAn array of numbers containing the node id, vector id and orifice area. Return typeNumber |
ExampleTo get the data for the 3rd point for section point source s: if (s.points >= 3)
{
var pt_data = s.GetPointData(3);
}
|
GetUserData(ipt[integer])DescriptionReturns the user defined data for an integration point in *SECTION_SHELL and *SECTION_SOLID. |
The integration point you want the data for. Note that integration points start at 0, not 1.
ReturnsAn array containing the data (XI, ETA, WGT for *SECTION_SHELL, XI, ETA, ZETA, WGT for *SECTION_SOLID). Return typeArray |
ExampleTo get the data for the 3rd integration point for section shell s: if (s.nipp >= 3)
{
var user_data = s.GetUserData(2);
}
|
Keyword()DescriptionReturns the keyword for this section (*SECT, *SECT_SCALAR or *SECT_SCALAR_VALUE). Note that a carriage return is not added. See also Section.KeywordCards() |
No arguments
Returnsstring containing the keyword. Return typeString |
ExampleTo get the keyword for section s: var key = s.Keyword();
|
KeywordCards()DescriptionReturns the keyword cards for the section. Note that a carriage return is not added. See also Section.Keyword() |
No arguments
Returnsstring containing the cards. Return typeString |
ExampleTo get the cards for section s: var cards = n.KeywordCards();
|
Last(Model[Model]) [static]DescriptionReturns the last section in the model. |
Model to get last section in
ReturnsSection object (or null if there are no sections in the model). Return typeSection |
ExampleTo get the last section in model m: var s = Section.Last(m);
|
LastFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the last free section label in the model. Also see Section.FirstFreeLabel(), Section.NextFreeLabel() and see Model.LastFreeItemLabel() |
Model to get last free section 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.
ReturnsSection label. Return typeNumber |
ExampleTo get the last free section label in model m: var label = Section.LastFreeLabel(m);
|
Next()DescriptionReturns the next section in the model. |
No arguments
ReturnsSection object (or null if there are no more sections in the model). Return typeSection |
ExampleTo get the section in model m after section s: var s = s.Next();
|
NextFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the next free (highest+1) section label in the model. Also see Section.FirstFreeLabel(), Section.LastFreeLabel() and Model.NextFreeItemLabel() |
Model to get next free section 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).
ReturnsSection label. Return typeNumber |
ExampleTo get the next free section label in model m: var label = Section.NextFreeLabel(m);
|
Pick(prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean], button text (optional)[string]) [static]DescriptionAllows the user to pick a section. |
Text to display as a prompt to the user
If the argument is a Model then only sections from that model can be picked. If the argument is a Flag then only sections that are flagged with limit can be selected. If omitted, or null, any sections 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.
ReturnsSection object (or null if not picked) Return typeSection |
ExampleTo pick a section from model m giving the prompt 'Pick section from screen': var s = Section.Pick('Pick section from screen', m);
|
Previous()DescriptionReturns the previous section in the model. |
No arguments
ReturnsSection object (or null if there are no more sections in the model). Return typeSection |
ExampleTo get the section in model m before section s: var s = s.Previous();
|
RenumberAll(Model[Model], start[integer]) [static]DescriptionRenumbers all of the sections in the model. |
Model that all sections will be renumbered in
Start point for renumbering
ReturnsNo return value |
ExampleTo renumber all of the sections in model m, from 1000000: Section.RenumberAll(m, 1000000);
|
RenumberFlagged(Model[Model], flag[Flag], start[integer]) [static]DescriptionRenumbers all of the flagged sections in the model. |
Model that all the flagged sections will be renumbered in
Flag set on the sections that you want to renumber
Start point for renumbering
ReturnsNo return value |
ExampleTo renumber all of the sections in model m flagged with f, from 1000000: Section.RenumberFlagged(m, f, 1000000);
|
Select(flag[Flag], prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean]) [static]DescriptionAllows the user to select sections using standard PRIMER object menus. |
Flag to use when selecting sections
Text to display as a prompt to the user
If the argument is a Model then only sections from that model can be selected. If the argument is a Flag then only sections that are flagged with limit can be selected (limit should be different to flag). If omitted, or null, any sections 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 sections selected or null if menu cancelled Return typeNumber |
SetBetaData(ipt[integer], beta[real])DescriptionSets the beta angle for an integration point in *SECTION_IGA_SHELL, *SECTION_SHELL or *SECTION_TSHELL. |
The integration point you want to set the data for. Note that integration points start at 0, not 1.
Beta angle for the integration point.
ReturnsNo return value. |
ExampleTo set the beta angle for the 3rd integration point to 45, for section s: s.SetBetaData(2, 45);
|
SetFlag(flag[Flag])DescriptionSets a flag on the section. |
Flag to set on the section
ReturnsNo return value |
ExampleTo set flag f for section s: s.SetFlag(f);
|
SetLmcData(ipt[integer], lmc[real])DescriptionSets the lmc parameter for a point in *SECTION_SHELL or *SECTION_SOLID. |
The point you want to set the data for. Note that points start at 0, not 1.
Lmc parameter for the point.
ReturnsNo return value. |
ExampleTo set the 3rd lmc point to 0.1, for section s: s.SetLmcData(2, 0.1);
|
SetPointData(ipt[integer], nodeid[integer], vecid[integer], area[real])DescriptionSets the data for a single point in *SECTION_POINT_SOURCE. |
The point you want to set the data for. Note that integration points start at 0, not 1.
Node ID for the point.
Vector ID for the point.
Orifice area for the point.
ReturnsNo return value. |
ExampleTo set the data for the 3rd point to node 1, vector 10 and area 0.2, for section s: s.SetPointData(2, 1, 10, 0.2);
|
The integration point you want to set the data for. Note that integration points start at 0, not 1.
First isoparametric coordinate.
Second isoparametric coordinate.
Second isoparametric coordinate (SOLID) or
Isoparametric weight (SHELL)
Isoparametric weight (SOLID)
ReturnsNo return value. |
ExampleTo set the user data for the 3rd integration point to xi 0.5, eta 0.5, zeta -0.5, wgt 0.125, for section solid s: s.SetUserData(2, 0.5, 0.5, -0.5, 0.125);
|
Sketch(redraw (optional)[boolean])DescriptionSketches the section. The section will be sketched until you either call Section.Unsketch(), Section.UnsketchAll(), Model.UnsketchAll(), or delete the model |
If model should be redrawn or not after the section is sketched. If omitted redraw is true. If you want to sketch several sections and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo sketch section s: s.Sketch();
|
SketchFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionSketches all of the flagged sections in the model. The sections will be sketched until you either call Section.Unsketch(), Section.UnsketchFlagged(), Model.UnsketchAll(), or delete the model |
Model that all the flagged sections will be sketched in
Flag set on the sections that you want to sketch
If model should be redrawn or not after the sections are sketched. If omitted redraw is true. If you want to sketch flagged sections several times and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo sketch all sections flagged with flag in model m: Section.SketchFlagged(m, flag);
|
Total(Model[Model], exists (optional)[boolean]) [static]DescriptionReturns the total number of sections in the model. |
Model to get total for
true if only existing sections should be counted. If false or omitted referenced but undefined sections will also be included in the total.
Returnsnumber of sections Return typeNumber |
ExampleTo get the total number of sections in model m: var total = Section.Total(m);
|
Unblank()DescriptionUnblanks the section |
No arguments
ReturnsNo return value |
ExampleTo unblank section s: s.Unblank();
|
UnblankAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionUnblanks all of the sections in the model. |
Model that all sections 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 sections in model m: Section.UnblankAll(m);
|
UnblankFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionUnblanks all of the flagged sections in the model. |
Model that the flagged sections will be unblanked in
Flag set on the sections 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 sections in model m flagged with f: Section.UnblankFlagged(m, f);
|
UnflagAll(Model[Model], flag[Flag]) [static]DescriptionUnsets a defined flag on all of the sections in the model. |
Model that the defined flag for all sections will be unset in
Flag to unset on the sections
ReturnsNo return value |
ExampleTo unset the flag f on all the sections in model m: Section.UnflagAll(m, f);
|
Unsketch(redraw (optional)[boolean])DescriptionUnsketches the section. |
If model should be redrawn or not after the section is unsketched. If omitted redraw is true. If you want to unsketch several sections and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo unsketch section s: s.Unsketch();
|
UnsketchAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionUnsketches all sections. |
Model that all sections will be unblanked in
If model should be redrawn or not after the sections 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 sections in model m: Section.UnsketchAll(m);
|
UnsketchFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionUnsketches all flagged sections in the model. |
Model that all sections will be unsketched in
Flag set on the sections that you want to unsketch
If model should be redrawn or not after the sections 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 sections flagged with flag in model m: Section.UnsketchAll(m, flag);
|
No arguments
ReturnsSection object. Return typeSection |
ExampleTo check if Section property s.example is a parameter by using the Section.GetParameter() method: if (s.ViewParameters().GetParameter(s.example) ) do_something...
|
Warning(message[string], details (optional)[string])DescriptionAdds a warning for section. 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 section s: s.Warning("My custom warning");
|
Xrefs()DescriptionReturns the cross references for this section. |
No arguments
ReturnsXrefs object. Return typeXrefs |
ExampleTo get the cross references for section s: var xrefs = s.Xrefs();
|
toString()DescriptionCreates a string containing the section data in keyword format. Note that this contains the keyword header and the keyword cards. See also Section.Keyword() and Section.KeywordCards(). |
No arguments
Returnsstring Return typeString |
ExampleTo get data for section s in keyword format var str = s.toString();
|