Hi Jamal,
The AreaBuilder discards all the attributes other than ones which have been specified to "Group By" parameter. If "autocad_color" cannot be used as "Group By", you will have to restore it after the AreaBuilder using FeatureMerger, SpatialFilter etc.. I've shown you how to do that with the workspace example before.
https://safecommunity.force.com/CommunityAnswers?id=906a0000000cx3bAAA
https://safecommunity.force.com/069a0000003dwSd
But I cannot understand why you use the AreaBuilder in the workflow shown in the image. Firstly, think of whether the AreaBuilder is necessary.
Takashi
Very much appreciated Takashi for the help,
Just I wanted to highlight this issue in a separate thread with quite simple workbench to see how the “autocad_color” property can be passed to the SchemaMapper.
You are right. In the above workbench, there is no need to apply the “AreaBuilde”. But I include it in the workbench to see how to manage the issue of transferring the “autocad_color” property to SchemaMapper.
However, I fail to apply the FeatureMerger and SpatialFilter to ensure passing the “autocad_color” property to SchemaMapper.
Could you please help me in sticking the FeatureMerger \\SpatialFilter in my simple workbench (and CAD + Excel) to ensure passing the “autocad_color” property to SchemaMapper to finally translate the colors into their meaning
Simple CAD file:
http://www.mediafire.com/download/liogqnn9r6de90s/R_02.dwg
Excel file:
http://www.mediafire.com/view/ivyn2poe9p4g2a3/UrbanMasterPlanDomain_14_FME.xls;
I put a workspace example here.
https://safecommunity.force.com/069a0000003e2Fa
Have a look at "Group By" parameter of the AreaBuilder.
I guess you are trying to set attribute values (ZoneClassification_Arabic_Domain etc.) depending on color. If so, I think that the Joiner is appropriate rather than the SchemaMapper.
You can also use the list (Polygon listname) of objects wich contributed to building the area.
If there is a query to be made wich can pass the color, its usefull.
An area build of objects of the same color is the simplest form. Else, if u cant make a query with a unique result, u have to bypass it and remerge, for instance by spatialrealting.
Gio
Thank you Takashi and Gio for the help,
Dear Takashi: the workbench that you have already provided doesn’t end up with 4 polygons as the FeatureMearger is applied. In my case, I need to have separate polygons as the final output
The Joiner uses the Excel file which you are sharing with us. Although the template I uploaded contains the Excel file, it may not restore the file path setting. Open the parameters dialog and specify the file path to Dataset parameter again.
Thanks Takashi for the help.
Now, I could pass the fields using the “counter” and “FeatureMerger” commands.