query regarding oddbhatch:

redefined patterns
query regarding oddbhatch:

redefined patterns
hi all..
i have developed an mfc application using the library dwg direct 1.11.01.00. i also provided hatching of polylines. it works.!!
but i have used only custom patterns using the following..
phatch->setpattern(oddbhatch::kuserdefined, "test");
phatch->setpatternspace(15);
phatch->setpatternangle(.3);
phatch->setpatterndouble(false);
phatch->sethatchstyle(oddbhatch::knormal);
and also able to use the predefiend patten "solid"..
i have also tried using other predefined patterns like "angle" but it didn't work..
i'm working in a system which doesn't have autocad installed nor have the files acad.pat. i'm using the measurement value of "english" type.
so without those files, am i able to use those predefiend patterns..?
i have tried overriding the function findfile() in my application as given in the odwriteex application..
but i failed to do so..
what could be the reason..
tia
----------------------
regards,
rajesh parameswaran.
rajuinnet
# 30th september 2004, 06:12 am
moderator join date: mar 2002
posts: 2,994
odwriteex sample contains code creating hatch pattern programmatically (my_stars).
if your application use this method no .pat file is required.
sergey slezkin
sslezkin
# 30th september 2004, 11:50 pm
registered user join date: jul 2004
location: india
posts: 82
it works..!!
quote:
originally posted by sergey slezkin
odwriteex sample contains code creating hatch pattern programmatically (my_stars).
if your application use this method no .pat file is required.
hi sergey slezkin,
thank you for your reply..
it works now..
----------
regards,
rajesh parameswaran.
rajuinnet
none
? | ?
thread tools
display modes
linear mode
search this thread
rate this thread
excellent
good
average
bad
terrible
posting rules
you may post new threads
you may post replies
you may post attachments
you may edit your posts
is on
are on
code is off
html code is off
forum jump
user control panel private messages subscriptions who's online search forums forums home general topics news questions and remarks business issues industry commentary general software issues documentation issues future directions dwg libraries dwgdirect.net dwgdirect, c++ version dwgdirectx, activex version adtdirect/c3ddirect opendwg toolkit/viewkit dgn libraries dgndirect, c++ version (2.x+) dgndirect libraries (legacy 0.99xx)
all times are gmt -7. the time now is 12:51 amfff">.
- - -
copyright ?2000 - 2009, jelsoft enterprises ltd.
copyright 1998-2008 open design alliance inc.
odwriteex sample contains code creating hatch pattern programmatically (my_stars).
if your application use this method no .pat file is required.
sergey slezkin
it works..!!
quote:
originally posted by sergey slezkin
odwriteex sample contains code creating hatch pattern programmatically (my_stars).
if your application use this method no .pat file is required.
hi sergey slezkin,
thank you for your reply..
it works now..
----------
regards,
rajesh parameswaran.