Skip to main content

Hello everyone,

 

 

I've got a few AutoCAD blocks saved as Blocks.dwg (e.g. with the different blocks named "Block1" and "Block2").

 

Furthermore I've got some points out of a shape file.

 

 

Now I want to export the shape file as a dwg file and set "Block1" on some points with an attributive filter and "Block 2" on some other points.

 

 

My first idea was to read in the shape file, create a DWG writer, use the Blocks.dwg as Template File and fill the attribute autocad_block_name of the points with "Block1" or "Block2". That does not really work. Have you got ideas or hints to realize that.

 

 

Best regards,

 

Felix

The DWGStyler should be able to help with this. If you point the DWG styler to the same Template containing the blocks it works.


@nielsgerrits That would be the most common way indeed.

felixderglueckl: I suggest you filter the points and create an attribute containing the block names of your template dwg. Use this as an input in the DWGStyler transformer. Select your template file (Blocks.dwg) and link the 'Block name' field to the attribute you just created.

 

 

That way, you don't need this intermediate DWG writer.


Reply