FormIt C++ API  v23.0.0 (2023.0.0)
FormIt::Dynamo Namespace Reference

Functions

FORMIT_CORE_EXPORT bool IsDynamoHistory (size_t history)
 IsDynamoHistory returns true if the given History is a Dynamo created History. More...
 
FORMIT_CORE_EXPORT size_t GetDynamoHistoryInPath (const WSM::GroupInstancePath &path)
 If a dynamo group exists in the given path, returns the corresponding history. More...
 
FORMIT_CORE_EXPORT size_t GetDynamoHistoryInCurrentContext ()
 First the current selection is looked at. More...
 
FORMIT_CORE_EXPORT size_t GetSelectedDynamoHistory ()
 Get the selected Dynamo History. More...
 
FORMIT_CORE_EXPORT json GetDynamoFile (size_t history)
 Get the Dynamo script for the given History. More...
 
FORMIT_CORE_EXPORT::string GetUuid (size_t history)
 Get the Uuid for the given History. More...
 
FORMIT_CORE_EXPORT::string GetDynamoGroupName (size_t history)
 Get the Dynamo Group name for the given History. More...
 
FORMIT_CORE_EXPORT bool SetDynamoFile (size_t nHistoryId, 1::string const &script, 1::string const &guid)
 Set the Dynamo script for the given History. More...
 
FORMIT_CORE_EXPORT::pair< bool, 1::string > WriteDYNFile (size_t history, 1::string const &path, json const &DYNFile={})
 Write the DYN for the given History to the given path. More...
 
FORMIT_CORE_EXPORT bool HasFormItBakeToFormItNode (1::string const &DYNFileName)
 HasFormItBakeToFormItNode returns true if the given DYNFileName has a BakeToFormItNode. More...
 
FORMIT_CORE_EXPORT bool HasFormItSelectionNodes (1::string const &DYNFileName, bool bIncludeAnySelectionNodes)
 HasFormItSelectionNodes returns true if the given DYNFileName has Selection Node(s). More...
 
FORMIT_CORE_EXPORT TDynamoNodes GetInputNodes (size_t history, bool bIsSetAsInput)
 Get all the IsSetAsInput == true nodes and sort by vertical placement. More...
 
FORMIT_CORE_EXPORT json GetInputNode (size_t historyId, 1::string const &guid)
 GetInputNode returns the node (json) for the given guid in the DYN. More...
 
FORMIT_CORE_EXPORT TDynamoNodes GetBakeNodes (1::string const &DYNFileName)
 Get all the bake nodes from the DYN file. More...
 
FORMIT_CORE_EXPORT bool GetBakeNodeToHistoryMap (size_t nHistoryId, FormIt::Dynamo::TBakeNodeToHistoryMap &bakeNodeToHistoryMap)
 Get the bake nodes to Historys map for the given History. More...
 
FORMIT_CORE_EXPORT void SetGroupBakeNodeID (size_t nHistoryId, size_t nGroupID, 1::string bakeNodeID)
 Mark a Group as a Bake Node Group. More...
 
FORMIT_CORE_EXPORT bool GetGroupBakeNodeID (size_t nHistoryId, size_t nGroupID, 1::string &bakeNodeID)
 Get the Group Bake Node ID. More...
 
FORMIT_CORE_EXPORT void RemoveDynamoAttributeAfterUngroup (size_t nHistoryId)
 Remove the history level dynamo attribute "FormIt::DynamoObject" after an ungroup action happened, and that attribute ended up in the history. More...
 
using TDynamoNode = 1::tuple< 1::string, 1::string, bool, bool, bool >
 
using TDynamoNodes = 1::vector< TDynamoNode >
 
using TBakeNodeToHistoryMap = 1::map< 1::string, size_t >
 

Typedef Documentation

using FormIt::Dynamo::TBakeNodeToHistoryMap = typedef 1::map<1::string, size_t>
using FormIt::Dynamo::TDynamoNode = typedef 1::tuple<1::string, 1::string, bool, bool, bool>
using FormIt::Dynamo::TDynamoNodes = typedef 1::vector<TDynamoNode>