几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】cant get plotstylesheetlis (http://www.dimcax.com/hust/showthread.php?t=15367)

yang686526 2009-05-04 05:33 PM

【转帖】cant get plotstylesheetlis
 
can't get plotstylesheetlist
can't get plotstylesheetlist
i want to get plotstylesheetlist:
m_pvalidator->plotstylesheetlist(psslist);
but the list is null.i don't know why.
could you help me?
at frist you should check if you have plotsettingsvalidator module loaded. your application should include next strings like in odamfcapp.cpp.
odrx_declare_static_module_entry_point(odplotsetti ngsvalidatormodule);
drx_define_static_application(l"plotsettingsvalida tor", odplotsettingsvalidatormodule)
and
:drxdynamiclinker()->loadapp(l"plotsettingsvalidator");
also you should init ddplotstylepaths system variable to plotstylesheet folder.
code:
void codamfcappapp::initplotstylesheetenv()
{
cstring env(_t("ddplotstylepaths="));
odstring stylesheetfiles = findconfigpath( l"printerstylesheetdir" );
_tputenv( env + cstring((lpctstr)stylesheetfiles) );
}
thank you very much!


所有的时间均为北京时间。 现在的时间是 09:44 PM.