FormIt C++ API v25.0.0 (2025.0.0)
Loading...
Searching...
No Matches
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.
 
FORMIT_CORE_EXPORT size_t GetDynamoHistoryInPath (const WSM::GroupInstancePath &path)
 If a dynamo group exists in the given path, returns the corresponding history.
 
FORMIT_CORE_EXPORT size_t GetDynamoHistoryInCurrentContext ()
 First the current selection is looked at.
 
FORMIT_CORE_EXPORT size_t GetSelectedDynamoHistory ()
 Get the selected Dynamo History.
 
FORMIT_CORE_EXPORT json GetDynamoFile (size_t history)
 Get the Dynamo script for the given History.
 
FORMIT_CORE_EXPORT ::string GetUuid (size_t history)
 Get the Uuid for the given History.
 
FORMIT_CORE_EXPORT ::string GetDynamoGroupName (size_t history)
 Get the Dynamo Group name for the given History.
 
FORMIT_CORE_EXPORT bool SetDynamoFile (size_t nHistoryId, 1::string const &script, 1::string const &guid)
 Set the Dynamo script for the given History.
 
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.
 
FORMIT_CORE_EXPORT bool HasFormItBakeToFormItNode (1::string const &DYNFileName)
 HasFormItBakeToFormItNode returns true if the given DYNFileName has a BakeToFormItNode.
 
FORMIT_CORE_EXPORT bool HasFormItSelectionNodes (1::string const &DYNFileName, bool bIncludeAnySelectionNodes)
 HasFormItSelectionNodes returns true if the given DYNFileName has Selection Node(s).
 
FORMIT_CORE_EXPORT TDynamoNodes GetInputNodes (size_t history, bool bIsSetAsInput)
 Get all the IsSetAsInput == true nodes and sort by vertical placement.
 
FORMIT_CORE_EXPORT json GetInputNode (size_t historyId, 1::string const &guid)
 GetInputNode returns the node (json) for the given guid in the DYN.
 
FORMIT_CORE_EXPORT TDynamoNodes GetBakeNodes (1::string const &DYNFileName)
 Get all the bake nodes from the DYN file.
 
FORMIT_CORE_EXPORT bool GetBakeNodeToHistoryMap (size_t nHistoryId, FormIt::Dynamo::TBakeNodeToHistoryMap &bakeNodeToHistoryMap)
 Get the bake nodes to Historys map for the given History.
 
FORMIT_CORE_EXPORT void SetGroupBakeNodeID (size_t nHistoryId, size_t nGroupID, 1::string bakeNodeID)
 Mark a Group as a Bake Node Group.
 
FORMIT_CORE_EXPORT bool GetGroupBakeNodeID (size_t nHistoryId, size_t nGroupID, 1::string &bakeNodeID)
 Get the Group Bake Node ID.
 
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.
 
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

◆ TBakeNodeToHistoryMap

using FormIt::Dynamo::TBakeNodeToHistoryMap = typedef 1::map<1::string, size_t>

◆ TDynamoNode

using FormIt::Dynamo::TDynamoNode = typedef 1::tuple<1::string, 1::string, bool, bool, bool>

◆ TDynamoNodes

using FormIt::Dynamo::TDynamoNodes = typedef 1::vector<TDynamoNode>