<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Plot area to be moved in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/plot-area-to-be-moved/m-p/6980316#M8454</link>
    <description>&lt;P&gt;You have to translate coordinats from WCS (or UCS) to DCS with acedTrans function.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2017 04:19:53 GMT</pubDate>
    <dc:creator>Alexander.Rivilis</dc:creator>
    <dc:date>2017-03-29T04:19:53Z</dc:date>
    <item>
      <title>Plot area to be moved</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/plot-area-to-be-moved/m-p/6980182#M8453</link>
      <description>&lt;P&gt;I set the properties for plotting like this&lt;/P&gt;&lt;PRE&gt;			es = pPlotSettingsValidator-&amp;gt;setPlotCfgName(pLayout, sPrinterPath);	
			if (Acad::eOk != es) acutPrintf(L"\n setPlotCfgName: %s\n", acadErrorStatusText(es));
			es = pPlotSettingsValidator-&amp;gt;setCurrentStyleSheet(pLayout, strSheetStyle);	
			if (Acad::eOk != es) acutPrintf(L"\n setCurrentStyleSheet: %s\n", acadErrorStatusText(es));
			es = pPlotSettingsValidator-&amp;gt;setPlotCentered(pLayout, true);	//居中打印
			if (Acad::eOk != es) acutPrintf(L"\n setPlotCentered: %s\n", acadErrorStatusText(es));
			es = pPlotSettingsValidator-&amp;gt;setPlotWindowArea(pLayout, ptMin.x, ptMin.y, ptMax.x, ptMax.y); 
			if (Acad::eOk != es) acutPrintf(L"\n setPlotWindowArea: %s\n", acadErrorStatusText(es));
			es = pPlotSettingsValidator-&amp;gt;setPlotType(pLayout, AcDbPlotSettings::kWindow);
			if (Acad::eOk != es) acutPrintf(L"\n setPlotType: %s\n", acadErrorStatusText(es));&lt;/PRE&gt;&lt;P&gt;but in some dwg-files, the real plotting area has a offset to the area defined by ptMIn and ptMax, like the pic shows. The continuous areas are defined by ptMins and ptMaxs, and the dashed area are the CAD actually plot.&lt;/P&gt;&lt;P&gt;How can I remove this offset?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QQ截图20170329095722.png" style="width: 486px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/338750iDC2C428CE02E2E1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="QQ截图20170329095722.png" alt="QQ截图20170329095722.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 02:06:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/plot-area-to-be-moved/m-p/6980182#M8453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-29T02:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Plot area to be moved</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/plot-area-to-be-moved/m-p/6980316#M8454</link>
      <description>&lt;P&gt;You have to translate coordinats from WCS (or UCS) to DCS with acedTrans function.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 04:19:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/plot-area-to-be-moved/m-p/6980316#M8454</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2017-03-29T04:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Plot area to be moved</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/plot-area-to-be-moved/m-p/6980339#M8455</link>
      <description>&lt;P&gt;Thank you very much, it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And may be it's better for the document to point out the DCS int the function:&lt;/P&gt;&lt;PRE&gt;AcDbPlotSettingsValidator::setPlotWindowArea Function

virtual Acad::ErrorStatus
setPlotWindowArea(
AcDbPlotSettings* pPlotSet,
const double xmin,
const double ymin,
const double xmax,
const double ymax) = 0;

pPlotSet Input pointer to AcDbPlotSettings object 
xmin Input lower left x-coordinate of window 
ymin Input lower left y-coordinate of window 
xmax Input upper right x-coordinate of window 
ymax Input upper right y-coordinate of window 

If a plot type of kWindow is selected, then these coordinates define the portion of the layout to plot. The arguments specify the two points in paperspace positioned on the output media.&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Mar 2017 04:43:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/plot-area-to-be-moved/m-p/6980339#M8455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-29T04:43:40Z</dc:date>
    </item>
  </channel>
</rss>

