<?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 Sight Observer in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Sight-Observer/m-p/280296#M2470</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi, guys.&lt;BR /&gt;&lt;BR /&gt;I am trying to make the add-on do something when the sight change. I look into the SDK and find class ISightObserver may relate with my requirement. Could you please help me use it? Is there any sample?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/DIV&gt;</description>
    <pubDate>Tue, 14 Sep 2021 11:47:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-14T11:47:02Z</dc:date>
    <item>
      <title>Sight Observer</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Sight-Observer/m-p/280296#M2470</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi, guys.&lt;BR /&gt;&lt;BR /&gt;I am trying to make the add-on do something when the sight change. I look into the SDK and find class ISightObserver may relate with my requirement. Could you please help me use it? Is there any sample?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 11:47:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Sight-Observer/m-p/280296#M2470</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-14T11:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sight Observer</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Sight-Observer/m-p/280297#M2471</link>
      <description>is Shawn Hopkins (BIM Bakery) on this forum? They had a sight observer tool for stadiums, hence he may be able to help you.</description>
      <pubDate>Tue, 15 Sep 2020 11:35:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Sight-Observer/m-p/280297#M2471</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2020-09-15T11:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sight Observer</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Sight-Observer/m-p/280298#M2472</link>
      <description>I have solved it. Here is my code (maybe someone will find it helpful):
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;class MySightObserver: public Modeler::ISightObserver {

public:
	Modeler::Camera cam;
	void CameraChanged(const Modeler::Camera&amp;amp;);

};
MySightObserver mso;

MySight::MySight(Modeler::Sight *sig){
	mysight = sig;
	myobserver = &amp;amp;mso;
	((MySightObserver*)myobserver)-&amp;gt;cam = sig-&amp;gt;GetCamera();
	sig-&amp;gt;Attach(*myobserver);
}

void MySightObserver::CameraChanged(const Modeler::Camera&amp;amp; newCamera) {
	if (!newCamera.IsNear(cam)) {
              /*Your code here*/
	}
	return;
}

&lt;/PRE&gt;
PS: You need to fetch the Modeler::Sight (see my another post) and create an instance of MySightObserver.</description>
      <pubDate>Thu, 17 Sep 2020 10:03:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Sight-Observer/m-p/280298#M2472</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-17T10:03:13Z</dc:date>
    </item>
  </channel>
</rss>

