DWF

DWF

Reply
Active Member
voicon
Posts: 8
Registered: ‎12-30-2011
Message 1 of 2 (1,001 Views)

How to modify a specified object in DWF file ( w2d)

1001 Views, 1 Replies
01-10-2012 10:40 PM

Hi all,

I could read all objects in DWF file ( with w2d package inside ) by using samples in DWF Toolkit.

But I don't know how to get the handle of specified object because I need to modify this objects (ex: change description, edit the text, or add hyperlink...)

 

Ex: I have a DWF file with 2 pipe line inside, anyone can tell me how to get one pine line and modify this line (such as: change the description, tag or add hyperlink ) ?

 

Thank you very much.

 

Contributor
binhpt
Posts: 14
Registered: ‎01-17-2012
Message 2 of 2 (978 Views)

Re: How to modify a specified object in DWF file ( w2d)

01-19-2012 12:17 AM in reply to: voicon

i'm researching this solution . And i have just test successfull with my solution :
First you can get direct stream w2d from  dwf package and read all object , after that you can rewrite stream into w2d file .

May be, you can view code rewrite w2d file in http://forums.autodesk.com/t5/DWF/Merging-W2D-Files/td-p/2709055

 

When i rewrite wt_object into another w2d file , i can edit it before writing into file. Example add hyperlink, add data ..v...

 

Last, you can publish w2d file into dwf package by sample code  in dwf toolkit, i refer "SimpleEPlotWriter"

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.