3D macros can be created as follows:
- Manually by saving selected objects from a layout space
- Manually or automatically from imported STEP files (*.ema only)
- Manually or automatically from a macro project.
Create a 3D macro by saving selected objects
Precondition:
You have opened a project. A layout space is open. The layout space contains 3D part placements or objects that have been loaded via Layout space > Import (3D graphic).
- Select the menu item Edit > Create window macro / symbol macro.
- Draw a border around the objects that should belong to the macro.
- In the Save as dialog, enter an identifying name and optionally a description text for the 3D macro.
In the Representation type field, the entry "3D mounting layout" is displayed, which cannot be modified. - From the Variant field select the required variant for the macro.
"Variant A" is the default setting. You can generate further variants by rotating the macro geometry, or by changing the handle and saving the 3D macro under the same name, but as a different variant. - Click [OK].
- Select the Edit > Device logic > Handle menu items.
The cursor will be surrounded by a square, that you can set to 3D snap points on the geometry, to define the handle. Once the handle is placed, the Save as dialog reappears. The defined handle is always projected onto the placement area. - Click [OK].
The 3D macro is saved to the set directory. It can then be called up for placement.
Create a 3D macro from an imported 3D graphic
3D graphic files can be imported in STEP format. You can generate files of this type with a 3D CAD system, or obtain them from the storage mediums of various manufacturers. After importing the original position of the graphic can be influenced by defining and rotating a placement area so that the desired areas are always rotated to the placement position when the macro is placed as a window macro and as a device.
Precondition:
You have opened a project. A layout space is open.
- Select the menu items Layout space > Import (3D graphic).
- In
the Open dialog, select a directory and in this, select a file containing the 3D graphic in STEP format to be imported, and click [Open].
The 3D graphic from the STEP file is loaded in the layout space and displayed as a 3D object. - Depending on the quality of the source data, the 3D graphic may have to be edited, before it can be saved as a 3D macro. In order to achieve uniform behavior when placing a macro that contains rotated graphics, select the menu items Edit > Device logic > Placement area > Define and Edit > Device logic > Placement area > Rotate.
- Irrespective of the placement position you can use Edit > Graphic > Unite to combine all the items of the layout space so that a 3D macro is handled like one item when used.
- Save the 3D macro via the Edit > Create window macro / symbol macro menu items.
Note:
The uniting of 3D bodies is not suited to reduce the amount of data in the macro to be generated. If the imported STEP file contains several identical and very detailed parts, this may lead to an increase of the amount of data after uniting. This directly influences the size of the macro files since macros cannot be compressed due to the system's way of operation.
To reach an acceptable size of the macro file you should thus refrain from uniting imported common parts and generate the macro with the imported single parts.
Generate a 3D macro from 3D files
This function works in the same way as Generating Macros from DXF / DWG Files.
- Select Utilities > Generate macros > From 3D files.
3D window macros (*.ema) are generated directly from single or multiple STEP files, without being loaded into a layout space and edited before saving.
Generate a 3D macro from a macro project
In the same way as 2D macros, 3D macros can be generated automatically from macro projects.
- Select the menu items Project data > Macros > Generate automatically.
All 3D macros or each individually selected one are saved from the macro project layout spaces as *.ema or *.ems files.
Note:
For the sake of optimal performance in your work with the EPLAN platform, you should save 2D and 3D data not in a single macro file, but only in separate macro files. This way you can ensure that 2D users do not necessarily have to access the extensive 3D data volume.
We recommend that you store the macro file with the 3D data and the "3D mounting layout" representation type in parts management on the Mounting data tab in the Graphical macro field. The macro file with the 2D data and the other representation types (Multi-line, Overview, etc.) should be entered, as before, in the Technical data tab of parts management in the Macro field. The files could be distinguished, for example, on the basis of name extensions (e.g., 3D macro ABC.12345_3D.ema and a corresponding 2D macro ABC.12345_2D.ema).
In all actions in the 3D environment for which a part macro is used (e.g., Insert devices), it is the "graphical part macro" that is checked first. If on the Mounting data tab a graphical macro has been entered for the part, and if it contains the desired "3D mounting layout" representation type, this macro will be used. If not, the "technical part macro" defined on the Technical data tab will be used.
See also