Creating AutoCAD Blocks with FME
Article Number: 000001024 - Last Modified: Feb 9, 2012
By default point features written to AutoCAD in FME become points in AutoCAD. Often we would prefer to create blocks which are referred to as inserts in FME.
There are three things we need to do to write blocks to AutoCAD using FME. - In the workspace (navigator pane) expand the AutoCAD writer parameters and set Template File to an AutocCad file which contains the block definitions you want to use.
- The format attribute autocad_entity must be set to autocad_insert for features we want to become blocks. This can be done in a number of ways such as using the AttributeCreator transformer.
- The format attribute autocad_block_name must be set on the features to correspond to the block names in the template files. We can do this with an AttributeCreator transformer or if there is more than block name we can use the AttributeValueMapper transformer to map attribute values into various block names.
A sample workspace is attached to this article which shows how to create attributed blocks which is a little more complicated than the process described above. A slightly easier approach is to use the DWGStyler transformer: - In the workspace (navigator pane) expand the AutoCAD writer parameters and set Template File to an AutocCad file which contains the block definitions you want to use.
- Add a DWGStyler
- In the DWGStyler set the template file name and then set the Block parameters, selecting the Bloeck Name from the available list of blocks in
|
Suggested Similar Articles