Hi,
im workin with Smallworld 3.3 and FME translator v3.3, and im trying
to import data in Smallworld database from ACAD file. In ACAD file i
have simple points that represent block with few attributes.
my mapping file example:
DWG_DEF NN_STUP \
autocad_color 10 \
autocad_linetype CONTINUOUS \
OZNAKA char(9) \
TIP char(8)
SWORLD_DEF NN_STUP \
oznaka char(10) \
tip char(9) \
tehnika_unosa char(15) \
lokacija sworld_point
Lookup ___KnownFeatureTypes___
NN_STUP yes \
"" no
FACTORY_DEF * TestFactory \
FACTORY_NAME "Unexpected Input Remover" \
INPUT FEATURE_TYPE * \
TEST @Lookup(___KnownFeatureTypes___,@FeatureType()) == yes \
OUTPUT PASSED FEATURE_TYPE *
FACTORY_DEF * TeeFactory \
FACTORY_NAME "Source -> Generic" \
INPUT FEATURE_TYPE * \
OUTPUT FEATURE_TYPE * \
@Transform(ACAD,FME_GENERIC,PRESERVE_GEOMETRY)
FACTORY_DEF * TeeFactory \
FACTORY_NAME GEOMETRYFILTER_Splitter \
INPUT FEATURE_TYPE NN_STUP \
OUTPUT FEATURE_TYPE ___TOFILTER___
FACTORY_DEF * TeeFactory \
FACTORY_NAME GEOMETRYFILTER_Pointer \
INPUT FEATURE_TYPE ___TOFILTER___ fme_type fme_point \
OUTPUT FEATURE_TYPE GEOMETRYFILTER_POINT
FACTORY_DEF * TeeFactory \
FACTORY_NAME ATTRIBUTECREATOR \
INPUT FEATURE_TYPE GEOMETRYFILTER_POINT \
OUTPUT FEATURE_TYPE ATTRIBUTECREATOR_OUTPUT \
@SupplyAttributes(tehnika_unosa,DXF_loader)
FACTORY_DEF * TeeFactory \
FACTORY_NAME "ATTRIBUTECREATOR_OUTPUT -> NN_STUP Correlator" \
INPUT FEATURE_TYPE ATTRIBUTECREATOR_OUTPUT \
OUTPUT FEATURE_TYPE * \
@Transform(FME_GENERIC,SWORLDSWAF) \
__wb_out_feat_type__ NN_STUP
FACTORY_DEF * TestFactory \
FACTORY_NAME "Final Output Feature Type Router" \
INPUT FEATURE_TYPE * \
TEST @Value(__wb_out_feat_type__) != "" \
OUTPUT PASSED FEATURE_TYPE * \
@FeatureType(@Value(__wb_out_feat_type__))
ACAD *
SWORLD *
ACAD NN_STUP \
OZNAKA %oznaka \
TIP %tip
WORLD NN_STUP \
oznaka %oznaka \
tip %tip
sworld_geometry{0}.sworld_name lokacija \
sworld_geometry{0}.sworld_type sworld_point
now, problem is with AttributeCreator factory, and it seems like
@supplyattributes fuction is not working, cause in smalloworld after
import i have "lokacija" geometry with attributes "oznaka", and "tip".
but attribute "tehnika_unosa" is not imported. Also if i put
"sworld_geometry{0}.sworld_name lokacija" and
"sworld_geometry{0}.sworld_type sworld_point" in @SupplyAttributes,
geometry "lokacija" is not imported in smallworld database. i tried
workin with other factories and functions, but only @SupplyAttributes
doesnt work.
i found solution for this problem, in final block i just enter one
line, like this:
WORLD NN_STUP \
oznaka %oznaka \
tip %tip
sworld_geometry{0}.sworld_name lokacija \
sworld_geometry{0}.sworld_type sworld_point\
tehnika_unosa "DXF_loader"
but this not solution that we want. Please help.
Ty,
regards, Josip Majer!
Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our
Professional Services team. Visit www.safe.com/services for details.
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/