Hi Jeff.
 
Your log says something about a bulge that is too short. A qualified guess is that after warping the start and end point of a bulge has almost the same position "or something like that". I'd try using the AreaGeneralizer or LineGeneralizer (depending on what your data is) to remove verticies that are too close after the AffineWarper, hopefully your data will be ok then.
 
Good luck.
/Nisse
 
Ps.
This might help you to find your problem...
I think you can filter out lines with bulges by finding lines where
autocad_original_entity_type = 'autocad_lwpolyline'....
It's not in the documentation, but I can see it in the Viewer if I open a dwg-file and select a line with a bulge.
 
To see what kinds of autocad_original_entity_type values you have in your data, just send everything to a Visualizer and group by attribute autocad_original_entity_type.
Ds.


Från: [email protected] [mailto:[EMAIL PROTECTED] För Jeff Konnen
Skickat: den 7 november 2006 23:37
Till: [email protected]
Ämne: [fme] DWG to DWG

Hi all!

I am using a DWG to DWG workspace with an Affinewarper in between.
The affine warper works correctly but I seem to have a problem with the DWG writer (latest beta build).

I read about 200'000 objects from the DWG.
To speed it up, I limited it to read 60000.
When writing the output of the AffineWarper to the Visualizer, I get 60000 elements visualized.

When writing the same output back to a DWG, I only get 27145 features written.

Are there some elements that cannot be written back to a DWG even if they are read?

Here is my log file:

   
   
    Commandline to run this workspace:
   
   
    fme.exe acad2acad_transformaffine.fmw
          --SourceDataset_ACAD "D:\projects\SENEGAL\PIS plan d'ensemble-301006.dwg"
          --SourceDataset_SHAPE D:\projects\SENEGAL\Vecteurs_de_calage.shp
          --DestDataset_ACAD "D:\projects\SENEGAL\PIS plan d'ensemble-301006_new2.dwg"
   
   
Starting Translation ...
Feature Manipulation Engine 2007 (O) Beta (20061027 - Build 4167)
FME for ESRI (node locked-crc)
Permanent License.
Machine host name is: JeffXP
FME Configuration: Reader Keyword is `MULTI_READER'
FME Configuration: Writer Keyword is `ACAD_2'
FME Configuration: Writer Group Definition Keyword is `ACAD_2_DEF'
FME Configuration: Reader type is `MULTI_READER'
FME Configuration: Writer type is `ACAD'
FME Configuration: No destination coordinate system set
FME Configuration: Current working directory is `C:\Documents and Settings\konnen\Mes documents\My FME Workspaces'
FME Configuration: Temporary directory is `C:\DOCUME~1\konnen\LOCALS~1\Temp'
FME Configuration: FME_HOME is `C:\Program Files\FME2007beta\'
FME Configuration: FME_BASE is 'no'
FME Configuration: FME_MF_DIR is 'C:\Documents and Settings\konnen\Mes documents\My FME Workspaces/'
FME Configuration: FME_MF_NAME is 'wb-xlate-a04776'
FME Configuration: FME_PRODUCT_NAME is 'FME 2007'
System Status: 5547MB of disk space available in the FME temporary directory (C:\DOCUME~1\konnen\LOCALS~1\Temp\)
System Status: 1963MB of virtual memory available
Operating System: Microsoft Windows XP Professional Service Pack 2 (Build 2600)
MULTI_READER(MULTI_READER): Will fail with first member reader failure
MULTI_READER(MULTI_READER): Adding ACAD Reader with keyword ACAD_1
MULTI_READER(MULTI_READER): Adding SHAPE Reader with keyword SHAPE_1
AutoCAD Writer will produce an AutoCAD 2004 compatible file
Template file 'D:\projects\SENEGAL\PIS plan d'ensemble-301006.dwg' specified.
No AutoCAD font directory specified. All Text and Multi-Text entities will use the default font file 'default.shx'.
Using Multi Reader $Revision: 31794 $ ( $Date: 2006-10-19 10:40:10 -0700 (Thu, 19 Oct 2006) $ ) with keyword `MULTI_READER' to read multiple datasets
FME Configuration: Maximum of 60000 feature(s) will be read starting from feature number 1.
AutoCAD Reader: Returning block inserts as points
AutoCAD Reader: Storing bulge info
AutoCAD Reader: Storing spline definitions
AutoCAD Reader: All zero length arcs will be converted to points.
AutoCAD Reader: Using AutoCAD Reader $Revision: 31633 $ ( $Date: 2006-10-10 14:49:26 -0700 (Tue, 10 Oct 2006) $ ) to read dataset `D:\projects\SENEGAL\PIS plan d' ensemble-301006.dwg'
FME Configuration: Maximum of 60000 feature(s) will be read starting from feature number 1.
Module `ACAD2004' API version matches current core version (3.1 20031010).
AutoCAD Reader: Successfully opened the 'Release2000' AutoCAD file 'D:\projects\SENEGAL\PIS plan d' ensemble-301006.dwg'.
Using Dynamic Reader $Revision: 31794 $ ( $Date: 2006-10-19 10:40:10 -0700 (Thu, 19 Oct 2006) $ ) with module ACAD2004 to read data from dataset `D:\projects\SENEGAL\PIS plan d'ensemble-301006.dwg '
Using AutoCAD Writer $Revision: 31659 $ ( $Date: 2006-10-11 12:55:47 -0700 (Wed, 11 Oct 2006) $ ) to write autocad file `D:\projects\SENEGAL\PIS plan d'ensemble-301006_new2.dwg'
Removing existing autocad Image `D:\projects\SENEGAL\PIS plan d'ensemble-301006_new2.dwg'
Module `ACAD2004' API version matches current core version (3.1 20031010).
FME Configuration: No destination coordinate system set
Module `LogCount_func' API version matches current core version (3.1 20031010).
Reading source feature # 2500
Reading source feature # 5000
Reading source feature # 7500
Reading source feature # 10000
Reading source feature # 12500
Reading source feature # 15000
Reading source feature # 17500
Reading source feature # 20000
Reading source feature # 22500
Reading source feature # 25000
Reading source feature # 27500
Reading source feature # 30000
Reading source feature # 32500
Reading source feature # 35000
Reading source feature # 37500
Reading source feature # 40000
Reading source feature # 42500
Reading source feature # 45000
Reading source feature # 47500
Reading source feature # 50000
Reading source feature # 52500
Reading source feature # 55000
Reading source feature # 57500
Reading source feature # 60000
Shape Reader: Using search envelope 0 0 0 0 to limit features returned from file D:\projects\SENEGAL\
Using Shape Reader $Revision: 31851 $ ( $Date: 2006-10-23 11:58:21 -0700 (Mon, 23 Oct 2006) $ ) to read shape files from directory `D:\projects\SENEGAL\'
Opened Shape File D:\projects\SENEGAL\Vecteurs_de_calage.shp for input
Opened DBF File 'D:\projects\SENEGAL\Vecteurs_de_calage.dbf' for input
DBF File 'D:\projects\SENEGAL\Vecteurs_de_calage.dbf' has fields: ID number(6,0)
Shape Reader: Bounding box of shapefile `D:\projects\SENEGAL\VECTEURS_DE_CALAGE' is: (241401.900776582,1630950.87381434),(248166.680128151,1634249.8204616)
Shape Reader: Bounding box of shapefile(s) selected from directory `D:\projects\SENEGAL\' is: ( 241401.900776582,1630950.87381434),(248166.680128151,1634249.8204616)
MULTI_READER(MULTI_READER): Done reading 60004 features from 2 readers
Emptying factory pipeline
Source Feature Router(BranchingFactory): Branched 60004 input features -- 60004 features routed to the target factory, and 0 features routed to the fallback factory.
Source Catcher 0(TeeFactory): Cloned 60000 input feature(s) into 60000 output feature(s).
ACAD_1RenameAutocadExtendedAttrs(TeeFactory): Cloned 60000 input feature(s) into 60000 output feature(s).
Source Brancher 0(BranchingFactory): Branched 60000 input features -- 60000 features routed to the target factory, and 0 features routed to the fallback factory.
Source Catcher 1(TeeFactory): Cloned 4 input feature(s) into 4 output feature(s).
Source Brancher 1(BranchingFactory): Branched 4 input features -- 4 features routed to the target factory, and 0 features routed to the fallback factory.
Storing features to FME feature store file `C:\DOCUME~1\konnen\LOCALS~1\Temp\FME_FEATLDa02160'
Branching Catcher(TeeFactory): Cloned 60004 input feature(s) into 60004 output feature(s).
Unexpected Input Remover(TestFactory): Tested 60004 input features -- 60004 features passed, 0 features failed.
Unexpected Input Remover Nuker(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
Source -> Generic(TeeFactory): Cloned 60004 input feature(s) into 60004 output feature(s).
Plan d'Urbanisme de Détail (ACAD_1) Splitter(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
Plan d'Urbanisme de Détail Feature Counter -1 72(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
Equipements scolaires (ACAD_1) Splitter(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
Equipements scolaires Feature Counter -1 59(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
P-FON-EMPRISE Feature Counter -1 70(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
P-VOI-PAVAGE-BORD Feature Counter -1 71(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
HT Feature Counter -1 63(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
Emprise Ligne HT (ACAD_1) Splitter(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
Emprise Ligne HT Feature Counter -1 58(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
FEDERATION DE GIE (ACAD_1) Splitter(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
FEDERATION DE GIE Feature Counter -1 60(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
GIE EXISTANTS A FEDERER (ACAD_1) Splitter(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
GIE EXISTANTS A FEDERER Feature Counter -1 61(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
NUM GIE (ACAD_1) Splitter(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
NUM GIE Feature Counter -1 69(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
LIMITE AIRE GIE (ACAD_1) Splitter(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
LIMITE AIRE GIE Feature Counter -1 64(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
Limite zone d'étude (ACAD_1) Splitter(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
Limite zone d'étude Feature Counter -1 68(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
Limite de quartier (ACAD_1) Splitter(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
Limite de quartier Feature Counter -1 66(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
Limite d'arrondissement (ACAD_1) Splitter(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
Limite d'arrondissement Feature Counter -1 65(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
VOIRIE PROJETEE FDV (ACAD_1) Splitter(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
VOIRIE PROJETEE FDV Feature Counter -1 74(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
CADRE Feature Counter -1 57(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
VOIRIE__BORD_DE_ROUTE_NON_GO23 Feature Counter -1 75(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
VOIRIE_VOIE_FERREE26 Feature Counter -1 78(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
VOIRIE_BORD_DE_ROUTE_NON_GOU23 Feature Counter -1 77(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
VOIRIE_BORD_DE_ROUTE_GOUDRON22 Feature Counter -1 76(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
TOPONYMIE_NOM_DE_QUARTIER64 Feature Counter -1 73(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
Limite ilôts (ACAD_1) Splitter(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
Limite ilôts Feature Counter -1 67(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
Hachures Feature Counter -1 62(TeeFactory): Cloned 59 input feature(s) into 59 output feature(s).
Bati Feature Counter -1 56(TeeFactory): Cloned 59941 input feature(s) into 59941 output feature(s).
0 Feature Counter -1 55(TeeFactory): Cloned 0 input feature(s) into 0 output feature(s).
Vecteurs_de_calage Feature Counter -1 84(TeeFactory): Cloned 4 input feature(s) into 4 output feature(s).
AFFINEWARPER(WarpFactory): Calculated affine parameters: p0 = 0.998807272077887, p1 = 0.00455776370144306, p2 = -7097.16017855113, p3 = -0.00455754505920706, p4 = 0.998807578896733, p5 = 3137.52893586944
Stored 59872 features to FME feature store file file `C:\DOCUME~1\konnen\LOCALS~1\Temp\FME_FEATLDa02160'
Restoring features from FME feature store file `C:\DOCUME~1\konnen\LOCALS~1\Temp\FME_FEATLDa02160'
Using Dynamic Writer $Revision: 26873 $ ( $Date: 2006-03-01 10:08:47 -0800 (Wed, 01 Mar 2006) $ ) with module ACAD2004 to write dataset `D:\projects\SENEGAL\PIS plan d'ensemble-301006_new2.dwg'
Module `ACAD2004' API version matches current core version (3.1 20031010).
Writer `ACAD_2' of type `ACAD2004' using group definition keyword `ACAD_2_DEF'
Module `ACAD2004' API version matches current core version ( 3.1 20031010).
AutoCAD Writer: Opening dataset 'D:\projects\SENEGAL\PIS plan d'ensemble-301006_new2.dwg'...
Template file 'D:\projects\SENEGAL\PIS plan d'ensemble-301006.dwg' specified.
AutoCAD Writer will produce an AutoCAD Release2004 compatible file
No AutoCAD font directory specified. All Text and Multi-Text entities will use the default font file 'default.shx'.
Processing AutoCAD File...
Progress : 9.0
Progress : 18.0
Progress : 27.0
Progress : 36.0
Progress : 45.0
Progress : 54.0
Progress : 63.0
Progress : 72.0
Progress : 81.0
Progress : 90.0
Progress : 99.0
Processing AutoCAD File...
Processing AutoCAD File...
AutoCAD Writer: Shape file ' ltypeshp.shx' or 'ltypeshp.shx' not found when trying to resolve shape ''.
Bulge specified for feature must have a value for each feature vertex.  Bulge of 'ltypeshp.shx' is too short.
A fatal error has occurred. Check the logfile above for details.
Error occurred in writing to AutoCAD 2004 file
Stored 59872 features to FME feature store file file `C:\DOCUME~1\konnen\LOCALS~1\Temp\FME_FEATLDa02160_1'
Error occurred in writing to AutoCAD 2004 file
Progress : 9.0
Progress : 18.0
Progress : 27.0
Progress : 36.0
Progress : 45.0
Progress : 54.0
Progress : 63.0
Progress : 72.0
Progress : 81.0
Progress : 90.0
Progress : 99.0
Progress : 9.0
Progress : 18.0
Progress : 27.0
Progress : 36.0
Progress : 45.0
Progress : 54.0
Progress : 63.0
Progress : 72.0
Progress : 81.0
Progress : 90.0
Progress : 99.0
AutoCAD Writer: Successfully closed writer.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Feature output statistics for `ACAD2004' writer using keyword `ACAD_2':
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
                               Features Written
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Bati                                                                     27086
Hachures                                                                    59
==============================================================================
Total Features Written                                                   27145
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Error occurred in writing to AutoCAD 2004 file
FME Session Duration: 35.6 seconds. (CPU: 29.2s user, 1.8s system)

Error occurred in writing to AutoCAD 2004 file
Program Terminating

Translation FAILED.




Thanks for your help!
Jeff

PS: If this does not work, do you know another way to apply an affine transformation to a DWG file? I know the ESRI WLD Files, but I think Autocad ignores them, and the data I am transforming should be opened in AutoCad again.

__._,_.___

For insights into what's up at Safe Software and what's on the development horizon, visit Safe's blog at spatial-etl.blogspot.com.

Safe Software has also made slides available that outline enhancements planned for FME 2007. The slides are from the "Road Ahead" presentation given on Day 2 of the FME Worldwide Users Conference. To view these slides, visit www.safe.com/2006uc.





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to