<?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 Creating Pipe or Duct Accesories in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/creating-pipe-or-duct-accesories/m-p/4792825#M77683</link>
    <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am really stuck that, i am not able to create Pipe or Duct-Accesories Like Normal,End Cap, Valves using Code. Using Method Like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doc.Create.NewUnionFitting(Connector1, Connector 2)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Doc.Create.NewElbowFitting(Connector1, Connector 2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;etc. I do not want ot use NewFamilyInstance() Method because this give rotation issue in offset drawing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help me, if any one know how to resolve this.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2014 10:29:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-02-04T10:29:28Z</dc:date>
    <item>
      <title>Creating Pipe or Duct Accesories</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/creating-pipe-or-duct-accesories/m-p/4792825#M77683</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am really stuck that, i am not able to create Pipe or Duct-Accesories Like Normal,End Cap, Valves using Code. Using Method Like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doc.Create.NewUnionFitting(Connector1, Connector 2)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Doc.Create.NewElbowFitting(Connector1, Connector 2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;etc. I do not want ot use NewFamilyInstance() Method because this give rotation issue in offset drawing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help me, if any one know how to resolve this.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2014 10:29:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/creating-pipe-or-duct-accesories/m-p/4792825#M77683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-04T10:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Pipe or Duct Accesories</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/creating-pipe-or-duct-accesories/m-p/4804495#M77684</link>
      <description>As far as I know there's no other way of creating such a family instances than with method you mentioned. Maybe you should try to solve your "rotation issue", or is there some kind of bug in API confirmed by ADSK so that you cannot over come it?</description>
      <pubDate>Mon, 10 Feb 2014 06:12:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/creating-pipe-or-duct-accesories/m-p/4804495#M77684</guid>
      <dc:creator>ollikat</dc:creator>
      <dc:date>2014-02-10T06:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Pipe or Duct Accesories</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/creating-pipe-or-duct-accesories/m-p/4807065#M77685</link>
      <description>&lt;P&gt;Creating pipes was extremely difficult for myself also. But I figured out how to do it. But there are some caveats depending on what version of Revit you are using and what type of project you have open.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Revit 2014:&lt;/P&gt;&lt;P&gt;- If you are not in a MEP project: you can only create standard pipes AFAIK. AFAIK it has to do with the fact that the System Families (for pipes) are not loaded in non-MEP projects&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Revit 2013:&lt;/P&gt;&lt;P&gt;- You can only create a pipe inside a MEP project&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Heres my code I use:&lt;/P&gt;&lt;PRE&gt;public void createPipe(Document doc, XYZ strt, XYZ end)
{
	#region Get Standard Pit Type
	PipeType pipeType = null;
	FilteredElementCollector collector = new FilteredElementCollector(doc);
	collector.OfCategory(BuiltInCategory.OST_PipeCurves);
	collector.OfClass(typeof(ElementType));

	foreach (Element ptype in collector)
	{
		// DEBUG
		// Just use first type found
		//pipeType = ptype as PipeType; EXDSMessage("Type: " + ptype.Name);
		// END DEBUG

		System.Windows.MessageBox.Show("Name: " + ptype.Name);
		if (string.Compare(ptype.Name, "standard", true) == 0) {
			System.Windows.MessageBox.Show("Name: " + ptype.Name);
			pipeType = ptype as PipeType;
			break;
		}
	}
	#endregion

	//Pipe pipe = Pipe.Create(doc, pipeType.Id, pipeType.Id, levelType.Id, strt, end);
	Pipe pipe = doc.Create.NewPipe(strt, end, pipeType);
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 02:21:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/creating-pipe-or-duct-accesories/m-p/4807065#M77685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-11T02:21:16Z</dc:date>
    </item>
  </channel>
</rss>

