<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Is it possible to obtain the sheet size (height and width of a sheet model) in order to use these in a constraint variable?</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/187422/is-it-possible-to-obtain-the-sheet-size-height-and-width-of-a-sheet-model-in-order-to-use-these-in-a-constraint-variable</link><description>I&amp;#39;d like to develop a parametric drawing border cell that automatically changes size using 2D constraints and dimension constraints. I just started working with constraints and parametric cells. Is it perhaps necessary to first define item types that</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Is it possible to obtain the sheet size (height and width of a sheet model) in order to use these in a constraint variable?</title><link>https://communities.bentley.com/thread/550319?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 07:27:42 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2e101a75-c8d9-40d1-b450-bcea63ab2996</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="1011440" url="~/products/programming/microstation_programming/f/microstation-programming---forum/187422/is-it-possible-to-obtain-the-sheet-size-height-and-width-of-a-sheet-model-in-order-to-use-these-in-a-constraint-variable"]Is it possible to obtain the height and width of a sheet model?[/quote]
&lt;p&gt;The &lt;code&gt;SheetDefinition&lt;/code&gt; object may provide what you want...&lt;/p&gt;
&lt;pre&gt;Dim sheetDef As SheetDefinition
Set sheetDef = oModel.GetSheetDefinition&lt;/pre&gt;
&lt;p&gt;There&amp;#39;s more information in VBA help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>