高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】print plot dialog
print plot dialog
print plot dialog
hi,
we've an opendesign based viewer embedded in our application.
for print plot purposal we're looking for some features acad has:
- the possibility to define and use a plot scale.
- support for plotstyletables to map colors an penweights.
is there an alliance member who allready developed a plot dialog (mfc) and is willing to provide it to us??
btw we might be prepared to pay for it!
thanks.
hi,
sorry for not replying to your post earlier.
we're using the dwgdirect library to make our cad system caddie work with dwg files as a native format. we've done plotting functions a while ago by ourselves because the dwgdirect plotting functionality did not cover our issues.
you can see the attached dialogue snap shots (they are from the caddie system). we do support plot styles - i.e. matching a color to an rgb color and a llineweight, as well as such print properties as plot scale (1:2, 1:50, scaled to fit), plot centered, plot offset, etc. the print rectangle can be adjusted to print the current window, drawing extents, sheet, etc.
moreover, we have added additional property to the oddbviewport entity and now we're able to print 2 viewports on the same sheet with different plot styles (this was our users issue).
in addition, we're doing some lower level communications with the printer than the standard provided in mfc, so that we can combine on one and the the same dialogue both plot information from the dwg file and plot information from the printer. you can see on the attached plotdlg.jpg that you can adjust for example both the paper size (which are get/set from the printer drivers) and the plot scale (which is read from the dwg file).
on the other dialogue, plotstylesdlg.jpg, you can see our plotstyles dialogue, which is used to manage the plot styles.
of course not everything is ideal and we have some limitations - one of them for example is that we do not print 3d rotated raster images yet - it was not of the highest priorities for us and that's why it is still not fixed. (btw i don't know whether it can be of a big priority for you without any further discussion).
unfortunately this plot functionality is not a separated module in our software as it should be (we were very pressured by our time scales) and it will cost us time to pack it in a separate library for being used outside caddie.
if you are interested in it, then we can discuss which is the best way that we can share it with you or any other dwgdirect member.
attached images (37.1 kb, 69 views)
(55.1 kb, 54 views)
best regards
chudomir
plots and plotstyles
chudomir,
i'd be interested in the code for these two dialogs as well...
tyler
hi,
unfortunately i鈥檓 not permitted to give you the source code directly 鈥?the base reason is that it is too large and too bound to our internal modules and publishing it to a understandable level would bring to publishing a lot of the source code of our system.
however, we would be glad to share the functionality with you but would need some time to explore it and decide how to pack it. we鈥檙e just in an ending of a milestone and simply don鈥檛 have enough time - the next week (wednesday) we鈥檒l be able to take time to work on it.
meanwhile any questions are welcome. it would be usefull for us to know your needs about plotting.
best regards
chudomir
|