<?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: show model axis in drawing using vb api or pro toolkit in Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/574009#M7805</link>
    <description>&lt;P&gt;Ok. I think I will have to finally&amp;nbsp;learn to develop things in protoolkit.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Sep 2018 03:13:13 GMT</pubDate>
    <dc:creator>jay_baldania</dc:creator>
    <dc:date>2018-09-28T03:13:13Z</dc:date>
    <item>
      <title>show model axis in drawing using vb api or pro toolkit</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/573324#M7790</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Has anyone managed to show 3D model axes in drawing using Creo VB API or ProToolkit?&lt;/P&gt;
&lt;P&gt;Graphically like we do in "Show Annotation".&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jaykishan&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 10:06:47 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/573324#M7790</guid>
      <dc:creator>jay_baldania</dc:creator>
      <dc:date>2018-09-25T10:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: show model axis in drawing using vb api or pro toolkit</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/573501#M7794</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Take a look&lt;/P&gt;
&lt;P&gt;&lt;A target="_blank"&gt;ProAnnotationByComponentShow()&lt;/A&gt;, &lt;A target="_blank"&gt;ProAnnotationByFeatureShow()&lt;/A&gt;, &lt;A target="_blank"&gt;ProAnnotationByViewShow()&lt;/A&gt;, &lt;A target="_blank"&gt;ProAnnotationDisplay()&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 05:52:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/573501#M7794</guid>
      <dc:creator>YaroslavSin</dc:creator>
      <dc:date>2018-09-26T05:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: show model axis in drawing using vb api or pro toolkit</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/573502#M7795</link>
      <description>&lt;P&gt;And what about similar thing in VB API ?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 05:56:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/573502#M7795</guid>
      <dc:creator>jay_baldania</dc:creator>
      <dc:date>2018-09-26T05:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: show model axis in drawing using vb api or pro toolkit</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/573503#M7796</link>
      <description>&lt;P&gt;I think, if axis, dims and etc are instance of ModelItem objects. So you can downcast to the Note interface to use the methods:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IpfcNote.Display()&lt;/STRONG&gt; forces the display of the model note.&lt;BR /&gt;&lt;STRONG&gt;IpfcNote.Delete()&lt;/STRONG&gt; deletes a model note.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 06:08:32 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/573503#M7796</guid>
      <dc:creator>YaroslavSin</dc:creator>
      <dc:date>2018-09-26T06:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: show model axis in drawing using vb api or pro toolkit</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/573559#M7797</link>
      <description>&lt;P&gt;So the show is an axis in the drawing , so far I know is possible only in ProToolkit. As mention in the previous post it should be some code like this (if you have a selection of Axis feature - means ProSelect ("feature"....) otherwise you can create a selection -- if you have the id first ProFeatureInit to initialize the axis feature&amp;nbsp; and then with ProSelectionAlloc the create the selection of the axis feature) You need also the view where you want to show the axis:&lt;/P&gt;
&lt;PRE&gt;ProError TestShowAxis(ProDrawing drw , ProView view , ProSelection *sel_axis)
{
ProError err;
err= ProSelectionViewSet(lView , sel_axis);  
if (err != PRO_TK_NO_ERROR) return err;
err= ProAnnotationByFeatureShow(drw ,sel_axis , NULL , PRO_AXIS);
//here some regeneration to be sure that it will be displayed properly
if (err != PRO_TK_NO_ERROR) return err;
err= ProDrawingViewRegenerate(drw view);
if (err != PRO_TK_NO_ERROR) return err;
err=  ProDwgSheetRegenerate(drw, 1);
if (err != PRO_TK_NO_ERROR) return err;
err=  ProDwgDraftRegenerate(drw); 
if (err != PRO_TK_NO_ERROR) return err;
return PRO_TK_NO_ERROR;
}
&lt;/PRE&gt;
&lt;P&gt;There is PTC article (&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.ptc.com/en/support/article?n=CS262812" target="_blank"&gt;https://www.ptc.com/en/support/article?n=CS262812&lt;/A&gt;) but I think not public which states:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Is it possible to show bend line axes in drawings using VB APIs in Creo Parametric?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Applies To&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Creo Parametric 1.0 to 4.0&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Is it possible to show bend line axes in drawings using VB APIs ?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;There is no VB API support available to do this.&lt;/LI&gt;
&lt;LI&gt;VB API is a free customization module and only&amp;nbsp;basic functionalities are offered&lt;/LI&gt;
&lt;LI&gt;User may consider using powerful TOOLKIT customization, which provides most numbers APIs for Creo Parametric.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;========&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So according this statement is not possible in VB - I think also in Creo 5.0&amp;nbsp; there is no new functionality but , did not check it more detailed.&lt;/P&gt;
&lt;P&gt;A workaround forVB could be to define in Toolkit (requires ProToolkit lisense to develop and unlock it)&amp;nbsp; Task Based library (how to define a Task Based library , please, see the chapter Task Based Application Libraries in the Toolkit User Guide) One time defined such libraries could be called from Visual Basic API , Web.Link and J-Link (&lt;SPAN&gt;how to use Task Based library in VBA , please, see the chapter&amp;nbsp;&amp;nbsp; Task Based Application Libraries in the VB API User's guide)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 10:21:02 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/573559#M7797</guid>
      <dc:creator>RolandRaytchev</dc:creator>
      <dc:date>2018-09-26T10:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: show model axis in drawing using vb api or pro toolkit</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/574007#M7803</link>
      <description>&lt;P&gt;IN REPLY TO "YSINITSYN"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If we use model item owner of drawing, then that owner will only contain things with drawing.&lt;/P&gt;
&lt;P&gt;When we have not yet annotated model dimensions, they won't appear in model item owner of drawing. Drawing item owner only contains all the things in drawing model tree.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 03:09:50 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/574007#M7803</guid>
      <dc:creator>jay_baldania</dc:creator>
      <dc:date>2018-09-28T03:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: show model axis in drawing using vb api or pro toolkit</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/574008#M7804</link>
      <description>&lt;P&gt;If we use model item owner of drawing, then that owner will only contain things with drawing.&lt;/P&gt;
&lt;P&gt;When we have not yet annotated model dimensions, they won't appear in model item owner of drawing. Drawing item owner only contains all the things in drawing model tree.....&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 03:08:20 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/574008#M7804</guid>
      <dc:creator>jay_baldania</dc:creator>
      <dc:date>2018-09-28T03:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: show model axis in drawing using vb api or pro toolkit</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/574009#M7805</link>
      <description>&lt;P&gt;Ok. I think I will have to finally&amp;nbsp;learn to develop things in protoolkit.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 03:13:13 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/574009#M7805</guid>
      <dc:creator>jay_baldania</dc:creator>
      <dc:date>2018-09-28T03:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: show model axis in drawing using vb api or pro toolkit</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/574017#M7807</link>
      <description>&lt;P&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/294539"&gt;@jay_baldania&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Looks like from VB it is possible only show temporary erased notes (ModelItem).&lt;/P&gt;
&lt;P&gt;If so, then &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/24955"&gt;@RolandRaytchev&lt;/a&gt; was right, that is not possible from VB.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 05:39:03 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/show-model-axis-in-drawing-using-vb-api-or-pro-toolkit/m-p/574017#M7807</guid>
      <dc:creator>YaroslavSin</dc:creator>
      <dc:date>2018-09-28T05:39:03Z</dc:date>
    </item>
  </channel>
</rss>

