Plotting problem

Plotting problem

Anonymous
Not applicable
265 Views
0 Replies
Message 1 of 1

Plotting problem

Anonymous
Not applicable
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
0 Likes
266 Views
0 Replies
Replies (0)