![]() |
FormIt Plugin API
v23.0.0 (2023.0.0)
|
Functions | |
| json | FormIt.Model.GetHistoryID () |
| Request the id of the history being edited - app supplied. More... | |
| json | FormIt.Model.GetMemorySize (bCollapsedHistoryWithLiveObjsOnly) |
| Get the memory size of the History of the main Model. More... | |
| json | FormIt.Model.GetUnitTypeCurrent () |
| Get the UnitType of the current Model. More... | |
| json | FormIt.Model.GetUnitType () |
| !!!!!!!!!!!!!!! Deprecated: Use GetUnitTypeCurrent !!!!!!!!!!!!!!! Get the UnitType of the current Model. More... | |
| json | FormIt.Model.SetUnitTypeCurrent (unitType) |
| Set the UnitType of the current Model. More... | |
| json | FormIt.Model.ImperialLengthToCurrentUnitLength (length) |
| Takes imperial value in feet and translates to the current unit system. More... | |
| json | FormIt.Model.SetUnitType (unitType) |
| !!!!!!!!!!!!!!! Deprecated: Use GetUnitTypeCurrent !!!!!!!!!!!!!!! Set the UnitType of the current Model. More... | |
| json | FormIt.Model.IsImperialUnitType (unitType) |
| Return true if the current unit type in the model is imperial. More... | |
| json | FormIt.Model.GetGroupHistoryName (nHistoryID) |
| Get the name for the given history. More... | |
| json | FormIt.Model.SetGroupHistoryName (nHistoryID, sHistoryName) |
| Set the name for the given history. More... | |
| json | FormIt.Model.IsModified () |
| IsModified returns true if the Model has been modified. More... | |
| json | FormIt.Model.ResetModified () |
| ResetModified sets the Model to unmodified. More... | |
| json | FormIt.Model.SetCurveAccuracyOrCountCurrent (accuracyORcount) |
| Set the curve accuracy. More... | |
| json | FormIt.Model.GetCurveAccuracyOrCountCurrent () |
| Get the curve accuracy. More... | |
| json | FormIt.Model.GetPropertiesForHistory (nHistoryID, editingPath) |
| Get the properties for the given history. More... | |
| json | FormIt.Model.GetPropertiesForSelected () |
| Returns the properties for all objects currently selected Parameters: In: Out: FormIt.SelectedProperties. More... | |
| json | FormIt.Model.GetObjectName (objectID) |
| Returns the Object's name Parameters: In: objectID (GroupInstancePath || ObjectHistoryID || ObjectID) Out: name (string) More... | |
| json | FormIt.Model.SetObjectName (objectID, name) |
| Sets the Object's name The Object's type must be- WSM.nBodyType || WSM.nInstanceType || WSM.nMeshType || WSM.nLineMeshType || WSM.nPointMeshType Parameters: In: objectID (GroupInstancePath || ObjectHistoryID || ObjectID) Out: JSON_UNDEFINED. More... | |
| json | FormIt.Model.ObjectReportsAreaByLevel (objectID) |
| Get whether the object reports area by level or not. More... | |
| json | FormIt.Model.SetSurfaceAccuracyOrCountCurrent (accuracy) |
| Set the surface accuracy. More... | |
| json | FormIt.Model.GetSurfaceAccuracyOrCountCurrent () |
| Get the surface accuracy. More... | |
| json | FormIt.Model.GetProjectSiteArea () |
| Get the project site area of the model. More... | |
| json | FormIt.Model.SetTotalAreaOfSite (area) |
| SetTotalAreaOfSite sets the total site area of the model. More... | |
| json | FormIt.Model.GetProjectTargetArea () |
| GetProjectTargetArea gets the site project target area of the model. More... | |
| json | FormIt.Model.GetTotalGrossArea () |
| GetTotalGrossArea gets the total area of all levels in the model. More... | |
| json | FormIt.Model.GetLinearDefault (imperialValue) |
| Get the default value that is equivalent to the given linear imperial value. More... | |
| json FormIt.Model.GetCurveAccuracyOrCountCurrent | ( | ) |
Get the curve accuracy.
| json FormIt.Model.GetGroupHistoryName | ( | nHistoryID | ) |
Get the name for the given history.
Uses either the revit info or dynamo info, depending of what kind of group the history is.
| [in] | nHistoryId | |
| [in] | nHistoryID | int |
| json FormIt.Model.GetHistoryID | ( | ) |
Request the id of the history being edited - app supplied.
Out: History ID
| json FormIt.Model.GetLinearDefault | ( | imperialValue | ) |
Get the default value that is equivalent to the given linear imperial value.
If the current unit type is metric the metric equivalent is returned, for example 0.25 meters for 1 foot. If the current unit type is imperial, the value passed in is returned.
| [in] | imperialValue |
| json FormIt.Model.GetMemorySize | ( | bCollapsedHistoryWithLiveObjsOnly | ) |
Get the memory size of the History of the main Model.
| [in] | bool | Collapse the History with live Objects only. |
| [in] | bCollapsedHistoryWithLiveObjsOnly | bool |
| json FormIt.Model.GetObjectName | ( | objectID | ) |
Returns the Object's name Parameters: In: objectID (GroupInstancePath || ObjectHistoryID || ObjectID) Out: name (string)
| [in] | objectID | WSM.Utils.HistoryObjects |
| json FormIt.Model.GetProjectSiteArea | ( | ) |
Get the project site area of the model.
| json FormIt.Model.GetProjectTargetArea | ( | ) |
GetProjectTargetArea gets the site project target area of the model.
| json FormIt.Model.GetPropertiesForHistory | ( | nHistoryID | , |
| editingPath | |||
| ) |
Get the properties for the given history.
Used when the history represents a group. If editingPath is supplied, look at owning Groups to determine the Revit category.
| [in] | nHistoryId | |
| [in] | editingPath | WSM.GroupInstancePath (OPTIONAL) |
| [in] | nHistoryID | int |
| json FormIt.Model.GetPropertiesForSelected | ( | ) |
Returns the properties for all objects currently selected Parameters: In: Out: FormIt.SelectedProperties.
| json FormIt.Model.GetSurfaceAccuracyOrCountCurrent | ( | ) |
Get the surface accuracy.
| json FormIt.Model.GetTotalGrossArea | ( | ) |
GetTotalGrossArea gets the total area of all levels in the model.
| json FormIt.Model.GetUnitType | ( | ) |
!!!!!!!!!!!!!!! Deprecated: Use GetUnitTypeCurrent !!!!!!!!!!!!!!! Get the UnitType of the current Model.
| json FormIt.Model.GetUnitTypeCurrent | ( | ) |
Get the UnitType of the current Model.
| json FormIt.Model.ImperialLengthToCurrentUnitLength | ( | length | ) |
Takes imperial value in feet and translates to the current unit system.
| [in] | length |
| json FormIt.Model.IsImperialUnitType | ( | unitType | ) |
Return true if the current unit type in the model is imperial.
| [in] | FormIt.UnitType |
| json FormIt.Model.IsModified | ( | ) |
IsModified returns true if the Model has been modified.
| json FormIt.Model.ObjectReportsAreaByLevel | ( | objectID | ) |
Get whether the object reports area by level or not.
Parameters: In: objectID (GroupInstancePath || ObjectHistoryID || ObjectID) Out: bool
| [in] | objectID | WSM.Utils.HistoryObjects |
| json FormIt.Model.ResetModified | ( | ) |
ResetModified sets the Model to unmodified.
| json FormIt.Model.SetCurveAccuracyOrCountCurrent | ( | accuracyORcount | ) |
Set the curve accuracy.
| [in] | accuracyORcount |
|
| [in] | accuracyORcount | double |
| json FormIt.Model.SetGroupHistoryName | ( | nHistoryID | , |
| sHistoryName | |||
| ) |
Set the name for the given history.
Uses either the revit info or dynamo info, depending of what kind of group the history is
| [in] | nHistoryID | |
| [in] | sHistoryName |
| json FormIt.Model.SetObjectName | ( | objectID | , |
| name | |||
| ) |
Sets the Object's name The Object's type must be- WSM.nBodyType || WSM.nInstanceType || WSM.nMeshType || WSM.nLineMeshType || WSM.nPointMeshType Parameters: In: objectID (GroupInstancePath || ObjectHistoryID || ObjectID) Out: JSON_UNDEFINED.
| [in] | objectID | WSM.Utils.HistoryObjects |
| [in] | name | String |
| json FormIt.Model.SetSurfaceAccuracyOrCountCurrent | ( | accuracy | ) |
Set the surface accuracy.
| [in] | accuracy | |
| [in] | accuracy | double |
| json FormIt.Model.SetTotalAreaOfSite | ( | area | ) |
SetTotalAreaOfSite sets the total site area of the model.
| [in] | area | |
| [in] | area | double |
| json FormIt.Model.SetUnitType | ( | unitType | ) |
!!!!!!!!!!!!!!! Deprecated: Use GetUnitTypeCurrent !!!!!!!!!!!!!!! Set the UnitType of the current Model.
| [in] | FormIt.UnitType |
| json FormIt.Model.SetUnitTypeCurrent | ( | unitType | ) |
Set the UnitType of the current Model.
| [in] | FormIt.UnitType |