<?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: Crop Rebar Shape Images in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/crop-rebar-shape-images/m-p/11281759#M18130</link>
    <description>&lt;P&gt;Is not a must but It will ease the computation. I give it a try placing them on drafting view, however the zoom to fit option doesn't help that much as there is no way to control the height.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="miguelgutierrezD74CZ_1-1657153012150.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1088656i85ADDB6169C8C20E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="miguelgutierrezD74CZ_1-1657153012150.png" alt="miguelgutierrezD74CZ_1-1657153012150.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2022 00:22:32 GMT</pubDate>
    <dc:creator>miguel.gutierrezD74CZ</dc:creator>
    <dc:date>2022-07-07T00:22:32Z</dc:date>
    <item>
      <title>Crop Rebar Shape Images</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/crop-rebar-shape-images/m-p/11276667#M18126</link>
      <description>&lt;P&gt;Hi community, the FitToPage enumerate export images using to much white space. Is there any workaround to zoom a little bit more the image just like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="miguelgutierrezD74CZ_1-1656975750777.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1087666iE49E42FFF23CB762/image-size/medium?v=v2&amp;amp;px=400" role="button" title="miguelgutierrezD74CZ_1-1656975750777.png" alt="miguelgutierrezD74CZ_1-1656975750777.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so then Images can have a better visualization of those image in the rebar schedule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;			string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
			ImageExportOptions img = new ImageExportOptions();
			img.PixelSize = 1000;
			img.ImageResolution = ImageResolution.DPI_600;
			img.SetViewsAndSheets(new List&amp;lt;ElementId&amp;gt;{viewDetail.Id});
			img.ExportRange=ExportRange.SetOfViews;
			img.ZoomType = ZoomFitType.FitToPage;
			img.FitDirection = FitDirectionType.Vertical;
			img.HLRandWFViewsFileType=ImageFileType.PNG;
			img.FilePath = Path.Combine(desktopPath,"image1");
			img.ShadowViewsFileType = ImageFileType.PNG;
			detailComponent.ExportImage(img);
			#endregion&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any recommendations tot the image name appropriately as I aimed t&amp;nbsp;se&lt;FONT face="inherit"&gt;o named the image as "image1" but it &lt;/FONT&gt;turns&lt;FONT face="inherit"&gt;&amp;nbsp;out to be "image1 - Floor Plan Ref Level"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 23:08:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/crop-rebar-shape-images/m-p/11276667#M18126</guid>
      <dc:creator>miguel.gutierrezD74CZ</dc:creator>
      <dc:date>2022-07-04T23:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Crop Rebar Shape Images</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/crop-rebar-shape-images/m-p/11277973#M18127</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11924778"&gt;@miguel.gutierrezD74CZ&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;What type of view are you using? I did something similar using a drafting view, and the zoom to fit works fine.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 14:14:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/crop-rebar-shape-images/m-p/11277973#M18127</guid>
      <dc:creator>Organon</dc:creator>
      <dc:date>2022-07-05T14:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Crop Rebar Shape Images</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/crop-rebar-shape-images/m-p/11278045#M18128</link>
      <description>&lt;P&gt;The rebar shape reinforcement is generated on a detail component family so the data is visualized on a ref level plan&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 14:32:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/crop-rebar-shape-images/m-p/11278045#M18128</guid>
      <dc:creator>miguel.gutierrezD74CZ</dc:creator>
      <dc:date>2022-07-05T14:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Crop Rebar Shape Images</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/crop-rebar-shape-images/m-p/11281589#M18129</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;But is it strictly necessary to do it in a plan view?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 21:59:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/crop-rebar-shape-images/m-p/11281589#M18129</guid>
      <dc:creator>Organon</dc:creator>
      <dc:date>2022-07-06T21:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Crop Rebar Shape Images</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/crop-rebar-shape-images/m-p/11281759#M18130</link>
      <description>&lt;P&gt;Is not a must but It will ease the computation. I give it a try placing them on drafting view, however the zoom to fit option doesn't help that much as there is no way to control the height.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="miguelgutierrezD74CZ_1-1657153012150.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1088656i85ADDB6169C8C20E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="miguelgutierrezD74CZ_1-1657153012150.png" alt="miguelgutierrezD74CZ_1-1657153012150.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 00:22:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/crop-rebar-shape-images/m-p/11281759#M18130</guid>
      <dc:creator>miguel.gutierrezD74CZ</dc:creator>
      <dc:date>2022-07-07T00:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Crop Rebar Shape Images</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/crop-rebar-shape-images/m-p/11282744#M18131</link>
      <description>&lt;P&gt;I just provided a suggestion in your other thread on&amp;nbsp;indicating height and width pixels when exporting images:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/indicate-height-and-width-pixels-when-exporting-images/m-p/11281456/highlight/false#M64516" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/indicate-height-and-width-pixels-when-exporting-images/m- p/11281456&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest combining the approach of adding a known frame around the objet to display plus using a PNG trimming tool to remove the known frame and as much white space around it as possible. For instance, you can search GitHub for PNG trim:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/search?q=png+trim" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/search?q=png+trim&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 10:48:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/crop-rebar-shape-images/m-p/11282744#M18131</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-07-07T10:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Crop Rebar Shape Images</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/crop-rebar-shape-images/m-p/11283368#M18132</link>
      <description>&lt;P&gt;Indeed, a trim PNG code is what I might be missing. Gonna look it up how it is done.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 14:58:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/crop-rebar-shape-images/m-p/11283368#M18132</guid>
      <dc:creator>miguel.gutierrezD74CZ</dc:creator>
      <dc:date>2022-07-07T14:58:53Z</dc:date>
    </item>
  </channel>
</rss>

