System.Object
Eplan.EplApi.DataModel.Planning.PlanningObject.MacroPlaceHolderValueSetsClass
System.Object
Eplan.EplApi.DataModel.Planning.PlanningObject.MacroPlaceHolderValueSetsClass
[DefaultMember("Item")] public class PlanningObject.MacroPlaceHolderValueSetsClass
[DefaultMember("Item")] public ref class PlanningObject.MacroPlaceHolderValueSetsClass
// 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();
Name | Description | |
---|---|---|
PlanningObject.MacroPlaceHolderValueSetsClass Constructor | Constructor |
Name | Description | |
---|---|---|
Count | Returns number of macro placeholder value sets | |
Item | Overloaded. | |
Source | Planning object to which macro placeholder value sets belong |
Name | Description | |
---|---|---|
Contains | Determines whether planning object stores macro placeholder record | |
CopyTo | Copy collection to an array | |
Dispose | Destructor for deterministic finalization of MacroPlaceHolderValueSetsClass object. | |
GetEnumerator | Gets enumertator in collection of MacroPlaceholderValueSets | |
GetEnumerator2 | Gets enumertator in collection of MacroPlaceholderValueSets. The same as GetEnumerator. | |
Store | Stores back macro placeholder value sets to planning object. | |
UpdateFromMacro | Updates planning object's macro placeholder value sets with data from macro (e.g. after macro has changed) |