Discussion Groups

All Discussion Groups » DWF

Thread: Help me get the bounding of all object in Whip file


Permlink Replies: 4 - Last Post: Oct 22, 2009 2:05 AM Last Post By: vodka_HN Threads: [ Previous | Next ]
vodka_HN

Posts: 34
Registered: 03/23/09
Help me get the bounding of all object in Whip file
Posted: Oct 13, 2009 2:06 AM
  Click to reply to this thread Reply
hi all,
I create all my object by Whiptk, then i save it into a w2d file, end then, when i use dwf toolkit to create dwf file, i must define size of paper to plot. Any one know how to get it from whip file?
Thanks in advance!
ADR_Jerry

Posts: 33
Registered: 05/08/09
Re: Help me get the bounding of all object in Whip file
Posted: Oct 21, 2009 12:44 AM   in response to: vodka_HN in response to: vodka_HN
  Click to reply to this thread Reply
Thank you for your question.

DWFToolkit doesn't supply such an interface to get the paper size. You must compute it by yourself. The following is the most simple steps:
1. Compute the bound of all objects;
2. Use the bound as paper size.

For more details, please refer to the specification of Whiptk which you can find in the package of DWFToolkit.

Please let me know if you have any further questions.
vodka_HN

Posts: 34
Registered: 03/23/09
Re: Help me get the bounding of all object in Whip file
Posted: Oct 21, 2009 2:07 AM   in response to: ADR_Jerry in response to: ADR_Jerry
  Click to reply to this thread Reply
Thanks Jerry for reply,
I already sloved this problem. By the way, i have a simple question for you, do you know how to add markup for my dwf sheet? ex, when i want to add page number or my sign on paper's bottom right corner? if use Autodesk Design Review i can do it by hand, but now i want to do it by dwf toolkits! Has anyone try this?
Please give me some idia for slove this question!
Thanks for all.
kaisers

Posts: 2
Registered: 09/23/09
Re: Help me get the bounding of all object in Whip file
Posted: Oct 21, 2009 12:10 PM   in response to: vodka_HN in response to: vodka_HN
  Click to reply to this thread Reply
Hi, This message should answer your question about markups: http://discussion.autodesk.com/forums/thread.jspa?messageID=5717301
There is even some sample code, made by one of the dwf team members. See sample AddMarkup.cpp.
Let me know if you need more info.
vodka_HN

Posts: 34
Registered: 03/23/09
Re: Help me get the bounding of all object in Whip file
Posted: Oct 22, 2009 2:04 AM   in response to: kaisers in response to: kaisers
  Click to reply to this thread Reply
Thanks kaisers for reply,
The link you give to me very usefull, i thing i will sloved my problem.
Best regards,

Edited by: vodka_HN on Oct 22, 2009 2:05 AM