<?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 does ObjectSnapTypes.Perpendicular work? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-does-objectsnaptypes-perpendicular-work/m-p/7953980#M50646</link>
    <description>&lt;P&gt;yea, I've seen that (I have the SDK installed).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That shows PickPoint(snapsetting, prompt)...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I have is that to snap 'Perpendicular' the user has to pick a point first... i.e. you can only snap perpendicular from a previous point.&lt;/P&gt;&lt;P&gt;I can't see any way of passing the previous point to the command... Unless I've missing something or misunderstanding what ObjectSnapTypes.Perpendicular does...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;</description>
    <pubDate>Mon, 23 Apr 2018 21:23:25 GMT</pubDate>
    <dc:creator>Kevin.Bell</dc:creator>
    <dc:date>2018-04-23T21:23:25Z</dc:date>
    <item>
      <title>How does ObjectSnapTypes.Perpendicular work?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-does-objectsnaptypes-perpendicular-work/m-p/7951009#M50644</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to understand how&amp;nbsp;&lt;SPAN&gt;ObjectSnapTypes.Perpendicular and&amp;nbsp;ObjectSnapTypes.Quadrants work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assumed that to get these to work the user would have to pick a point and then the snap would work when the user selects the second point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I can't see any way of passing the first point to the ObjectSnapType class. I've tried this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;XYZ p1 = uidoc.Selection.PickPoint(ObjectSnapTypes.None);

XYZ p2 = uidoc.Selection.PickPoint(ObjectSnapTypes.Perpendicular);

TaskDialog.Show("Message", p1.ToString() + "\n\n" + p2.ToString());&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the snaps don't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something I should be doing first?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 20:18:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-does-objectsnaptypes-perpendicular-work/m-p/7951009#M50644</guid>
      <dc:creator>Kevin.Bell</dc:creator>
      <dc:date>2018-04-22T20:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: How does ObjectSnapTypes.Perpendicular work?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-does-objectsnaptypes-perpendicular-work/m-p/7953933#M50645</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did you find this on the Revit API Docs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.revitapidocs.com/2018/af8ad302-7196-8e2f-f1eb-e5929cda30d9.htm?section=exampleToggle" target="_blank"&gt;http://www.revitapidocs.com/2018/af8ad302-7196-8e2f-f1eb-e5929cda30d9.htm?section=exampleToggle&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 20:59:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-does-objectsnaptypes-perpendicular-work/m-p/7953933#M50645</guid>
      <dc:creator>so-chong</dc:creator>
      <dc:date>2018-04-23T20:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: How does ObjectSnapTypes.Perpendicular work?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-does-objectsnaptypes-perpendicular-work/m-p/7953980#M50646</link>
      <description>&lt;P&gt;yea, I've seen that (I have the SDK installed).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That shows PickPoint(snapsetting, prompt)...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I have is that to snap 'Perpendicular' the user has to pick a point first... i.e. you can only snap perpendicular from a previous point.&lt;/P&gt;&lt;P&gt;I can't see any way of passing the previous point to the command... Unless I've missing something or misunderstanding what ObjectSnapTypes.Perpendicular does...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 21:23:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-does-objectsnaptypes-perpendicular-work/m-p/7953980#M50646</guid>
      <dc:creator>Kevin.Bell</dc:creator>
      <dc:date>2018-04-23T21:23:25Z</dc:date>
    </item>
  </channel>
</rss>

