Hi Erik,
The problem here (as I see it) is one that seems to arise fairly
often, but for which there isn't really a sensible solution for us to
implement.

First things first, you don't need to GeometryCoercer - the Chopper
will correctly set everything to be points.

OK - the main problem is that there are two sets of attributes that
define a feature; format attributes and fme attributes. The fme
attributes begin fme_ and are the ones used and processed in a
workspace. The format attributes begin with the format name, eg
autocad_, and are only used by the reader/writers.

Here the Chopper is chopping up the lines, and assigning
fme_geometry=fme_point. However it is not touching autocad_entity
which remains at autocad_line. When this reaches the writer it is
interpreted as a single point line which throws an error.

The problem only occurs when reading and writing to the same format -
what I'd suggest is removing the autocad_entity attribute with the
AttributeRemover (or maybe get rid of all source autocad attributes
with the AttributeExpressionRemover). I hope that would solve the problem.

Hope this helps - if you're still having problems then let us know via
[EMAIL PROTECTED] (assuming you have a valid AMC)

Regards,

Mark

Mark Ireland, Product Support Engineer
Safe Software Inc. Surrey, BC, CANADA
[EMAIL PROTECTED] http://www.safe.com
Solutions for Spatial Data Translation, Distribution and Access



--- In [email protected], "erikburn1969" <[EMAIL PROTECTED]> wrote:
>
> I have some Autocad lines which I want to chop into points and output 
> to a new autocad files. I fail following this procedure:
> 
> 1. Use chopper with "Maximum Vertices" set to 1
> 2. Output points are run through a "GeometryCoercer" to fme_point
> 
> When the output is written to AutoCAD output files I get the following 
> error message, and not features are output:
> 
> > Below feature must have at least 2 coordinates.
> > ...
> 
> The feature does indeed have 2 coordinates. When I place a visualizer 
> before the AutoCAD output features everything views as points as 
> expected. However FME fails to write to the AutoCAD files because it 
> thinks the features are lines with only one coordinate.
> I have tried to also manually set the "autocad_entity" attribute, but 
> to no help.
> 
> Any hints what I am doing wrong?
> 
>   erik
>







Join us at the FME Worldwide User Conference Sept. 21-22, 2006 Vancouver BC 
Canada. For more information, visit www.safe.com/2006uc.   
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/fme/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to