DWF
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Incorrect dwfx coordinate s using dwf toolkit 7.6
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I used the the sample Read2DDWFxFile.cpp to load dwfx files using dwf toolkit 7.6 but the coordinates are incorrect for some objects, for example: text coordinates are very far from polyline coodinates, this means that one of them has incorrect transformation that makes the object shifted.
I used process_next_object() and the objects are processed by my callbacks.
I am facing this problem with all dwfx files I have.
Is it a bug in dwf toolkit or should I do some transformations for incorrect objects ?
I attached a sample dwfx file showing the problem.
thanks in advance,
Sattam
Re: Incorrect dwfx coordinate s using dwf toolkit 7.6
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
The Read2DDWFxFile.cpp sample is posted in the following thread (Adding text to dwf):
http://forums.autodesk.com/t5/DWF/Adding-text-to-a
Re: Incorrect dwfx coordinate s using dwf toolkit 7.6
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thank you for your questions.
I output the text coordinates and polyline coordinates, they are not far from each other (attach the Read2DDWFxFile.cpp and the output file).
Please test again; if issue still exist, please attach your sample codes and result file for us to research.

Silvia Cao
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Re: Incorrect dwfx coordinate s using dwf toolkit 7.6
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I used your sample code but I got incorrect coordinates for text objects.
I attached sample code and result file.
Re: Incorrect dwfx coordinate s using dwf toolkit 7.6
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
The sample code has error, I have updated the Read2DDWFxFile.cpp; please test again.

Silvia Cao
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Re: Incorrect dwfx coordinate s using dwf toolkit 7.6
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Finally I got correct output, thank you Silvia you really helped me.![]()
I am very grateful![]()

