Eplan Platform API
Eplan.EplApi.DataModel.MasterData Namespace / WindowMacro Class / Create Method / Create(String,Int32,Placement3D[],Boolean,MultiLangString) Method
The name (inclusive path) for the macro file. Parameter value must include a valid extension (otherwise an exception is thrown).
The variant written (A file can contain more than one variants)
The placements the macro should contain. They should be from the same page.
The description for this macro file or null when no description should be set.

Create(String,Int32,Placement3D[],Boolean,MultiLangString) Method
Writes a window macro file from the pPlacements if at least one given object is valid. Created macro is opened.
Syntax

Parameters

macroFileName
The name (inclusive path) for the macro file. Parameter value must include a valid extension (otherwise an exception is thrown).
nVariant
The variant written (A file can contain more than one variants)
pPlacements
The placements the macro should contain. They should be from the same page.
bAddChildren
strDescription
The description for this macro file or null when no description should be set.
Exceptions
ExceptionDescription
Thrown when parameters are not valid
Remarks
Reference point used in macro is calculated automatically by P8.
See Also