Discussion Groups

All Discussion Groups » DWF

Thread: Draw hatch?!!!


Permlink Replies: 2 - Last Post: Oct 30, 2009 3:04 AM Last Post By: vodka_HN Threads: [ Previous | Next ]
vodka_HN

Posts: 34
Registered: 03/23/09
Draw hatch?!!!
Posted: Oct 21, 2009 8:51 AM
  Click to reply to this thread Reply
Hi all,
Do you know Hatch object in CAD? now I have to convert it into my DWF. With simple hatch, i cant use WT_Polygon to draw( with fill = WD_True), but with more difficult hatch, example it's bounds has many polylines, or example it is a circle and has a hole in center, i don't know how to draw it! Does DWF toolkits has any object which likes region or something likes this?
Thanks in advance!

Edited by: vodka_HN on Oct 21, 2009 9:46 AM
ADR_Jerry

Posts: 33
Registered: 05/08/09
Re: Draw hatch?!!!
Posted: Oct 29, 2009 1:29 AM   in response to: vodka_HN in response to: vodka_HN
  Click to reply to this thread Reply
Thank you for your question.

There is a special description standard of hatch pattern. You can also use user fill pattern. Please refer to the sample project "W2dTest" under directory "\samples\DWFToolkit\W2dTest\" in toolkit package for detailed information and source code of WT_User_Fill_Pattern and WT_User_Hatch_Pattern.

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

Posts: 34
Registered: 03/23/09
Re: Draw hatch?!!!
Posted: Oct 30, 2009 3:04 AM   in response to: ADR_Jerry in response to: ADR_Jerry
  Click to reply to this thread Reply
Thanks Jerry for reply,
I alreadly sloved this problem. In this case, I use WT_Counter_Set to draw Hatch with hole or island in it.

Best regards,