DWF

Reply
Contributor
piterek20003
Posts: 12
Registered: ‎07-11-2006
Message 1 of 3 (83 Views)

Write to existing DWF file

83 Views, 2 Replies
08-24-2006 11:01 AM
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!
*Scott Sheppard \(Autodesk\)
Message 2 of 3 (83 Views)

Re: Write to existing DWF file

08-24-2006 11:25 AM 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!
Contributor
piterek20003
Posts: 12
Registered: ‎07-11-2006
Message 3 of 3 (83 Views)

Re: Write to existing DWF file

08-24-2006 11:32 AM 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??
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.