<?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 How to insert table to the right upper corner of the drawing in 3D Part &amp; Assembly Design</title>
    <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/How-to-insert-table-to-the-right-upper-corner-of-the-drawing/m-p/117292#M33103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; when I am creating new table or inserting it by ProDrawingTableCreate or ProDwgtableRetrieve I have to specify the origin - the point where the table is inserted.&lt;/P&gt;&lt;P&gt;This point is in screen coordinates, but I need to place the table to concrete position (for example right upper corner) on the drawing, not on screen. How to recalculate the drawing position to the screen coordinates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;BR /&gt;&lt;STRONG&gt;This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread.  You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist. &lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Dec 2020 01:41:50 GMT</pubDate>
    <dc:creator>TomasLoun</dc:creator>
    <dc:date>2020-12-13T01:41:50Z</dc:date>
    <item>
      <title>How to insert table to the right upper corner of the drawing</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/How-to-insert-table-to-the-right-upper-corner-of-the-drawing/m-p/117292#M33103</link>
      <description>Hi, when I am creating new table or inserting it by ProDrawingTableCreate or ProDwgtableRetrieve I have to specify the origin - the point where the table is inserted.This point is in screen coordinates, but I need to place the table to concrete position (for example right upper corner)</description>
      <pubDate>Sun, 13 Dec 2020 01:41:50 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/How-to-insert-table-to-the-right-upper-corner-of-the-drawing/m-p/117292#M33103</guid>
      <dc:creator>TomasLoun</dc:creator>
      <dc:date>2020-12-13T01:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert table to the right upper corner of the drawing</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/How-to-insert-table-to-the-right-upper-corner-of-the-drawing/m-p/117293#M33104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When placing the table, right after selecting the table file a little window pops up that allows to switch to placement based on absolute coords of the drawing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you got the table origin at the correct corner of the table you could just specify absolute drawing coords of the corner of your drawing to place it there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's just too bad i can't post a picture of the window cause i have no available Creo licence at the moment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 09:51:36 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/How-to-insert-table-to-the-right-upper-corner-of-the-drawing/m-p/117293#M33104</guid>
      <dc:creator>James62</dc:creator>
      <dc:date>2016-09-22T09:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert table to the right upper corner of the drawing</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/How-to-insert-table-to-the-right-upper-corner-of-the-drawing/m-p/117294#M33105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need the transformation matrix from drawing coordinates to screen coordinates.&lt;/P&gt;&lt;P&gt;What I found that work best for me is to get the transformation from screen to drawing coordinates first using ProDrawingSheetTrfGet function&lt;/P&gt;&lt;P&gt;Then I calculate the inverse matrix. Use the inverse matrix in ProPntTrfEval function to get the screen coordinates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;status = ProDrawingSheetTrfGet(drawing,1,drw_size,matrix1);&lt;/P&gt;
&lt;P&gt;ProUtilMatrixInvert(matrix1,matrix2);&lt;/P&gt;
&lt;P&gt;ProPntTrfEval(drw_point,matrix2,scr_point);&lt;/P&gt;
&lt;P&gt;status = ProDwgtableRetrieve(drawing, tableName, table_path, 0, scr_point, NULL, NULL, &amp;amp;table);&lt;/P&gt;
&lt;P&gt;status = ProDwgtableDisplay(&amp;amp;table);&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You can find the ProUtilMatrixInvert function in &amp;lt;Creo load point&amp;gt;\protoolkit\protk_appls\pt_examples\pt_utils\UtilMatrix.c&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 13:25:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/How-to-insert-table-to-the-right-upper-corner-of-the-drawing/m-p/117294#M33105</guid>
      <dc:creator>GabrielZaha</dc:creator>
      <dc:date>2016-09-22T13:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert table to the right upper corner of the drawing</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/How-to-insert-table-to-the-right-upper-corner-of-the-drawing/m-p/117295#M33106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gabriel, this is what I was looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 14:18:37 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/How-to-insert-table-to-the-right-upper-corner-of-the-drawing/m-p/117295#M33106</guid>
      <dc:creator>TomasLoun</dc:creator>
      <dc:date>2016-09-22T14:18:37Z</dc:date>
    </item>
  </channel>
</rss>

