Message 1 of 1
Plotting problem
Not applicable
05-30-2002
11:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, all!
I'm trying to do a simple routine that will plot a window in AutoCAD. Thi is
what i've done so far:
AcDbPlotSettingsValidator *pValidator =
acdbHostApplicationServices()->plotSettingsValidator();
AcApLayoutManager *pLayoutManager =
(AcApLayoutManager*)acdbHostApplicationServices()->layoutManager();
AcDbLayout *pLayout = pLayoutManager->findLayoutNamed("MODEL",true);
if (pLayout == NULL)
{
return 0;
}
pValidator->refreshLists(pLayout);
// set the window area
pValidator->setPlotWindowArea(pLayout, 12565.0, -3638.15, 15735.0, 1163.0);
// 'Auto HP LaserJet 6L on NETSERVER.pc3' is a vlid PC3 file is a valid PC3
file!!
pValidator->setPlotCfgName(pLayout, "Auto HP LaserJet 6L on
NETSERVER.pc3");
pLayout->close();
Now, I think I managed to set main parameters for plotting. But, I'm missing
the function that will actualy PLOT something out!
I'm getting desperate, I've checked the ObjectARX Knowledge Base on ADN
website and I found some examples with IAcadPlot, IAcadApplication... but i
couldn't figure it out.
Any idea? I'm getting realy desperate.
Robert
I'm trying to do a simple routine that will plot a window in AutoCAD. Thi is
what i've done so far:
AcDbPlotSettingsValidator *pValidator =
acdbHostApplicationServices()->plotSettingsValidator();
AcApLayoutManager *pLayoutManager =
(AcApLayoutManager*)acdbHostApplicationServices()->layoutManager();
AcDbLayout *pLayout = pLayoutManager->findLayoutNamed("MODEL",true);
if (pLayout == NULL)
{
return 0;
}
pValidator->refreshLists(pLayout);
// set the window area
pValidator->setPlotWindowArea(pLayout, 12565.0, -3638.15, 15735.0, 1163.0);
// 'Auto HP LaserJet 6L on NETSERVER.pc3' is a vlid PC3 file is a valid PC3
file!!
pValidator->setPlotCfgName(pLayout, "Auto HP LaserJet 6L on
NETSERVER.pc3");
pLayout->close();
Now, I think I managed to set main parameters for plotting. But, I'm missing
the function that will actualy PLOT something out!
I'm getting desperate, I've checked the ObjectARX Knowledge Base on ADN
website and I found some examples with IAcadPlot, IAcadApplication... but i
couldn't figure it out.
Any idea? I'm getting realy desperate.
Robert