<?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 set the pipe offset? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5604873#M72700</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cannot see anything that would cause imminent problems in your code.&lt;BR /&gt;&lt;BR /&gt;But the error you mentioned. If I recall correctly, that error comes in situation when an external command exits before transaction is properly finished (commit / rollback). So I started to doubt that maybe your code throws an exception somewhere and thus causes the command to exit. Although you should be able to see the exception also from the UI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But still about the error. Is it a some message box appearing in the UI or is it an exception you get?&lt;BR /&gt;&lt;BR /&gt;At which point of code execution this error comes? Have you debugged your code step by step?&lt;/P&gt;</description>
    <pubDate>Thu, 23 Apr 2015 12:26:37 GMT</pubDate>
    <dc:creator>ollikat</dc:creator>
    <dc:date>2015-04-23T12:26:37Z</dc:date>
    <item>
      <title>How to set the pipe offset?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5602585#M72693</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can anyone suggest me how to set the pipe offset..&lt;/P&gt;&lt;P&gt;I am creating new pipes. After creating the new pipe the offset changing to -1250mm.&lt;/P&gt;&lt;P&gt;How can i set the pipe offset value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance..&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2015 09:46:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5602585#M72693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-22T09:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the pipe offset?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5602781#M72694</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I think the RBS_OFFSET_PARAM built-in parameter will do the trick.&lt;BR /&gt;&lt;BR /&gt;I don't have any code example within reach, but probably you are familiar with setting element parameters(?).</description>
      <pubDate>Wed, 22 Apr 2015 11:53:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5602781#M72694</guid>
      <dc:creator>ollikat</dc:creator>
      <dc:date>2015-04-22T11:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the pipe offset?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5604756#M72695</link>
      <description>&lt;P&gt;Hi i am using this &lt;STRONG&gt;RBS_OFFSET_PARAM&lt;/STRONG&gt; in code to read the offset.&lt;/P&gt;&lt;P&gt;Successfully i can read the offset of the pipe. If i try to set the same offset for newly creating pipe then its failing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying like this.. as show below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;m_offset = pipes[0].get_Parameter(&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;BuiltInParameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;.RBS_OFFSET_PARAM).AsDouble();&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Parameter&amp;nbsp; &lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;par_offset = pp.get_Parameter(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;BuiltInParameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;.RBS_OFFSET_PARAM);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;par_offset.Set(m_offset);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;if i use like this i am getting error..&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;Could you please help me to solve this issue..&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 10:45:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5604756#M72695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-23T10:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the pipe offset?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5604764#M72696</link>
      <description>&lt;P&gt;The start offset is getting changed but the end offset remains in negative side only.&lt;/P&gt;&lt;P&gt;Or is there any api to create a pipe giving&amp;nbsp;the inputs like pipetype, start, end, offset?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If so please suggest me..&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:00:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5604764#M72696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-23T11:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the pipe offset?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5604807#M72697</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;Could you please tell more precisely, what kind of error you are getting? An exception or is so that the result just isn't what you expect? Also, what is the origin of the "pp" variable in the sample code you provided.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:41:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5604807#M72697</guid>
      <dc:creator>ollikat</dc:creator>
      <dc:date>2015-04-23T11:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the pipe offset?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5604830#M72698</link>
      <description>&lt;P&gt;i am getting error like &lt;STRONG&gt;"Sub transaction opned not getting closed"&lt;/STRONG&gt; this.&lt;/P&gt;&lt;P&gt;The offset of the original&amp;nbsp;pipe(PP variable)&amp;nbsp;is 2750mm.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In the same location i am creating new pipes in a loop its taking -1250mm as offset.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;want to set the offset of the new pipes to original(2750mm).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:55:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5604830#M72698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-23T11:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the pipe offset?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5604845#M72699</link>
      <description>&lt;P&gt;here is the code i am using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//create new pipe&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;public&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;Pipe&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; CreateNewPipe(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;Document&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; document, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;XYZ&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; p1, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;XYZ&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; p2, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PipeType&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; pipeType)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FilteredElementCollector&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; collector = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;FilteredElementCollector&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;(document);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; collector.OfClass(&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;typeof&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PipeType&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;));&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//PipeType pipeType = collector.FirstElement() as PipeType;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Pipe&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; pipe = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;null&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; (&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;null&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; != pipeType)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pipe = document.Create.NewPipe(p1, p2, pipeType);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set_pipe_offset(pipe);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set_pipe_diameter(pipe);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;return&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; pipe;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;//set the default pipe diameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;Public&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; set_pipe_diameter(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;Pipe&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; pp)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;Parameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; par_dia = pp.get_Parameter(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;BuiltInParameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;.RBS_PIPE_DIAMETER_PARAM);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; par_dia.Set(m_para_diameter);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;//set the default pipe offset&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;public&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; set_pipe_offset(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;Pipe&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; pp)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&amp;nbsp;&amp;nbsp; Parameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; par_offset = pp.get_Parameter(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;BuiltInParameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;.RBS_OFFSET_PARAM);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; par_offset.Set(m_offset);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for(int i=0; i&amp;lt;5; i++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; m_pipes = CreateNewPipe(m_document, tmp_start, tmp_end,pipes[0].PipeType);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;like this i am using the code. in CreateNewPipe() function i am calling the &lt;FONT face="Consolas" size="2"&gt;set_pipe_offset(&lt;FONT color="#2b91af"&gt;Pipe&lt;/FONT&gt; pp)&lt;/FONT&gt; function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 12:02:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5604845#M72699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-23T12:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the pipe offset?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5604873#M72700</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cannot see anything that would cause imminent problems in your code.&lt;BR /&gt;&lt;BR /&gt;But the error you mentioned. If I recall correctly, that error comes in situation when an external command exits before transaction is properly finished (commit / rollback). So I started to doubt that maybe your code throws an exception somewhere and thus causes the command to exit. Although you should be able to see the exception also from the UI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But still about the error. Is it a some message box appearing in the UI or is it an exception you get?&lt;BR /&gt;&lt;BR /&gt;At which point of code execution this error comes? Have you debugged your code step by step?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 12:26:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5604873#M72700</guid>
      <dc:creator>ollikat</dc:creator>
      <dc:date>2015-04-23T12:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the pipe offset?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5604887#M72701</link>
      <description>&lt;P&gt;yes I debugged my code.&lt;/P&gt;&lt;P&gt;when it enters to set_pipe_offset() function 2/3 iteration is running after that&amp;nbsp;a dialog box is appearing saying that transaction/ subtransaction opened is not closed..&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 12:36:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5604887#M72701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-23T12:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the pipe offset?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5604890#M72702</link>
      <description>Hmm...sounds strange. Are you using automatic or manual transaction mode?</description>
      <pubDate>Thu, 23 Apr 2015 12:39:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5604890#M72702</guid>
      <dc:creator>ollikat</dc:creator>
      <dc:date>2015-04-23T12:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the pipe offset?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5606431#M72703</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using transaction mode as Manual..&lt;/P&gt;&lt;P&gt;Is there any other way to set the offset for the pipes..&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 05:35:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5606431#M72703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-24T05:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the pipe offset?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5606502#M72704</link>
      <description>Well...it's not about how you are setting the offset. The error clearly refers that there's some other problem with your implementation...but I can't figure out what it could be exactly.&lt;BR /&gt;&lt;BR /&gt;I think you should check how you are managing the transaction(s). Try to do some changes and see if you can affect the behavior.</description>
      <pubDate>Fri, 24 Apr 2015 07:11:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5606502#M72704</guid>
      <dc:creator>ollikat</dc:creator>
      <dc:date>2015-04-24T07:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the pipe offset?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5606506#M72705</link>
      <description>&lt;P&gt;Thank you very much,&amp;nbsp;for the update.&lt;/P&gt;&lt;P&gt;I will figure it out..&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 07:14:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5606506#M72705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-24T07:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the pipe offset?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5606706#M72706</link>
      <description>&lt;P&gt;Hi it worked..&amp;nbsp;I&amp;nbsp;Solved the issue..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much....&lt;img id="smileyindifferent" class="emoticon emoticon-smileyindifferent" src="https://forums.autodesk.com/i/smilies/16x16_smiley-indifferent.png" alt="Smiley Indifferent" title="Smiley Indifferent" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything to read the &lt;STRONG&gt;reference level&lt;/STRONG&gt; of pipe?&lt;/P&gt;&lt;P&gt;If i create the pipe new over the existing pipe reference level is getting changed to BASEMENT 2 AMMENITIES..&lt;/P&gt;&lt;P&gt;i tried with&amp;nbsp; &lt;STRONG&gt;RBS_REFERENCE_LINING_TYPE &lt;/STRONG&gt;its giving the value as 0..&lt;/P&gt;&lt;P&gt;Please give some suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 11:40:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5606706#M72706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-24T11:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the pipe offset?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5606711#M72707</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;Nice to hear you managed to proceed.&lt;BR /&gt;&lt;BR /&gt;Well...the Pipe object you create inherits from MEPCurve class, which has ReferenceLevel property. I think that's the one you'll need (?).</description>
      <pubDate>Fri, 24 Apr 2015 11:44:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5606711#M72707</guid>
      <dc:creator>ollikat</dc:creator>
      <dc:date>2015-04-24T11:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the pipe offset?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5606717#M72708</link>
      <description>&lt;P&gt;yes.. i need to read that reference level..&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 11:52:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-the-pipe-offset/m-p/5606717#M72708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-24T11:52:53Z</dc:date>
    </item>
  </channel>
</rss>

