<?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: P3D line number list show and show selected linenumber pipeline only in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/p3d-line-number-list-show-and-show-selected-linenumber-pipeline/m-p/9620301#M19141</link>
    <description>&lt;P&gt;There are several ways to approach this. One is to &lt;A href="https://spiderinnet1.typepad.com/blog/2012/06/autocad-net-iterate-through-model-space.html" target="_blank" rel="noopener"&gt;iterate&lt;/A&gt; all Plant 3D model items, &lt;A href="https://adndevblog.typepad.com/autocad/2012/05/getting-all-the-properties-of-a-selected-pipe-in-plant3d-using-cnet.html" target="_blank" rel="noopener"&gt;retrieve their property values&lt;/A&gt;, check if they match your criteria, &lt;A href="https://adndevblog.typepad.com/autocad/2012/05/setting-pick-first-selection-set-from-using-autocadnet.html" target="_blank" rel="noopener"&gt;set them as the implied selection set&lt;/A&gt;, and then &lt;A href="https://through-the-interface.typepad.com/through_the_interface/2006/08/calling_command.html" target="_blank" rel="noopener"&gt;run a command&lt;/A&gt; on the set (such as ISOLATE, HIDEOBJECTS, etc.).&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jul 2020 16:51:11 GMT</pubDate>
    <dc:creator>jabowabo</dc:creator>
    <dc:date>2020-07-06T16:51:11Z</dc:date>
    <item>
      <title>P3D line number list show and show selected linenumber pipeline only</title>
      <link>https://forums.autodesk.com/t5/net-forum/p3d-line-number-list-show-and-show-selected-linenumber-pipeline/m-p/9618096#M19140</link>
      <description>&lt;P&gt;I am a new user of P3D, when i design pipelines, sometimes there are so many pipes and fittings, thus ,I want to display and isotlate some pipelines,however,I have two&amp;nbsp; problems need help：&lt;/P&gt;&lt;P&gt;1) I want to&amp;nbsp; show the line numbers of all pipelines including supports&amp;nbsp; contained in the ModelSpace, how can I get them ?&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; If I want to display only&amp;nbsp; the objects&amp;nbsp;of Specified line numbers ,others be hidden, which method can I use?&lt;/P&gt;&lt;P&gt;Thans very much for your reading.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jul 2020 01:49:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/p3d-line-number-list-show-and-show-selected-linenumber-pipeline/m-p/9618096#M19140</guid>
      <dc:creator>214860559</dc:creator>
      <dc:date>2020-07-05T01:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: P3D line number list show and show selected linenumber pipeline only</title>
      <link>https://forums.autodesk.com/t5/net-forum/p3d-line-number-list-show-and-show-selected-linenumber-pipeline/m-p/9620301#M19141</link>
      <description>&lt;P&gt;There are several ways to approach this. One is to &lt;A href="https://spiderinnet1.typepad.com/blog/2012/06/autocad-net-iterate-through-model-space.html" target="_blank" rel="noopener"&gt;iterate&lt;/A&gt; all Plant 3D model items, &lt;A href="https://adndevblog.typepad.com/autocad/2012/05/getting-all-the-properties-of-a-selected-pipe-in-plant3d-using-cnet.html" target="_blank" rel="noopener"&gt;retrieve their property values&lt;/A&gt;, check if they match your criteria, &lt;A href="https://adndevblog.typepad.com/autocad/2012/05/setting-pick-first-selection-set-from-using-autocadnet.html" target="_blank" rel="noopener"&gt;set them as the implied selection set&lt;/A&gt;, and then &lt;A href="https://through-the-interface.typepad.com/through_the_interface/2006/08/calling_command.html" target="_blank" rel="noopener"&gt;run a command&lt;/A&gt; on the set (such as ISOLATE, HIDEOBJECTS, etc.).&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 16:51:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/p3d-line-number-list-show-and-show-selected-linenumber-pipeline/m-p/9620301#M19141</guid>
      <dc:creator>jabowabo</dc:creator>
      <dc:date>2020-07-06T16:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: P3D line number list show and show selected linenumber pipeline only</title>
      <link>https://forums.autodesk.com/t5/net-forum/p3d-line-number-list-show-and-show-selected-linenumber-pipeline/m-p/9625416#M19142</link>
      <description>&lt;P&gt;The method works well but wtih a &lt;SPAN&gt;deficiency&lt;/SPAN&gt; that for project has lots of piping, the speed is slow, can the line number list show in the Piping UI&amp;nbsp; be get by program code ,it it can, that will be very good.&lt;/P&gt;&lt;P&gt;I tried to use&lt;A href="https://forums.autodesk.com/Autodesk_ProcessPower_P3dUI.html" target="_blank" rel="noopener"&gt;Autodesk.ProcessPower.P3dUI.UIsetting&amp;nbsp;&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;A href="https://forums.autodesk.com/Autodesk_ProcessPower_P3dUI.html" target="_blank" rel="noopener"&gt;AllPipingLineNumbers Method ,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;A href="https://forums.autodesk.com/Autodesk_ProcessPower_P3dUI.html" target="_blank" rel="noopener"&gt;&lt;FONT color="#000000"&gt;however i faiiled,is there any suggestion about it?&lt;/FONT&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="214860559_0-1594206024046.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/793328iB996A510416AD0DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="214860559_0-1594206024046.png" alt="214860559_0-1594206024046.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 04:01:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/p3d-line-number-list-show-and-show-selected-linenumber-pipeline/m-p/9625416#M19142</guid>
      <dc:creator>214860559</dc:creator>
      <dc:date>2020-07-09T04:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: P3D line number list show and show selected linenumber pipeline only</title>
      <link>https://forums.autodesk.com/t5/net-forum/p3d-line-number-list-show-and-show-selected-linenumber-pipeline/m-p/9626245#M19143</link>
      <description>&lt;P&gt;In your original post you asked for pipe groups in Model Space - the UI dropdown shows all line groups for the entire project. You can get all project line groups by iterating the P3dLineGroup table in the database - similar example &lt;A href="https://adndevblog.typepad.com/autocad/2014/10/access-p3dlinegroup-of-a-plant-3d-pipe.html" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. If you want the linegroups for the current model only, the most reliable way is by the retrieving model space items'&amp;nbsp; property. You can try to use the relationship method but I've found it to return inaccurate results:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Editor ed = AcadApp.DocumentManager.MdiActiveDocument.Editor;
Database db = doc.Database;

PlantProject currProj = PlantApp.CurrentProject;
PipingProject pipeProj = (PipingProject)currProj.ProjectParts["Piping"];
DataLinksManager dlm = pipeProj.DataLinksManager;

// get linegroups related to current drawing
int dwgId = dlm.GetDrawingId(db);
if (dwgId != -1)
{
	PnPRowIdArray relatedLgIds = dlm.GetRelatedRowIds("P3dDrawingLineGroupRelationship", "Drawing", dwgId, "LineGroup");

	foreach (var relatedLgId in relatedLgIds)
	{
		PnPRow lgRow = dlm.GetPnPDatabase().GetRow(relatedLgId);
		ed.WriteMessage($"\nrelated lineGroup: {lgRow["Tag"].ToString()}");
	}
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 13:44:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/p3d-line-number-list-show-and-show-selected-linenumber-pipeline/m-p/9626245#M19143</guid>
      <dc:creator>jabowabo</dc:creator>
      <dc:date>2020-07-09T13:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: P3D line number list show and show selected linenumber pipeline only</title>
      <link>https://forums.autodesk.com/t5/net-forum/p3d-line-number-list-show-and-show-selected-linenumber-pipeline/m-p/9628016#M19144</link>
      <description>&lt;DIV class="lia-message-author-with-avatar"&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Advisor lia-component-message-view-widget-author-username"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1636004"&gt;@jabowabo&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Thank you very very much，my problem is solved。&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 08:27:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/p3d-line-number-list-show-and-show-selected-linenumber-pipeline/m-p/9628016#M19144</guid>
      <dc:creator>214860559</dc:creator>
      <dc:date>2020-07-10T08:27:20Z</dc:date>
    </item>
  </channel>
</rss>

