API Help
Eplan.EplApi.DataModel.Planning Namespace / PlanningObject.MacroPlaceHolderValueSetsClass Class
Members Example

In This Topic
    PlanningObject.MacroPlaceHolderValueSetsClass Class
    In This Topic
    Represents macro placeholder records of a planning object
    Inheritance Hierarchy

    System.Object
       Eplan.EplApi.DataModel.Planning.PlanningObject.MacroPlaceHolderValueSetsClass

    Syntax
    [DefaultMember("Item")]
    public class PlanningObject.MacroPlaceHolderValueSetsClass 
    [DefaultMember("Item")]
    public ref class PlanningObject.MacroPlaceHolderValueSetsClass 
    Example
    // getting macro placeholder value sets from planning object
    var oMacroPlaceHolderValueSets = oPlanningObject.MacroPlaceHolderValueSets;
    
    // defining value as string in multiple languages
    string text = "Test!!!";
    MultiLangString mls = new MultiLangString();
    mls.AddString(ISOCode.Language.L_en_US, text);
    mls.AddString(ISOCode.Language.L_de_DE, text);
    
    // changing every variable to defined value
    foreach (var oMacroPlaceHolderValueSet in oMacroPlaceHolderValueSets)
    {
        foreach (string variable in oMacroPlaceHolderValueSet.VariableNames)
        {
            oMacroPlaceHolderValueSet[variable] = mls;
        }
    }
    
    // writing data back to planning object
    oMacroPlaceHolderValueSets.Store();
    
    
    
    Public Constructors
    Public Properties
     NameDescription
    Public PropertyReturns number of macro placeholder value sets  
    Public PropertyOverloaded.   
    Public PropertyPlanning object to which macro placeholder value sets belong  
    Top
    Public Methods
     NameDescription
    Public MethodDetermines whether planning object stores macro placeholder record  
    Public MethodCopy collection to an array  
    Public MethodDestructor for deterministic finalization of MacroPlaceHolderValueSetsClass object.  
    Public MethodGets enumertator in collection of MacroPlaceholderValueSets  
    Public MethodGets enumertator in collection of MacroPlaceholderValueSets. The same as GetEnumerator.  
    Public MethodStores back macro placeholder value sets to planning object.  
    Public MethodUpdates planning object's macro placeholder value sets with data from macro (e.g. after macro has changed)  
    Top
    See Also