<?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: PromptForF​amilyInsta​ncePlaceme​nt to allow adding in an enclosed space in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/promptforf-amilyinsta-nceplaceme-nt-to-allow-adding-in-an/m-p/5463566#M74748</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Take bounding box of the&amp;nbsp;&lt;SPAN&gt;enclosed volume.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Take bounding box of the family.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3.Check if the bounding box of the family is within the bounding box of the&amp;nbsp;enclosed volume.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4.If its not within mark them or delete them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sanjay Pandey&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jan 2015 05:43:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-01-09T05:43:55Z</dc:date>
    <item>
      <title>PromptForF​amilyInsta​ncePlaceme​nt to allow adding in an enclosed space</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/promptforf-amilyinsta-nceplaceme-nt-to-allow-adding-in-an/m-p/5439737#M74746</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We are using Revit 2015 API in our addin.&lt;/P&gt;&lt;P&gt;PromptForFamilyInstancePlacement method that gives nice drop family icon does not seem to allow restriction of the drop area to say a Room or a department. Is that possible? If not, are there any other similar alternatives that can be used to insert family within an enclosed volume.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raman&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2014 05:41:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/promptforf-amilyinsta-nceplaceme-nt-to-allow-adding-in-an/m-p/5439737#M74746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-11T05:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: PromptForF​amilyInsta​ncePlaceme​nt to allow adding in an enclosed space</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/promptforf-amilyinsta-nceplaceme-nt-to-allow-adding-in-an/m-p/5462848#M74747</link>
      <description>&lt;P&gt;Dear Raman,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is indeed an interesting question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I am aware, the Revit API does not provide any direct support for this out of the box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe some ingenious workaround can be devised anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One rather drastic approach to prevent the user from placing objects in invalid locations will be to simply collect all the newly added elements as described here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2010/06/place-family-instance.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2010/06/place-family-instance.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After the PromptForFamilyInstancePlacement method has completed, you can test each of the newly placed instances, report errors to the user, and even automatically delete the instances, if you like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please also be aware of the more modern and flexible placement functionality provided by the new PostRequestForElementTypePlacement method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I know, that does not provide the kind of control you are requesting either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another possibility that comes to mind is this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before calling the method, temporarily hide all the invalid location objects in the view.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then the user will only be able to place instances on the remaining valid objects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let us know how you end up resolving this!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2015 17:10:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/promptforf-amilyinsta-nceplaceme-nt-to-allow-adding-in-an/m-p/5462848#M74747</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-01-08T17:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: PromptForF​amilyInsta​ncePlaceme​nt to allow adding in an enclosed space</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/promptforf-amilyinsta-nceplaceme-nt-to-allow-adding-in-an/m-p/5463566#M74748</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Take bounding box of the&amp;nbsp;&lt;SPAN&gt;enclosed volume.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Take bounding box of the family.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3.Check if the bounding box of the family is within the bounding box of the&amp;nbsp;enclosed volume.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4.If its not within mark them or delete them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sanjay Pandey&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2015 05:43:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/promptforf-amilyinsta-nceplaceme-nt-to-allow-adding-in-an/m-p/5463566#M74748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-09T05:43:55Z</dc:date>
    </item>
  </channel>
</rss>

