Dear Master,I wanna export TSimpleGraph file to AutoCAD

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

Dear Master,I wanna export TSimpleGraph file to AutoCAD

Postby huzhangyou2002 » April 9th, 2007, 6:25 am

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
huzhangyou2002
Member
Member
 
Posts: 3
Joined: April 9th, 2007, 6:14 am

Postby HPW » April 9th, 2007, 6:52 am

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.
Hans-Peter
HPW
Moderator
Moderator
 
Posts: 238
Joined: February 25th, 2006, 10:19 am
Location: Germany

Postby huzhangyou2002 » April 10th, 2007, 5:39 am

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
huzhangyou2002
Member
Member
 
Posts: 3
Joined: April 9th, 2007, 6:14 am

Postby HPW » April 10th, 2007, 6:34 am

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.
Hans-Peter
HPW
Moderator
Moderator
 
Posts: 238
Joined: February 25th, 2006, 10:19 am
Location: Germany

Many Thanx!

Postby huzhangyou2002 » April 12th, 2007, 12:38 pm

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!
huzhangyou2002
Member
Member
 
Posts: 3
Joined: April 9th, 2007, 6:14 am


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 4 guests

cron