The Include class gives you access to include files in D3PLOT. More...
The D3PLOT 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:
Details of functionsFirst(model[Model]) [static]DescriptionReturns the first include file in the model (or null if there are no include files in the model) |
Model to get first include file in
ReturnsInclude object Return typeInclude |
ExampleTo get the first include file in model m: var i = Include.First(m);
|
GetFromID(model[Model], number[integer]) [static]DescriptionReturns the include file in the model with number (or null if it does not exist) |
Model to get include file in
The number for the include file in the model. Note that include file numbers start at 1. 0 is the main file.
ReturnsInclude object Return typeInclude |
ExampleTo get include file number 5 in model m: var i = Include.GetFromID(m, 5);
|
Last(model[Model]) [static]DescriptionReturns the last include file in the model (or null if there are no include files in the model) |
Model to get last include file in
ReturnsInclude object Return typeInclude |
ExampleTo get the last include file in model m: var i = Include.Last(m);
|
Next()DescriptionReturns the next include file in the model (or null if there is not one) |
No arguments
ReturnsInclude object Return typeInclude |
ExampleTo get the next include file after include i: var i = i.Next();
|
Previous()DescriptionReturns the previous include file in the model (or null if there is not one) |
No arguments
ReturnsInclude object Return typeInclude |
ExampleTo get the previous include file before include i: var i = i.Previous();
|
Total(model[Model]) [static]DescriptionReturns the total number of include files in the model |
Model to get total in
ReturnsNumber of includes Return typeint |
ExampleTo get the number of include files in model m: var t = Include.Total(m);
|