Page 1 of 1

Dear Master,I wanna export TSimpleGraph file to AutoCAD

PostPosted: April 9th, 2007, 6:25 am
by huzhangyou2002
Dear Web Master,I wanna export TSimpleGraph file to AutoCAD File,and I have seen several articles about AutoCAD File type,DXF,and so on.

could you tell me how to exchange the TSimpleGraph output file to AutoCAD type. Just gives me some suggestions will be OK.
many thanx.
yours zhangyouhu

PostPosted: April 9th, 2007, 6:52 am
by HPW
Depends on what you want to reach?

You could try to export to WMF/EMF and try autocad's WMF import.

When you want to be able to edit each primitiv in autocad, you have to iterate to the TSimplegraph objects and write each object's geometry with your own exporter code to DXF syntax. Embedded bitmaps and embedded WMF/EMF will be very difficult/impossible.

PostPosted: April 10th, 2007, 5:39 am
by huzhangyou2002
HPW wrote:Depends on what you want to reach?

You could try to export to WMF/EMF and try autocad's WMF import.

When you want to be able to edit each primitiv in autocad, you have to iterate to the TSimplegraph objects and write each object's geometry with your own exporter code to DXF syntax. Embedded bitmaps and embedded WMF/EMF will be very difficult/impossible.


I think you have got my idea.

you have to iterate to the TSimplegraph objects and write each object's geometry with your own exporter code to DXF syntax.


it's real what i want

and Can you give me some more suggestion.? Many thanx

sincerely yours zhangyouhu

PostPosted: April 10th, 2007, 6:34 am
by HPW
Take a look at the HTML-doc and the sample app comming with TSimplegraph.

Look for ForEachObject to iterate through the objectlist.
Then you can check each object for it's propertys and interpret it to your wanted DXF-syntax to write it to a text-file.

Many Thanx!

PostPosted: April 12th, 2007, 12:38 pm
by huzhangyou2002
HPW wrote:Take a look at the HTML-doc and the sample app comming with TSimplegraph.

Look for ForEachObject to iterate through the objectlist.
Then you can check each object for it's propertys and interpret it to your wanted DXF-syntax to write it to a text-file.


Many Thanx!