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.
3D macros are saved during creation with the "3D mounting layout" representation type.
Create a 3D macro by saving selected objects
Precondition:
You have opened a project.You have opened a layout space. The layout space contains 3D part placements or objects that have been loaded via the commands File > Import > Command group Project data > Layout space > STEP.
- Select the following commands: Tab Master data > Command group Macros > Create.
- 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. - Select the Define handle menu item below the [Extras] button.
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.You have opened a layout space.
- Select the following commands: File > Import > Command group Project data > Layout space > STEP.
- 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 a rotated graphic, select the commands Define and Rotate for the placement areas (both under: Tab Insert > Command group Placement area).
- Irrespective of the placement position you can use the command Unite (Tab Edit > Command group 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 by using the following commands: Tab Master data > Command group Macros > Create.
Note:
The uniting of 3D solids 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 3D assembly macro from imported 3D solids
For mechanical assembly parts that you create in the parts management, you can generate assembly macros from imported graphical data and assign them to the mechanical assembly parts via the Graphical macro field. In contrast to grouping by uniting, the assembly macro is not treated as an item, but the individual items of the assembly remain under an assembly node and can be linked via a DT ID with the subparts (assembly items) of the assembly created in the parts management.
Precondition:
You have opened a macro project.
- Select the following commands: File > Import > Command group Project data > Layout space > STEP.
- In the Open dialog select a STEP file that contains the graphic data to be imported and click [Open].
The 3D graphic from the STEP file is loaded into a new layout space and displayed as a 3D object. All contained 3D solids are arranged in the layout space navigator below the layout space node. - Use the property dialog to assign a function definition from the mechanical engineering trade as well as a matching item to each 3D solid.
- Select all 3D solids and create an assembly by using the Create assembly command (Tab Master data > Command group Macro > Create assembly).
In the layout space navigator, an assembly node is created under which the items are arranged. - Edit the assembly:
- Define a placement area by using the Placement area command (Tab Master data > Command group Macro > Create assembly > Placement area).
- Define a handle by using the Handle command (Tab Master data > Command group Macro > Create assembly > Handle).
- Use the respective property dialog to store a DT ID at each item of the assembly.
- Save the 3D assembly macro by using the following commands: Tab Master data > Command group Macros > Create.
- Create the assembly part including its subparts (assembly items) in the parts management.
For more information, see the Creating Assemblies section. - Assign the assembly macro to the assembly part via the Graphical macro property in the Properties tab.
You can now place the assembly as a device in the layout space.
Note:
Ensure that you assign the DT IDs of the corresponding items of the assembly macro to the assembly positions so that all the part numbers are also available at the part placement.
For further information on 3D assembly macros, please refer to the 3D assembly macros.
Generate a 3D macro from 3D files
This command works in the same way as Generating Macros from DXF / DWG Files.
- Select the command Macros from 3D files. (To this purpose you first have to Customize the ribbon and then assign the desired command to a user-defined command group.)
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 following commands: Tab Master data > Command group 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:
Please note our Recommendations for working with 2D and 3D macros.
See also