DWF

Reply
Member
XSattamX
Posts: 4
Registered: ‎08-09-2011
Message 1 of 6 (447 Views)

Incorrect dwfx coordinates using dwf toolkit 7.6

447 Views, 5 Replies
08-09-2011 08:26 AM

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

Member
XSattamX
Posts: 4
Registered: ‎08-09-2011
Message 2 of 6 (446 Views)

Re: Incorrect dwfx coordinates using dwf toolkit 7.6

08-09-2011 08:28 AM in reply to: XSattamX

The Read2DDWFxFile.cpp sample is posted in the following thread (Adding text to dwf):

 

http://forums.autodesk.com/t5/DWF/Adding-text-to-a-DWF/td-p/2611898

 

 

 

Employee
SilviaCao
Posts: 136
Registered: ‎06-07-2009
Message 3 of 6 (440 Views)

Re: Incorrect dwfx coordinates using dwf toolkit 7.6

08-10-2011 12:11 AM in reply to: XSattamX

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.
Member
XSattamX
Posts: 4
Registered: ‎08-09-2011
Message 4 of 6 (433 Views)

Re: Incorrect dwfx coordinates using dwf toolkit 7.6

08-10-2011 06:51 AM in reply to: SilviaCao

I used your sample code but I got incorrect coordinates for text objects.

 

I attached sample code and result file.

Employee
SilviaCao
Posts: 136
Registered: ‎06-07-2009
Message 5 of 6 (428 Views)

Re: Incorrect dwfx coordinates using dwf toolkit 7.6

08-11-2011 02:40 AM in reply to: XSattamX

The sample code has error, I have updated the Read2DDWFxFile.cpp; please test again.



Silvia Cao
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Member
XSattamX
Posts: 4
Registered: ‎08-09-2011
Message 6 of 6 (412 Views)

Re: Incorrect dwfx coordinates using dwf toolkit 7.6

08-18-2011 06:55 AM in reply to: SilviaCao

Finally I got correct output, thank you Silvia you really helped me.:smileyhappy:

 

I am very grateful:smileyvery-happy:

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community