<?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 Get Drawing Scale for mult. Sheets and Model files in Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1033224#M14463</link>
    <description>&lt;P&gt;I'm asking for a work around, because Toolkit will not work proper in the following scenario (my guess).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have ONE Drawing with 2 Models&lt;/P&gt;
&lt;P&gt;BOX.PRT is active at sheet 1&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;CYL.PRT is active at sheet 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You get the scale with:&amp;nbsp;ProDrawingScaleGet(drawing,solid,sheet,*scale)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If sheet 1 is active, the function&amp;nbsp; ProDrawingCurrentsolidGet() will return BOX.PRT, and now I have the Drawing, the Solid and the Sheet to get the scale, so far - so good.&lt;/P&gt;
&lt;P&gt;But if I activate sheet 2 via Toolkit,&amp;nbsp;ProDrawingCurrentsolidGet() will return BOX.PRT again which is not correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no function to Update the Model Tree. The Drawing tree can be updated but the Model Tree will not reflect the change if I switch to Sheet 2 and display the Model Tree of the CYL.PRT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do I miss something here, or is there a trick. I tried ProDwgSheetRegenerate, Refresh Wind, Solid Model Tree, Regen and so on. But the call to&amp;nbsp;ProDrawingCurrentsolidGet() will always return the model for the sheet number before changing it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does someone has a work around, to get the displayed scale for each sheet of a drawing in this scenario?&lt;/P&gt;</description>
    <pubDate>Wed, 10 Sep 2025 12:06:17 GMT</pubDate>
    <dc:creator>RPN</dc:creator>
    <dc:date>2025-09-10T12:06:17Z</dc:date>
    <item>
      <title>Get Drawing Scale for mult. Sheets and Model files</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1033224#M14463</link>
      <description>&lt;P&gt;I'm asking for a work around, because Toolkit will not work proper in the following scenario (my guess).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have ONE Drawing with 2 Models&lt;/P&gt;
&lt;P&gt;BOX.PRT is active at sheet 1&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;CYL.PRT is active at sheet 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You get the scale with:&amp;nbsp;ProDrawingScaleGet(drawing,solid,sheet,*scale)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If sheet 1 is active, the function&amp;nbsp; ProDrawingCurrentsolidGet() will return BOX.PRT, and now I have the Drawing, the Solid and the Sheet to get the scale, so far - so good.&lt;/P&gt;
&lt;P&gt;But if I activate sheet 2 via Toolkit,&amp;nbsp;ProDrawingCurrentsolidGet() will return BOX.PRT again which is not correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no function to Update the Model Tree. The Drawing tree can be updated but the Model Tree will not reflect the change if I switch to Sheet 2 and display the Model Tree of the CYL.PRT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do I miss something here, or is there a trick. I tried ProDwgSheetRegenerate, Refresh Wind, Solid Model Tree, Regen and so on. But the call to&amp;nbsp;ProDrawingCurrentsolidGet() will always return the model for the sheet number before changing it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does someone has a work around, to get the displayed scale for each sheet of a drawing in this scenario?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 12:06:17 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1033224#M14463</guid>
      <dc:creator>RPN</dc:creator>
      <dc:date>2025-09-10T12:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get Drawing Scale for mult. Sheets and Model files</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1033231#M14464</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;when working with Creo multimodel drawing, user has to&amp;nbsp;&lt;STRONG&gt;set active model&lt;/STRONG&gt; - see Creo 10 picture below.&amp;nbsp;Perhaps there is a method that represents this function. You can ask PTC Support ...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MartinHanak_0-1757507343232.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/128059iD8E23882BE44B526/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MartinHanak_0-1757507343232.png" alt="MartinHanak_0-1757507343232.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 12:30:19 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1033231#M14464</guid>
      <dc:creator>MartinHanak</dc:creator>
      <dc:date>2025-09-10T12:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get Drawing Scale for mult. Sheets and Model files</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1033240#M14465</link>
      <description>&lt;P&gt;Perhaps you could try getting the scale from the view instead of the drawing.&amp;nbsp; This what I do because I rescale the view that contains sheetmetal flat that is parametric driven.&amp;nbsp; &amp;nbsp;Our drawings are created in a consistent manner so I can make some assumptions about qty of views, but this may work for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ProDrawingViewsCollect(p_draw, &amp;amp;views);&lt;/P&gt;&lt;P&gt;for each view:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ProDrawingViewSolidGet(p_draw, views[view], &amp;amp;solid);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ProDrawingViewSheetGet(p_draw, views[view], &amp;amp;sheet);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp; logic here to get intended sheet and model&amp;nbsp; &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;err = ProDrawingViewScaleGet(p_draw, views[viewinc], &amp;amp;VScale);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 13:03:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1033240#M14465</guid>
      <dc:creator>msteffke</dc:creator>
      <dc:date>2025-09-10T13:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Get Drawing Scale for mult. Sheets and Model files</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1033244#M14466</link>
      <description>&lt;P&gt;Yes, with this I can get the scale, but this may not reflect the value in the title block, and this is the one I would need&lt;span class="lia-unicode-emoji" title=":weary_face:"&gt;😩&lt;/span&gt;. Worst case is to parse the drawing table &lt;span class="lia-unicode-emoji" title=":dizzy_face:"&gt;😵&lt;/span&gt;‍&lt;span class="lia-unicode-emoji" title=":dizzy:"&gt;💫&lt;/span&gt; at the current sheet.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 13:36:56 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1033244#M14466</guid>
      <dc:creator>RPN</dc:creator>
      <dc:date>2025-09-10T13:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get Drawing Scale for mult. Sheets and Model files</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1033249#M14468</link>
      <description>&lt;P&gt;Another suggestion:&amp;nbsp; use the view functions in order identify the solid in the view in sheet 2, then pass that solid to&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;ProDrawingScaleGet(drawing,solid,sheet,*scale)&amp;nbsp;&lt;/SPAN&gt;function you were using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ProDrawingViewsCollect(p_draw, &amp;amp;views);&lt;/P&gt;&lt;P&gt;for each view:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ProDrawingViewSolidGet(p_draw, views[view], &amp;amp;solid);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ProDrawingViewSheetGet(p_draw, views[view], &amp;amp;sheet);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp; logic here to get intended sheet and model&amp;nbsp; &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ProDrawingScaleGet(drawing,solid,sheet,*scale)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 14:03:02 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1033249#M14468</guid>
      <dc:creator>msteffke</dc:creator>
      <dc:date>2025-09-10T14:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get Drawing Scale for mult. Sheets and Model files</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1033944#M14478</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/43740"&gt;@RPN&lt;/a&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;I wanted to see if you got the help you needed.&lt;BR /&gt;&lt;BR /&gt;If so, please mark the appropriate reply as the Accepted Solution or please feel free to detail in a reply what has helped you and mark it as the Accepted Solution. It will help other members who may have the same question.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Of course, if you have more to share on your issue, please pursue the conversation.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 15:21:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1033944#M14478</guid>
      <dc:creator>Catalina</dc:creator>
      <dc:date>2025-09-15T15:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get Drawing Scale for mult. Sheets and Model files</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1034046#M14480</link>
      <description>&lt;P&gt;Thanks to the respond off Mr. Steffke, but I was looking for a Toolkit Call to get the right scale value, which is displayed in the title block of a drawing. I will try now to look by the owner of the title block table or a displayed parameter value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ProDrawingScaleGet() needs the drawing and the solid&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ProDrawingCurrentsolidGet() provides the current Solid&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After calling ProDrawingCurrentSheetSet() the Current Solid is not updating, the result of&amp;nbsp;&amp;nbsp;ProDrawingScaleGet may now fail because the solid for the active sheet may now invalid. AT the end I need to know which model was active on inserting the format, or where is the value from. I will investigate&amp;nbsp;ProDwgtable* Calls, maybe this is more succesfully.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ProDtlnoteModelrefGet() seems to work, but this makes&amp;nbsp;ProDrawingScaleGet() worthless on working with multiple model files in one drawing. The Tollkit Call is not updating the active model on switching the sheet, this is an issue in my point of view. On the other hand all this calls need some rework in my point of view. And for this you need to know Row/Col of the scale display &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ProDwgtableCellNoteGet&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;ProDtlnoteDataGet&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;ProDtlnotedataLinesCollect&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;ProDtlnotelineTextsCollect&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;ProDtlnoteModelrefGet&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Uff&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 09:47:53 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1034046#M14480</guid>
      <dc:creator>RPN</dc:creator>
      <dc:date>2025-09-16T09:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get Drawing Scale for mult. Sheets and Model files</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1034067#M14484</link>
      <description>&lt;P&gt;Hi RPN,&lt;/P&gt;&lt;P&gt;what you can alternatively do is to create a temporary ProDtlnote on the first sheet with text "&amp;amp;scale" and free attachment somewhere. Then use&amp;nbsp;ProDtlnoteDataGet with&amp;nbsp;PRODISPMODE_NUMERIC and get the note text again which is now the resolved callout like e.g. "5:1".&lt;/P&gt;&lt;P&gt;After this you can switch to another sheet using ProDrawingCurrentSheetSet and repeat the procedure.&lt;/P&gt;&lt;P&gt;Of course, this will mark the drawing as changed. Potentially this might be addressed using ProMdlnameCopy.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 09:34:13 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1034067#M14484</guid>
      <dc:creator>FabianWolf</dc:creator>
      <dc:date>2025-09-16T09:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get Drawing Scale for mult. Sheets and Model files</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1034072#M14486</link>
      <description>&lt;P&gt;Hello Fabian, yes this may an option. But after some test I will search the Title Block and use&amp;nbsp;ProDtlnoteModelrefGet, I hope this is save, because the active model may not the owner of the displayed text in the title block. So the usage of&amp;nbsp;ProDrawingScaleGet() is no longer clear for me, but I can live with that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 09:52:30 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Get-Drawing-Scale-for-mult-Sheets-and-Model-files/m-p/1034072#M14486</guid>
      <dc:creator>RPN</dc:creator>
      <dc:date>2025-09-16T09:52:30Z</dc:date>
    </item>
  </channel>
</rss>

