<?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: How to add views in drawing template in Customization</title>
    <link>https://community.ptc.com/t5/Customization/How-to-add-views-in-drawing-template/m-p/735134#M10366</link>
    <description>&lt;P&gt;Perhaps I'm misunderstanding your post, but your message makes it sound like the template that you created is empty, that you have created a drawing from template, and now are now seeking to creating views.&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;ProDrawingFromTmpltCreate&lt;/STRONG&gt; does&amp;nbsp;not create a template, its creating a drawing based on a template.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;The purpose of a template is to have the views pre created.&amp;nbsp; Manually create a template and set up the views as suggested by manju.&amp;nbsp; &amp;nbsp;Then use&amp;nbsp;&lt;STRONG&gt;ProDrawingFromTmpltCreate &lt;/STRONG&gt;to create a drawing and the views are automatically there.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jun 2021 12:27:35 GMT</pubDate>
    <dc:creator>msteffke</dc:creator>
    <dc:date>2021-06-24T12:27:35Z</dc:date>
    <item>
      <title>How to add views in drawing template</title>
      <link>https://community.ptc.com/t5/Customization/How-to-add-views-in-drawing-template/m-p/735025#M10364</link>
      <description>&lt;P&gt;Hello friends , I am new Creo Customization , and I am struck in placement of drawing view in temples , I have already created a template just call it and display it , now I want to add views , please help me to overcome the problem .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Kunal&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 20:41:03 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Customization/How-to-add-views-in-drawing-template/m-p/735025#M10364</guid>
      <dc:creator>KB_9753804</dc:creator>
      <dc:date>2021-06-23T20:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to add views in drawing template</title>
      <link>https://community.ptc.com/t5/Customization/How-to-add-views-in-drawing-template/m-p/735054#M10365</link>
      <description>&lt;P&gt;Once you are in the Template mode in the drawing, you can create views from the Template Views option. See snapshot:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="manjunathrv_0-1624503782628.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/43085iDE0CDF62912149E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="manjunathrv_0-1624503782628.png" alt="manjunathrv_0-1624503782628.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="manjunathrv_1-1624503814399.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/43086iCD5764747EF8C1FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="manjunathrv_1-1624503814399.png" alt="manjunathrv_1-1624503814399.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 03:04:21 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Customization/How-to-add-views-in-drawing-template/m-p/735054#M10365</guid>
      <dc:creator>manjunathrv</dc:creator>
      <dc:date>2021-06-24T03:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to add views in drawing template</title>
      <link>https://community.ptc.com/t5/Customization/How-to-add-views-in-drawing-template/m-p/735134#M10366</link>
      <description>&lt;P&gt;Perhaps I'm misunderstanding your post, but your message makes it sound like the template that you created is empty, that you have created a drawing from template, and now are now seeking to creating views.&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;ProDrawingFromTmpltCreate&lt;/STRONG&gt; does&amp;nbsp;not create a template, its creating a drawing based on a template.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;The purpose of a template is to have the views pre created.&amp;nbsp; Manually create a template and set up the views as suggested by manju.&amp;nbsp; &amp;nbsp;Then use&amp;nbsp;&lt;STRONG&gt;ProDrawingFromTmpltCreate &lt;/STRONG&gt;to create a drawing and the views are automatically there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 12:27:35 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Customization/How-to-add-views-in-drawing-template/m-p/735134#M10366</guid>
      <dc:creator>msteffke</dc:creator>
      <dc:date>2021-06-24T12:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add views in drawing template</title>
      <link>https://community.ptc.com/t5/Customization/How-to-add-views-in-drawing-template/m-p/737620#M10414</link>
      <description>&lt;P&gt;如果你是通过二次开来添加视图&lt;/P&gt;
&lt;P&gt;1、你可以打开一个工程图或是通过代码创建一个新的工程图都可以&lt;/P&gt;
&lt;P&gt;2、在你通过代码放置视图之前，有一个很重要的动作，就是工程图一定要显示出来，否则会抛出异常&lt;/P&gt;
&lt;P&gt;3、然后开始放置一般视图&lt;/P&gt;
&lt;P&gt;　a、通过pfcView2D.GeneralViewCreateInstructions_Create创建构造器&lt;/P&gt;
&lt;P&gt;　　　GeneralViewCreateInstructions instrs = pfcView2D.GeneralViewCreateInstructions_Create (model,drawing.GetCurrentSheetNumber(),pos,transf );&lt;/P&gt;
&lt;P&gt;b、然后通过工程图创建视图&lt;/P&gt;
&lt;P&gt;　　　view2D = drawing.CreateView (instrs);&lt;/P&gt;
&lt;P&gt;c、如果创建成功，重生一下这个视图或是工程图&lt;/P&gt;
&lt;P&gt;　　　view2D.Regenerate();&lt;/P&gt;
&lt;P&gt;最后可以重生一下工程图&lt;/P&gt;
&lt;P&gt;以上是一般视图，如果放置投影视图的话，构造器不同而已，其他差不多&lt;/P&gt;
&lt;P&gt;　　　ProjectionViewCreateInstructions pInstrs = pfcView2D.ProjectionViewCreateInstructions_Create (parentView2D, pos); &lt;BR /&gt;　　　view2D = drawing.CreateView (pInstrs);&lt;/P&gt;
&lt;P&gt;　　　需要指定位置和父视图就可以了&lt;/P&gt;
&lt;P&gt;当然你创建后视图后，就可以设置此视图的相关属性了，比如显示样式、切线样式等&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jul 2021 02:18:15 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Customization/How-to-add-views-in-drawing-template/m-p/737620#M10414</guid>
      <dc:creator>WJT276</dc:creator>
      <dc:date>2021-07-10T02:18:15Z</dc:date>
    </item>
  </channel>
</rss>

