Community
DWF
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DWF ASCII Output incomplete

6 REPLIES 6
Reply
Message 1 of 7
GBGB1360
663 Views, 6 Replies

DWF ASCII Output incomplete

Hi all,

 

I am trying to output the DWF in the attached ZIP file using the Toolkit. The code I am using is included. The output text file is incomplete. Only a few objects are recorded.

What am I doing wrong?

Any help would be appreciated.

 

Gabriel

6 REPLIES 6
Message 2 of 7
SilviaCao
in reply to: GBGB1360

You are right to output the ASCII DWF.

 

Some binary data (like image) that cannot output to ASCII; there are two ways:

1. Call function

     set_allow_binary_data(WD_True);

This will allow the binary data output to the ASCII text file;

 

2. Extract the image data manually.

 

Please let me know if you have any questions.



Silvia Cao
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Message 3 of 7
GBGB1360
in reply to: SilviaCao

Hi Silvia,

 

I tried set_allow_binary_data (true) too, but that didn't help. There is no image in the DWF, as far as I can tell anyway.

 

Thanks

 

Gabriel

Message 4 of 7
SilviaCao
in reply to: GBGB1360

The DWF file contains multi-w2ds; we need to process each of them, which means we need to process each resources with the role kzRole_Graphics2dOverlay and kzRole_Graphics2d.

 

Please let me know if you have any further questions.



Silvia Cao
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Message 5 of 7
GBGB1360
in reply to: SilviaCao

Sylvia,

 

Thanks for your help. Using kzRole_Graphics2dOverlay seems to output the contents.

I notice that many of the entities I am interested in, e.g. Texts appear to be in  "Macro" sections. How can I access them in "Macro" sections? See the files (map2.dwf and map2.txt attached).

Also,what do f, F, Node and Contour in the text file represent? I need to be able to read the geometries and fill colors. At the moment, I am only able to read the polylines. I need to access the fills and their colors.

 

Thanks again for your help.

 

Gabriel

Message 6 of 7
SilviaCao
in reply to: GBGB1360

The entities you are interested:

  1. Macro, a display list.
  2. Fill Mode, “f”, turn off; “F”, turn on.
  3. Contour, the polygonal shaded region.
  4. Node, a group of drawing objects; which can be used to provide enhanced features for object display and selection.

 

You can download the DWF Toolkit help documents for more information.



Silvia Cao
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Message 7 of 7
GBGB1360
in reply to: SilviaCao

Thanks Silivia, but I don't find any document describing the various entitiy codes. All the documents I see are class descriptions from header files. Which specific document describes the various codes?

 

I am stuck on reading the data in the macro sections. For example, in the fragment below, how do I access the text '16TH ST' within the macro (macro_draw)? I am able to get the point coordinates (824070658,708964720) but not the text.

Also, what does the "Overpost" mean?

 

Thanks again.

 

   G 1
S -1012331
   M 1 824070658,708964720))
(Macro 1 1012331 (
   (Text 0,0 'S. 16TH ST.')))
(Overpost FirstFit True True (
(Font (Rotation 16071)) 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost

 

”Tips

 

”Services