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

Write to existing DWF file

2 REPLIES 2
Reply
Message 1 of 3
piterek20003
277 Views, 2 Replies

Write to existing DWF file

Hi,

I can use the DWF Toolikt to create a new DWF file. How can I open an existing DWF file and add couple of lines on a specific page, that already exists and has something on it.

Thanks!
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: piterek20003

You would write a program to read the existing file.

1. open DWF file for reading
2. open new DWF file for writing
3. read an item from the DWF file
4. while you haven't reached where you want to stop
a. write the item to the new DWF file
b. read the next item from the DWF file
5. write the last item from the loop to the new DWF file
6. write the new items you wish to insert
7. read the next item from the DWF file
8. while you haven't reached the end of the file
a. write the item to the new DWF file
b. read the next item from the DWF file
9. close the new DWF file for writing
10. close the DWF file for reading

This is an oversimplification, but you get the idea. The processing really
involves reading the manifest, reading the 2D sections, etc.

wrote in message news:5306460@discussion.autodesk.com...
Hi,

I can use the DWF Toolikt to create a new DWF file. How can I open an
existing DWF file and add couple of lines on a specific page, that already
exists and has something on it.

Thanks!
Message 3 of 3
piterek20003
in reply to: piterek20003

I understand most of the process and know how to do it.

Can you please just tell me how can I get the WT_File from a given DWF page that I read? I am assuming that this is what I need to get in order to write to the page, correct??

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

Post to forums  

”Boost

 

”Tips

 

”Services