Hi,
There is a native command to create FDO object from CAD geometry, but all fields are empty.
To extend my plug-in, I begin to develop a command to create geometry, but also transfer properties (CAD and/or Object data) to FDO fields.
Now it works for Point (Z) from POINT, INSERT and TEXT, and Line (Z) geometry from LINE and (LW)POLYLINE for connexion to SHP and SDF files.
But I've some questions for curved geometry (arc, circle and polyline with arc)
When using native command, from curved polyline, I obtain a curve geometry in may DWG connected to SHP (even after CheckIn)
But if I save, close, and reopen my DWG, I obtain same geometry,
but if I drag&drop the SHP file into antoher drawing, I obtain a geometry with lots of vertex.
I think that in first case, curved geometry is stored in the cache (GWS file), and in second case, geometry appears like it is really stored in SHP. If I erase GWS file from cache directory, and reopen my original file, I obtain same geometry with all vertex.
My question is : does AutoCAD Map transform automaticaly geometry from curve to segment according to FDO capabilities of driver or is it necessary to read mapshp.ini (section [Arc Discretization) or mapexport.ini (section [FDO_SHP] or [FDO_SDF] : Driver:FME_ARC_DEGREES_PER_EDGE and Driver:FME_ARC_CHORD_DISTANCE) to transform curved portion of geometry when using .Net UpdateFeatures method on an MgLayerBase
If not, where/how can I query FDO driver (or MgGeometricPropertyDefinition) to know if curve are supported as stored geometry or not?
My other question is how can I test all FDO possible connexion, because I haven't Oracle Server or ArcGIS server or ... on my PC?
Thanks a lot.
Olivier Eckmann
Hi,
There is a native command to create FDO object from CAD geometry, but all fields are empty.
To extend my plug-in, I begin to develop a command to create geometry, but also transfer properties (CAD and/or Object data) to FDO fields.
Now it works for Point (Z) from POINT, INSERT and TEXT, and Line (Z) geometry from LINE and (LW)POLYLINE for connexion to SHP and SDF files.
But I've some questions for curved geometry (arc, circle and polyline with arc)
When using native command, from curved polyline, I obtain a curve geometry in may DWG connected to SHP (even after CheckIn)
But if I save, close, and reopen my DWG, I obtain same geometry,
but if I drag&drop the SHP file into antoher drawing, I obtain a geometry with lots of vertex.
I think that in first case, curved geometry is stored in the cache (GWS file), and in second case, geometry appears like it is really stored in SHP. If I erase GWS file from cache directory, and reopen my original file, I obtain same geometry with all vertex.
My question is : does AutoCAD Map transform automaticaly geometry from curve to segment according to FDO capabilities of driver or is it necessary to read mapshp.ini (section [Arc Discretization) or mapexport.ini (section [FDO_SHP] or [FDO_SDF] : Driver:FME_ARC_DEGREES_PER_EDGE and Driver:FME_ARC_CHORD_DISTANCE) to transform curved portion of geometry when using .Net UpdateFeatures method on an MgLayerBase
If not, where/how can I query FDO driver (or MgGeometricPropertyDefinition) to know if curve are supported as stored geometry or not?
My other question is how can I test all FDO possible connexion, because I haven't Oracle Server or ArcGIS server or ... on my PC?
Thanks a lot.
Olivier Eckmann
Hi,
For my 1st question, according my tests, it seems to be automatic. If FDO driver support curved segment, they are stored as curve, but if not, they are converted into smal straight segment.
At work, I succed to borrow an ArcGis licence, so I can make test with gbd database.
I've another question : some fields accept a list of possible value, but I don't find where I can read this information.
Thanks.
Olivier Eckmann
Hi,
For my 1st question, according my tests, it seems to be automatic. If FDO driver support curved segment, they are stored as curve, but if not, they are converted into smal straight segment.
At work, I succed to borrow an ArcGis licence, so I can make test with gbd database.
I've another question : some fields accept a list of possible value, but I don't find where I can read this information.
Thanks.
Olivier Eckmann
Hi,
I'm still making progress on the subject.
I'm trying to create 2400 point objects in an ESRI GDB from 2400 blocks with 10 OD fields to 10 FDO fields. It takes 10 minutes.
If I do a Bulkcopy to an SDF file, and connect and launch the creation of these 2400 objects, it's 10 times faster, i.e. 1 minute.
The (other) problem is that once the transfer to SDF is complete, I get a single FDO object for each CAD object.
When I do the same to ESRI, I get 2 Feature Objects. If I quit and reopen the DWG, I still get 2 objects.
If I quit AutoCAD, then in the MapCache folder, delete the GWS and XML files, then reopen my original DWG, I get only one FDO object. It's as if CheckIn wasn't cleaning up the cache properly.
Have you ever encountered this type of problem when connecting to an ESRI GDB?
Thanks
Olivier Eckmann
Hi,
I'm still making progress on the subject.
I'm trying to create 2400 point objects in an ESRI GDB from 2400 blocks with 10 OD fields to 10 FDO fields. It takes 10 minutes.
If I do a Bulkcopy to an SDF file, and connect and launch the creation of these 2400 objects, it's 10 times faster, i.e. 1 minute.
The (other) problem is that once the transfer to SDF is complete, I get a single FDO object for each CAD object.
When I do the same to ESRI, I get 2 Feature Objects. If I quit and reopen the DWG, I still get 2 objects.
If I quit AutoCAD, then in the MapCache folder, delete the GWS and XML files, then reopen my original DWG, I get only one FDO object. It's as if CheckIn wasn't cleaning up the cache properly.
Have you ever encountered this type of problem when connecting to an ESRI GDB?
Thanks
Olivier Eckmann
Hi,
For doubled objects, this was due to a write error and the cached database was in an unstable state that prevented it from working properly. Now it works properly.
There's still the very long creation time.
Olivier Eckmann
Hi,
For doubled objects, this was due to a write error and the cached database was in an unstable state that prevented it from working properly. Now it works properly.
There's still the very long creation time.
Olivier Eckmann
Hi,
I'm still working on my explort plug-in.
With 2500 blocks with 10 fields to an ESRI gdb file, export process takes 10 minutes and RAM used by acad.exe proccess grows up to 13 Go.
If I add a thematic rule on text field to change my block according to its type, and color of Line according to another text field value
Then I launch export with exactly same data to gdb :
AutoCAD uses 150Go of RAM, and crashes after 1 hour.
I don't understand link between stylisation of OD field and creation of FDO feature.
Perhaps it's necessary to unlock stylisation before export. Is there an API for that?
Thanks for any ideas.
Olivier
Olivier Eckmann
Hi,
I'm still working on my explort plug-in.
With 2500 blocks with 10 fields to an ESRI gdb file, export process takes 10 minutes and RAM used by acad.exe proccess grows up to 13 Go.
If I add a thematic rule on text field to change my block according to its type, and color of Line according to another text field value
Then I launch export with exactly same data to gdb :
AutoCAD uses 150Go of RAM, and crashes after 1 hour.
I don't understand link between stylisation of OD field and creation of FDO feature.
Perhaps it's necessary to unlock stylisation before export. Is there an API for that?
Thanks for any ideas.
Olivier
Olivier Eckmann
Can't find what you're looking for? Ask the community or share your knowledge.