FormIt Plugin API
v23.0.0 (2023.0.0)
|
Functions | |
json | FormIt.Levels.AddLevels (nHistoryID, numLevels, startElevation, deltaElevation) |
json | FormIt.Levels.AutoRenameLevels (nHistoryID) |
Renames all levels with a default name according to the elevation order. More... | |
json | FormIt.Levels.ChangeLevelElevation (nHistoryID, levelID, newElevation) |
Change the given level's elevation. More... | |
json | FormIt.Levels.ChangeLevelName (levelID, levelName) |
Change the given level's name. More... | |
json | FormIt.Levels.CreateDefaultLevels (nHistoryID) |
Create default levels in the given History. More... | |
json | FormIt.Levels.DeleteLevels (nHistoryID, aLevelIDs) |
Delete the given levels in the given History. More... | |
json | FormIt.Levels.GetDefaultLevelHeight () |
Returns the default level height. More... | |
json | FormIt.Levels.GetLevels (nHistoryID, sortByElevation) |
Returns a vector of all levels within a history. More... | |
json | FormIt.Levels.GetLevelsVisible () |
Returns if levels are visible. More... | |
json | FormIt.Levels.GetNumLevels (nHistoryID) |
Returns the number of levels in the given history. More... | |
json | FormIt.Levels.GetMinLevelElevation (nHistoryID) |
Returns the elevation of the lowest level in the given history. More... | |
json | FormIt.Levels.GetMaxLevelElevation (nHistoryID) |
Returns the elevation of the highest level in the given history. More... | |
json | FormIt.Levels.GetLevelData (nHistoryID, levelID) |
GetLevelData. More... | |
json | FormIt.Levels.GetLevelsData (nHistoryID, sortByElevation) |
Returns a vector of LevelData for all levels within a history. More... | |
json | FormIt.Levels.GetLevelIDsFromSelectedObjects (nHistoryID) |
Returns the union of levels of each object and the Result (Success). More... | |
json | FormIt.Levels.HasLevelsInProject (checkVisibleOnly) |
Checks if there are any objects in the main history that have levels applied. More... | |
json | FormIt.Levels.IsExistingLevel (nHistoryID, levelName) |
Returns true if the given Level name exists. More... | |
json | FormIt.Levels.IsExistingLevelByElevation (nHistoryId, elevation) |
json | FormIt.Levels.IsValidLevelDeltaElevation (nHistoryID, deltaElevationString, numLevels) |
Checks if the string containing the delta elevation is valid. More... | |
json | FormIt.Levels.IsValidLevelElevation (nHistoryID, levelId, elevationString) |
Checks if the string containing the elevation is valid for a level. More... | |
json | FormIt.Levels.IsValidLevelName (levelID, levelName) |
Returns true is the given level name is valid. More... | |
json | FormIt.Levels.IsValidNumberOfLevelsToAdd (nHistoryID, numLevelsString, deltaElevation) |
Checks if the string containing the number of levels is valid. More... | |
json | FormIt.Levels.SetLevelsToSelectedObjects (nHistoryID, aLevelList) |
Set the given levels to be the levels for all currently selected objects. More... | |
json | FormIt.Levels.SetLevelsVisible (aVisible) |
Sets levels visibility. More... | |
json | FormIt.Levels.SetReportAreaByLevelsOnSelection (bON) |
SetReportAreaByLevelsOnSelection. More... | |
json | FormIt.Levels.GetAreaForObjects (nHistoryID, aLevelId, aObjectIds) |
GetAreaForObjects. More... | |
json FormIt.Levels.AddLevels | ( | nHistoryID | , |
numLevels | , | ||
startElevation | , | ||
deltaElevation | |||
) |
json FormIt.Levels.AutoRenameLevels | ( | nHistoryID | ) |
Renames all levels with a default name according to the elevation order.
[in] | historyID | int |
[in] | nHistoryID | int |
json FormIt.Levels.ChangeLevelElevation | ( | nHistoryID | , |
levelID | , | ||
newElevation | |||
) |
Change the given level's elevation.
[in] | historyID | int |
[in] | levelID | int |
[in] | newElevation | double |
[in] | nHistoryID | int |
json FormIt.Levels.ChangeLevelName | ( | levelID | , |
levelName | |||
) |
Change the given level's name.
[in] | levelID | int |
[in] | levelName | String |
json FormIt.Levels.CreateDefaultLevels | ( | nHistoryID | ) |
Create default levels in the given History.
[in] | historyID | int |
[in] | nHistoryID | int |
json FormIt.Levels.DeleteLevels | ( | nHistoryID | , |
aLevelIDs | |||
) |
Delete the given levels in the given History.
[in] | historyID | int |
[in] | aLevelIDs | Array of int |
[in] | nHistoryID | int |
json FormIt.Levels.GetAreaForObjects | ( | nHistoryID | , |
aLevelId | , | ||
aObjectIds | |||
) |
GetAreaForObjects.
[in] | nHistoryID | |
[in] | aLevelId | |
[in] | aObjectIds |
json FormIt.Levels.GetDefaultLevelHeight | ( | ) |
Returns the default level height.
json FormIt.Levels.GetLevelData | ( | nHistoryID | , |
levelID | |||
) |
GetLevelData.
[in] | historyID | int |
[in] | levelID | int |
[in] | nHistoryID | int |
json FormIt.Levels.GetLevelIDsFromSelectedObjects | ( | nHistoryID | ) |
Returns the union of levels of each object and the Result (Success).
[in] | historyID | int |
[in] | nHistoryID | int |
json FormIt.Levels.GetLevels | ( | nHistoryID | , |
sortByElevation | |||
) |
Returns a vector of all levels within a history.
[in] | historyID | int |
[in] | sortByElevation | bool - set to true to sort the levels by elevation in ascending order |
[in] | nHistoryID | int |
json FormIt.Levels.GetLevelsData | ( | nHistoryID | , |
sortByElevation | |||
) |
Returns a vector of LevelData for all levels within a history.
[in] | historyID | int |
[in] | sortByElevation | bool - set to true to sort the levels by elevation in ascending order |
[in] | nHistoryID | int |
json FormIt.Levels.GetLevelsVisible | ( | ) |
Returns if levels are visible.
json FormIt.Levels.GetMaxLevelElevation | ( | nHistoryID | ) |
Returns the elevation of the highest level in the given history.
[in] | historyID | int |
[in] | nHistoryID | int |
json FormIt.Levels.GetMinLevelElevation | ( | nHistoryID | ) |
Returns the elevation of the lowest level in the given history.
[in] | historyID | int |
[in] | nHistoryID | int |
json FormIt.Levels.GetNumLevels | ( | nHistoryID | ) |
Returns the number of levels in the given history.
[in] | historyID | int |
[in] | nHistoryID | int |
json FormIt.Levels.HasLevelsInProject | ( | checkVisibleOnly | ) |
Checks if there are any objects in the main history that have levels applied.
If checkVisibleOnly is true, only visible objects are checked. Returns true, if there is at least one object with at least one level
[in] | checkVisibleOnly | bool |
json FormIt.Levels.IsExistingLevel | ( | nHistoryID | , |
levelName | |||
) |
Returns true if the given Level name exists.
[in] | nHistoryID | int |
[in] | levelName | String |
json FormIt.Levels.IsExistingLevelByElevation | ( | nHistoryId | , |
elevation | |||
) |
json FormIt.Levels.IsValidLevelDeltaElevation | ( | nHistoryID | , |
deltaElevationString | , | ||
numLevels | |||
) |
Checks if the string containing the delta elevation is valid.
"numLevels" indicates the number of levels intended to be added. Returns Result (Success) and the elevation. Also returns an error string that can be posted in the UI if the string to value conversion fails.
[in] | nHistoryID | int |
[in] | deltaElevationString | String |
[in] | numLevels | int |
json FormIt.Levels.IsValidLevelElevation | ( | nHistoryID | , |
levelId | , | ||
elevationString | |||
) |
Checks if the string containing the elevation is valid for a level.
Returns success and the elevation. Also returns an error string that can be posted in the UI, if the string to value conversion fails.
[in] | nHistoryID | int |
[in] | levelId | int |
[in] | elevationString | String |
json FormIt.Levels.IsValidLevelName | ( | levelID | , |
levelName | |||
) |
Returns true is the given level name is valid.
[in] | levelID | int |
[in] | levelName | String |
json FormIt.Levels.IsValidNumberOfLevelsToAdd | ( | nHistoryID | , |
numLevelsString | , | ||
deltaElevation | |||
) |
Checks if the string containing the number of levels is valid.
"deltaElevation" indicates the spacing between the levels intended to be added. Returns success and the number of levels. Also returns an error string that can be posted in the UI, if the string to value conversion fails.
[in] | nHistoryID | int |
[in] | numLevelsString | String |
[in] | deltaElevation | double |
json FormIt.Levels.SetLevelsToSelectedObjects | ( | nHistoryID | , |
aLevelList | |||
) |
Set the given levels to be the levels for all currently selected objects.
[in] | nHistoryID | int |
[in] | aLevelList | Array of int |
json FormIt.Levels.SetLevelsVisible | ( | aVisible | ) |
Sets levels visibility.
[in] | aVisible | bool |
json FormIt.Levels.SetReportAreaByLevelsOnSelection | ( | bON | ) |
SetReportAreaByLevelsOnSelection.
[in] | bON | bool |