FormIt Plugin API v25.0.0 (2025.0.0)
Loading...
Searching...
No Matches
FormIt.Layers Namespace Reference

Description

FormIt.Layers namespace.

Functions

json GetAllLayers ()
 GetAllLayers gets a vector with all layer ids.
 
json GetLayerData (layerID)
 GetLayerData gets the data for a single layer.
 
json GetAllLayerData ()
 GetAllLayerData gets the data for all layers.
 
json AddLayer (historyID, layerName, visible)
 AddLayer creates a new layer in the given history.
 
json IsValid (layerID)
 IsValid returns whether a layer id is valid.
 
json SetLayersVisibility (aLayersVisibility)
 SetLayersVisibility sets the visibility of a vector of layers.
 
json SetLayerVisibility (layerName, visibility)
 SetLayerVisibility sets the visibility of layer with a given name and visibility toggle.
 
json LayerExists (layerName)
 LayerExists returns true if a layer with the given name exists.
 
json DeleteLayers (aLayerIDs)
 DeleteLayers deletes a list of layers.
 
json IsValidLayerName (layerID, newLayerName)
 IsValidLayerName checks whether the name is valid for a layer.
 
json SetLayerName (layerID, newLayerName)
 SetLayerName set a new name for the given layer.
 
json AssignLayerToObjects (layerID, aObjects)
 AssignLayerToObjects assigns a layer to a list of objects.
 
json RemoveLayersFromObjects (layerIDs, aObjects)
 RemoveLayersFromObjects removes all the layers in a vector from a vector of objects, regardless of whether any of the objects actually are assigned any of the layers.
 
json GetAllObjectsOnLayers (layerIDs, allHistories)
 GetAllObjectsOnLayers gets all objects that are on the given layers.
 
json ChangeLayerOrder (layerID, newPosition)
 ChangeLayerOrder gives a layer a new position in the list.
 
json GetObjectLayerID (nHistoryID, nObjectID)
 GetObjectLayerID returns the layer id for the object.
 
json IsValidObjectForLayerAssignment (nHistoryID, nObjectID)
 IsValidObjectForLayerAssignment returns whether the given object can be assigned a layer object must be top level (non owned) or a group instance.
 
json GetLayerList ()
 GetLayerList gets a list of all layers as LayerData.
 
json GetObjectsLayerList (groupInstacePathArray, bIncludeNoLayer)
 GetObjectsLayerList returns the set of layers the given Objects are on.
 
json GetLayerID (layerName)
 GetLayerID returns the formit layer id from a layer name or WSM.INVALID_ID if a layer with that name does not exist
 
json SetLayerPickable (layerID, pickable)
 Set the pickable status of a layer
 
json SetLoadInRevit (layerID, load)
 Set the load in Revit status of a layer
 
json IsSectionPlaneOrIndicatorLayer (layerID)
 Check whether the layer is either a section indicator or section plane layer
 
json CountObjectsOnLayer (aObjects, layerID)
 Returns how many of the objects in objectPaths, or their owners are on the given layer If layerId is passed as WSM.INVALID_ID, it counts how many objects are not on any layer