Skip to main content
Question

autocad block names


franco69
Contributor
Forum|alt.badge.img+6

i have an esri geodatabase with a point feature class with an attribute A

This attribute A has about 50 different contents (like A1,A2,A3,A4,....)

Each content has its own symbology. Now I want to convert them into dwg and each content should get a different autocad_block.

How can I do that in FME? (because in the DWG Styler I can choose only 1 BLOCK)

I need about 50!!!

 

 

Greetz and Thanx

 

FRanco

 

 

5 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • January 9, 2015
I think you have to use a WorkspaceRunner.

 

 

Extract the 50 contents (listbuilder on the attribute and remove duplicates with a listduplicateremover, explode it) and clla the styler through a WorkspaceRunner.

 

 

First make a workspace with the styler and make the blockname a parameter.

 

If you call this workspace with a workspacerunner, the parameter will become linkabel to a attribute, in your case that would be the contentattribute.

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • January 9, 2015
The DWGStyler maps the autocad_block_name (see http://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Desktop_Help.htm#../Subsystems/FME_Transformers/Content/Transformers/dwgstyler.htm%3FTocPath%3DFME%2520Transformers%7CStylers%7C_____2) this you can do yourself for all 50 AttributeValueMapper for example) and voila, you dont even need the styler.

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • January 12, 2015
...

 

Sure you can use a templatefile to refer to (at least) 50 different blocks you would want to use, however you stil can only pick one at a time.

 

 

Block name cannot be reffered to via an attribute, only parameters. (at least not in fme 2014sp3)

 

If you use valuemapping to map the attributes to blocknames, you still have to select them somehow.

 

So i think you need to use a workspacerunner, because this allows you to call the dwgStyler with the mapped blocknmames as  parameter.

 

(or you could use python or tcl).

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • January 13, 2015
just make sure you are exposing the block name on the writer and FME will take care of the rest, no need for running the same translation 50 times.....

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • January 14, 2015
I see it is possible to use an attribute.

 

Strange, last time i looked it only showed "select block name"  and parameter

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings