The CoordinateSystem class gives you access to define coordinate 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 | Description |
| CoordinateSystem.NODES | Csys is *DEFINE_COORDINATE_NODES. |
| CoordinateSystem.SYSTEM | Csys is *DEFINE_COORDINATE_SYSTEM. |
| CoordinateSystem.VECTOR | Csys is *DEFINE_COORDINATE_VECTOR. |
| Name | Type | Description |
| cid | integer | CoordinateSystem number. Also see the label number. |
| cidl | integer | Optional local coordinate system to define the points in |
| dir | int | Axis defined by N1N2 |
| exists (read only) | logical | true if coordinate system exists, false if referred to but not defined. |
| flag | logical | Flag for updating local system each timestep |
| heading | string | CoordinateSystem heading |
| include | integer | The Include file number that the coordinate system is in. |
| label | integer | CoordinateSystem number. Also see the cid property which is an alternative name for this. |
| lx | real | X-coordinate of point on local X-axis |
| ly | real | Y-coordinate of point on local X-axis |
| lz | real | Z-coordinate of point on local X-axis |
| model (read only) | integer | The Model number that the coordinate system is in. |
| n1 | int | Node located at local origin |
| n2 | int | Node located along local (dir) axis |
| n3 | int | Node located in local plane determined by (dir) |
| nid | integer | Optional node id for rotation |
| option | constant | CoordinateSystem type (Can be CoordinateSystem.NODES, CoordinateSystem.SYSTEM or CoordinateSystem.VECTOR). |
| ox | real | X-coordinate of origin |
| oy | real | Y-coordinate of origin |
| oz | real | Z-coordinate of origin |
| px | real | X-coordinate of point in local X-Y plane |
| py | real | Y-coordinate of point in local X-Y plane |
| pz | real | Z-coordinate of point in local X-Y plane |
| vx | real | X-coordinate of local X-Y vector |
| vy | real | Y-coordinate of local X-Y vector |
| vz | real | Z-coordinate of local X-Y vector |
| xx | real | X-coordinate on local X-axis |
| xy | real | Y-coordinate on local X-axis |
| xz | real | Z-coordinate on local X-axis |
Constructornew CoordinateSystem(Model[Model], details[object])DescriptionCreate a new CoordinateSystem object for *DEFINE_COORDINATE_NODES. |
Model that csys will be created in
Details for creating the CoordinateSystem
Object has the following properties:
| Name | Type | Description |
| cid | integer | Label of CoordinateSystem |
| cl (optional) | array | Array of coordinates of point on local X-axis [lx, ly, lz] (for option CoordinateSystem.SYSTEM) |
| co (optional) | array | Array of coordinates of origin [ox, oy, oz] (for option CoordinateSystem.SYSTEM) |
| cp (optional) | array | Array of coordinates of point in local X-Y plane [px, py, pz] (for option CoordinateSystem.SYSTEM) |
| cv (optional) | array | Array of coordinates of local X-Y vector [vx, vy, vz] (for option CoordinateSystem.VECTOR) |
| cx (optional) | array | Array of coordinates on local X-axis [xx, xy, xz] (for option CoordinateSystem.VECTOR) |
| dir (optional) | integer | Axis defined by N1N2 (for option CoordinateSystem.NODES) |
| flag (optional) | boolean | Flag for local system update for each time step (for option CoordinateSystem.NODES) |
| heading (optional) | string | Title for the coordinate system |
| nid (optional) | integer | Optional Node ID for rotation (for option CoordinateSystem.VECTOR) |
| nodes (optional) | array | Array of Node IDs [n1, n2, n3] for the coordinate system (for option CoordinateSystem.NODES) |
| option | constant | CoordinateSystem type (can be CoordinateSystem.NODES, CoordinateSystem.SYSTEM or CoordinateSystem.VECTOR) |
ReturnsCoordinateSystem object Return typeCoordinateSystem |
new CoordinateSystem(Model[Model], option[constant], cid[integer], n1[integer], n2[integer], n3[integer], flag[boolean], dir[integer], heading (optional)[string]) [deprecated]This function is deprecated in version 21.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. DescriptionCreate a new CoordinateSystem object for *DEFINE_COORDINATE_NODES. |
Model that csys will be created in
Must be CoordinateSystem.NODES
CoordinateSystem number
Node located at origin
Node located along (DIR) axis
Node located in plane defined by (DIR)
Flag for local system update each time step
Axis defined by N1N2
Title for the csys
ReturnsCoordinateSystem object Return typeCoordinateSystem |
new CoordinateSystem(Model[Model], option[constant], cid[integer], ox[real], oy[real], oz[real], lx[real], ly[real], lz[real], px[real], py[real], pz[real], heading (optional)[string]) [deprecated]This function is deprecated in version 21.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. DescriptionCreate a new CoordinateSystem object for *DEFINE_COORDINATE_SYSTEM. |
Model that csys will be created in
Must be CoordinateSystem.SYSTEM
CoordinateSystem number
X-coordinate of origin
Y-coordinate of origin
Z-coordinate of origin
X-coordinate of point on local X-axis
Y-coordinate of point on local X-axis
Z-coordinate of point on local X-axis
X-coordinate of point in local X-Y plane
Y-coordinate of point in local X-Y plane
Z-coordinate of point in local X-Y plane
Title for the csys
ReturnsNo return value |
new CoordinateSystem(Model[Model], option[constant], cid[integer], xx[real], xy[real], xz[real], vx[real], vy[real], vz[real], nid (optional)[integer], heading (optional)[string]) [deprecated]This function is deprecated in version 21.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. DescriptionCreate a new CoordinateSystem object for *DEFINE_COORDINATE_VECTOR. |
Model that csys will be created in
Must be CoordinateSystem.VECTOR
CoordinateSystem number
X-coordinate on local X-axis
Y-coordinate on local X-axis
Z-coordinate on local X-axis
X-coordinate of local X-Y vector
Y-coordinate of local X-Y vector
Z-coordinate of local X-Z vector
Optional node id for rotation
Title for the csys
ReturnsNo return value |
Details of functionsAssociateComment(Comment[Comment])DescriptionAssociates a comment with a coordinate system. |
Comment that will be attached to the coordinate system
ReturnsNo return value |
ExampleTo associate comment c to the coordinate system c: c.AssociateComment(c);
|
Blank()DescriptionBlanks the coordinate system |
No arguments
ReturnsNo return value |
ExampleTo blank coordinate system c: c.Blank();
|
BlankAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionBlanks all of the coordinate systems in the model. |
Model that all coordinate systems 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 coordinate systems in model m: CoordinateSystem.BlankAll(m);
|
BlankFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionBlanks all of the flagged coordinate systems in the model. |
Model that all the flagged coordinate systems will be blanked in
Flag set on the coordinate systems 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 coordinate systems in model m flagged with f: CoordinateSystem.BlankFlagged(m, f);
|
Blanked()DescriptionChecks if the coordinate system is blanked or not. |
No arguments
Returnstrue if blanked, false if not. Return typeBoolean |
ExampleTo check if coordinate system c is blanked: if (c.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 coordinate system c: c.Browse();
|
ClearFlag(flag[Flag])DescriptionClears a flag on the coordinate system. |
Flag to clear on the coordinate system
ReturnsNo return value |
ExampleTo clear flag f for coordinate system c: c.ClearFlag(f);
|
Copy(range (optional)[boolean])DescriptionCopies the coordinate system. The target include of the copied coordinate system 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().
ReturnsCoordinateSystem object Return typeCoordinateSystem |
ExampleTo copy coordinate system c into coordinate system z: var z = c.Copy();
|
Create(Model[Model], modal (optional)[boolean]) [static]DescriptionStarts an interactive editing panel to create a coordinate system |
Model that the coordinate system 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.
ReturnsCoordinateSystem object (or null if not made). Return typeCoordinateSystem |
ExampleTo start creating a coordinate system in model m: var c = CoordinateSystem.Create(m);
|
DetachComment(Comment[Comment])DescriptionDetaches a comment from a coordinate system. |
Comment that will be detached from the coordinate system
ReturnsNo return value |
ExampleTo detach comment c from the coordinate system c: c.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 coordinate system c: c.Edit();
|
Error(message[string], details (optional)[string])DescriptionAdds an error for coordinate system. 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 coordinate system c: c.Error("My custom error");
|
First(Model[Model]) [static]DescriptionReturns the first coordinate system in the model. |
Model to get first coordinate system in
ReturnsCoordinateSystem object (or null if there are no coordinate systems in the model). Return typeCoordinateSystem |
ExampleTo get the first coordinate system in model m: var c = CoordinateSystem.First(m);
|
FirstFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the first free coordinate system label in the model. Also see CoordinateSystem.LastFreeLabel(), CoordinateSystem.NextFreeLabel() and Model.FirstFreeItemLabel(). |
Model to get first free coordinate system 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).
ReturnsCoordinateSystem label. Return typeNumber |
ExampleTo get the first free coordinate system label in model m: var label = CoordinateSystem.FirstFreeLabel(m);
|
FlagAll(Model[Model], flag[Flag]) [static]DescriptionFlags all of the coordinate systems in the model with a defined flag. |
Model that all coordinate systems will be flagged in
Flag to set on the coordinate systems
ReturnsNo return value |
ExampleTo flag all of the coordinate systems with flag f in model m: CoordinateSystem.FlagAll(m, f);
|
Flagged(flag[Flag])DescriptionChecks if the coordinate system is flagged or not. |
Flag to test on the coordinate system
Returnstrue if flagged, false if not. Return typeBoolean |
ExampleTo check if coordinate system c has flag f set on it: if (c.Flagged(f) ) do_something...
|
ForEach(Model[Model], func[function], extra (optional)[any]) [static]DescriptionCalls a function for each coordinate system in the model. |
Model that all coordinate systems are in
Function to call for each coordinate system
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 CoordinateSystem objects or properties for all of the coordinate systems in a model in PRIMER. If the optional property argument is not given then an array of CoordinateSystem objects is returned. If the property argument is given, that property value for each coordinate system is returned in the array instead of a CoordinateSystem object |
Model to get coordinate systems from
Name for property to get for all coordinate systems in the model
ReturnsArray of CoordinateSystem objects or properties Return typeArray |
GetComments()DescriptionExtracts the comments associated to a coordinate system. |
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 coordinate system c: var comm_array = c.GetComments();
|
GetFlagged(Model[Model], flag[Flag], property (optional)[string]) [static]DescriptionReturns an array of CoordinateSystem objects for all of the flagged coordinate systems in a model in PRIMER If the optional property argument is not given then an array of CoordinateSystem objects is returned. If the property argument is given, then that property value for each coordinate system is returned in the array instead of a CoordinateSystem object |
Model to get coordinate systems from
Flag set on the coordinate systems that you want to retrieve
Name for property to get for all flagged coordinate systems in the model
ReturnsArray of CoordinateSystem objects or properties Return typeArray |
GetFromID(Model[Model], number[integer]) [static]DescriptionReturns the CoordinateSystem object for a coordinate system ID. |
Model to find the coordinate system in
number of the coordinate system you want the CoordinateSystem object for
ReturnsCoordinateSystem object (or null if coordinate system does not exist). Return typeCoordinateSystem |
ExampleTo get the CoordinateSystem object for coordinate system 100 in model m var c = CoordinateSystem.GetFromID(m, 100);
|
GetParameter(prop[string])DescriptionChecks if a CoordinateSystem 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 CoordinateSystem.ViewParameters() method and 'method chaining' (see the examples below). |
coordinate system property to get parameter for
ReturnsParameter object if property is a parameter, null if not. Return typeParameter |
Keyword()DescriptionReturns the keyword for this csys (*DEFINE_COORDINATE). Note that a carriage return is not added. See also CoordinateSystem.KeywordCards() |
No arguments
Returnsstring containing the keyword. Return typeString |
ExampleTo get the keyword for csys m: var key = m.Keyword();
|
KeywordCards()DescriptionReturns the keyword cards for the csys. Note that a carriage return is not added. See also CoordinateSystem.Keyword() |
No arguments
Returnsstring containing the cards. Return typeString |
ExampleTo get the cards for csys c: var cards = v.KeywordCards();
|
Last(Model[Model]) [static]DescriptionReturns the last coordinate system in the model. |
Model to get last coordinate system in
ReturnsCoordinateSystem object (or null if there are no coordinate systems in the model). Return typeCoordinateSystem |
ExampleTo get the last coordinate system in model m: var c = CoordinateSystem.Last(m);
|
LastFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the last free coordinate system label in the model. Also see CoordinateSystem.FirstFreeLabel(), CoordinateSystem.NextFreeLabel() and see Model.LastFreeItemLabel() |
Model to get last free coordinate system 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.
ReturnsCoordinateSystem label. Return typeNumber |
ExampleTo get the last free coordinate system label in model m: var label = CoordinateSystem.LastFreeLabel(m);
|
Next()DescriptionReturns the next coordinate system in the model. |
No arguments
ReturnsCoordinateSystem object (or null if there are no more coordinate systems in the model). Return typeCoordinateSystem |
ExampleTo get the coordinate system in model m after coordinate system c: var c = c.Next();
|
NextFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the next free (highest+1) coordinate system label in the model. Also see CoordinateSystem.FirstFreeLabel(), CoordinateSystem.LastFreeLabel() and Model.NextFreeItemLabel() |
Model to get next free coordinate system 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).
ReturnsCoordinateSystem label. Return typeNumber |
ExampleTo get the next free coordinate system label in model m: var label = CoordinateSystem.NextFreeLabel(m);
|
Pick(prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean], button text (optional)[string]) [static]DescriptionAllows the user to pick a coordinate system. |
Text to display as a prompt to the user
If the argument is a Model then only coordinate systems from that model can be picked. If the argument is a Flag then only coordinate systems that are flagged with limit can be selected. If omitted, or null, any coordinate systems 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.
ReturnsCoordinateSystem object (or null if not picked) Return typeCoordinateSystem |
ExampleTo pick a coordinate system from model m giving the prompt 'Pick coordinate system from screen': var c = CoordinateSystem.Pick('Pick coordinate system from screen', m);
|
Previous()DescriptionReturns the previous coordinate system in the model. |
No arguments
ReturnsCoordinateSystem object (or null if there are no more coordinate systems in the model). Return typeCoordinateSystem |
ExampleTo get the coordinate system in model m before coordinate system c: var c = c.Previous();
|
RenumberAll(Model[Model], start[integer]) [static]DescriptionRenumbers all of the coordinate systems in the model. |
Model that all coordinate systems will be renumbered in
Start point for renumbering
ReturnsNo return value |
ExampleTo renumber all of the coordinate systems in model m, from 1000000: CoordinateSystem.RenumberAll(m, 1000000);
|
RenumberFlagged(Model[Model], flag[Flag], start[integer]) [static]DescriptionRenumbers all of the flagged coordinate systems in the model. |
Model that all the flagged coordinate systems will be renumbered in
Flag set on the coordinate systems that you want to renumber
Start point for renumbering
ReturnsNo return value |
ExampleTo renumber all of the coordinate systems in model m flagged with f, from 1000000: CoordinateSystem.RenumberFlagged(m, f, 1000000);
|
Select(flag[Flag], prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean]) [static]DescriptionAllows the user to select coordinate systems using standard PRIMER object menus. |
Flag to use when selecting coordinate systems
Text to display as a prompt to the user
If the argument is a Model then only coordinate systems from that model can be selected. If the argument is a Flag then only coordinate systems that are flagged with limit can be selected (limit should be different to flag). If omitted, or null, any coordinate systems 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 coordinate systems selected or null if menu cancelled Return typeNumber |
SetFlag(flag[Flag])DescriptionSets a flag on the coordinate system. |
Flag to set on the coordinate system
ReturnsNo return value |
ExampleTo set flag f for coordinate system c: c.SetFlag(f);
|
Sketch(redraw (optional)[boolean])DescriptionSketches the coordinate system. The coordinate system will be sketched until you either call CoordinateSystem.Unsketch(), CoordinateSystem.UnsketchAll(), Model.UnsketchAll(), or delete the model |
If model should be redrawn or not after the coordinate system is sketched. If omitted redraw is true. If you want to sketch several coordinate systems and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo sketch coordinate system c: c.Sketch();
|
SketchFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionSketches all of the flagged coordinate systems in the model. The coordinate systems will be sketched until you either call CoordinateSystem.Unsketch(), CoordinateSystem.UnsketchFlagged(), Model.UnsketchAll(), or delete the model |
Model that all the flagged coordinate systems will be sketched in
Flag set on the coordinate systems that you want to sketch
If model should be redrawn or not after the coordinate systems are sketched. If omitted redraw is true. If you want to sketch flagged coordinate systems several times and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo sketch all coordinate systems flagged with flag in model m: CoordinateSystem.SketchFlagged(m, flag);
|
Total(Model[Model], exists (optional)[boolean]) [static]DescriptionReturns the total number of coordinate systems in the model. |
Model to get total for
true if only existing coordinate systems should be counted. If false or omitted referenced but undefined coordinate systems will also be included in the total.
Returnsnumber of coordinate systems Return typeNumber |
ExampleTo get the total number of coordinate systems in model m: var total = CoordinateSystem.Total(m);
|
Unblank()DescriptionUnblanks the coordinate system |
No arguments
ReturnsNo return value |
ExampleTo unblank coordinate system c: c.Unblank();
|
UnblankAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionUnblanks all of the coordinate systems in the model. |
Model that all coordinate systems 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 coordinate systems in model m: CoordinateSystem.UnblankAll(m);
|
UnblankFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionUnblanks all of the flagged coordinate systems in the model. |
Model that the flagged coordinate systems will be unblanked in
Flag set on the coordinate systems 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 coordinate systems in model m flagged with f: CoordinateSystem.UnblankFlagged(m, f);
|
UnflagAll(Model[Model], flag[Flag]) [static]DescriptionUnsets a defined flag on all of the coordinate systems in the model. |
Model that the defined flag for all coordinate systems will be unset in
Flag to unset on the coordinate systems
ReturnsNo return value |
ExampleTo unset the flag f on all the coordinate systems in model m: CoordinateSystem.UnflagAll(m, f);
|
Unsketch(redraw (optional)[boolean])DescriptionUnsketches the coordinate system. |
If model should be redrawn or not after the coordinate system is unsketched. If omitted redraw is true. If you want to unsketch several coordinate systems and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo unsketch coordinate system c: c.Unsketch();
|
UnsketchAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionUnsketches all coordinate systems. |
Model that all coordinate systems will be unblanked in
If model should be redrawn or not after the coordinate systems 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 coordinate systems in model m: CoordinateSystem.UnsketchAll(m);
|
UnsketchFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionUnsketches all flagged coordinate systems in the model. |
Model that all coordinate systems will be unsketched in
Flag set on the coordinate systems that you want to unsketch
If model should be redrawn or not after the coordinate systems 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 coordinate systems flagged with flag in model m: CoordinateSystem.UnsketchAll(m, flag);
|
No arguments
ReturnsCoordinateSystem object. Return typeCoordinateSystem |
ExampleTo check if CoordinateSystem property c.example is a parameter by using the CoordinateSystem.GetParameter() method: if (c.ViewParameters().GetParameter(c.example) ) do_something...
|
Warning(message[string], details (optional)[string])DescriptionAdds a warning for coordinate system. 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 coordinate system c: c.Warning("My custom warning");
|
Xrefs()DescriptionReturns the cross references for this coordinate system. |
No arguments
ReturnsXrefs object. Return typeXrefs |
ExampleTo get the cross references for coordinate system c: var xrefs = c.Xrefs();
|
toString()DescriptionCreates a string containing the csys data in keyword format. Note that this contains the keyword header and the keyword cards. See also CoordinateSystem.Keyword() and CoordinateSystem.KeywordCards(). |
No arguments
Returnsstring Return typeString |
ExampleTo get data for csys c in keyword format var s = v.toString();
|