<?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>Thema "Re: Editierbare Hotspots 2D-3D" in Programmierung</title>
    <link>https://community.graphisoft.com/t5/Programmierung/Editierbare-Hotspots-2D-3D/m-p/503224#M5140</link>
    <description>Danke - das war es!&lt;BR /&gt;&lt;BR /&gt;Mir war nicht bewußt, dass ich im 3D 4 Zeilen brauche!&lt;BR /&gt;&lt;BR /&gt;So muß es sein - eine eigene für den 7er!&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;	HOTSPOT 0, 					0,  					0, unID, RTY[ii][6], 6+128, displayParam,"Drehwinkel"	:unID=unID+1		!BASE&lt;BR /&gt;	HOTSPOT 0.15, 				0,  					0, unID, RTY[ii][6], 4, 	displayParam,"Drehwinkel"	:unID=unID+1		!MOVE&lt;BR /&gt;	HOTSPOT 0, 					0,  					1, unID, RTY[ii][6], 7, 	displayParam,"Drehwinkel"	:unID=unID+1		!NORMALVEKTOR&lt;BR /&gt;	HOTSPOT 0.15*COS(RTY[ii][6]), 0.15*SIN(RTY[ii][6]), 0, unID, RTY[ii][6], 5, 	displayParam,"Drehwinkel" 	:unID=unID+1		!REF&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 07 Dec 2015 12:13:25 GMT</pubDate>
    <dc:creator>Hmooslechner</dc:creator>
    <dc:date>2015-12-07T12:13:25Z</dc:date>
    <item>
      <title>Editierbare Hotspots 2D-3D</title>
      <link>https://community.graphisoft.com/t5/Programmierung/Editierbare-Hotspots-2D-3D/m-p/503222#M5138</link>
      <description>Ich habe den Fall, dass ein Script im 2D funktioniert, praktisch das Selbe in 3D funktioniert hingegen nicht richtig.&lt;BR /&gt;&lt;BR /&gt;Ich will bei meinem Fensterobjekt die horizintalen Balken oder vertikalen Steher drehen können.&lt;BR /&gt;&lt;BR /&gt;Dazu habe ich im 2D folgenden Code gestrickt:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;		&lt;BR /&gt;&lt;BR /&gt;for ii = 1 to 20&lt;BR /&gt;		&lt;BR /&gt;			!x control Position des Elementes&lt;BR /&gt;			HOTSPOT2 0,	  		RTY[ii][2], 	 unID,RTY[ii][1],1+128, displayParam,"Lage Senkrechte"	:unID=unID+1		!BASE&lt;BR /&gt;			HOTSPOT2 RTY[ii][1],	RTY[ii][2],  unID,RTY[ii][1],2, displayParam,"Lage Senkrechte"		:unID=unID+1		!MOVE&lt;BR /&gt;			HOTSPOT2 -1,			RTY[ii][2],	 unID,RTY[ii][1],3, displayParam,"Lage Senkrechte" 		:unID=unID+1		!REF&lt;BR /&gt;			!y control&lt;BR /&gt;			HOTSPOT2 RTY[ii][1],	0,	 		 unID,RTY[ii][2],1+128, displayParam,"Lage Senkrechte"	:unID=unID+1		!BASE&lt;BR /&gt;			HOTSPOT2 RTY[ii][1],	RTY[ii][2],  unID,RTY[ii][2],2, displayParam,"Lage Senkrechte"		:unID=unID+1		!MOVE&lt;BR /&gt;			HOTSPOT2 RTY[ii][1],	-1,	 		 unID,RTY[ii][2],3 , displayParam,"Lage Senkrechte"		:unID=unID+1		!REF&lt;BR /&gt;			&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;			if abs(RTY[ii][1])-0.01 &amp;gt; 0 then !!! Winkel des Elementes&lt;BR /&gt;&lt;BR /&gt;				add2 RTY[ii][1], RTY[ii][2]&lt;BR /&gt;				rot2 90&lt;BR /&gt;&lt;BR /&gt;					HOTSPOT2 0, 					0,  				unID, RTY[ii][6], 6, displayParam,"Winkel Senkrechte"	:unID=unID+1		!BASE&lt;BR /&gt;					HOTSPOT2 0.15, 				0,  					unID, RTY[ii][6], 4, displayParam,"Winkel Senkrechte"	:unID=unID+1		!MOVE&lt;BR /&gt;					HOTSPOT2 0.15*COS(RTY[ii][6]), 0.15*SIN(RTY[ii][6]),unID, RTY[ii][6], 5, displayParam,"Winkel Senkrechte" 	:unID=unID+1		!REF&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;					rot2 RTY[ii][6]&lt;BR /&gt;					add2 deltay, 0&lt;BR /&gt;					!Länge control&lt;BR /&gt;					HOTSPOT2 0,	  		0, 	 unID,RTY[ii][3],1+128, displayParam,"Länge Senkrechte"	:unID=unID+1		!BASE&lt;BR /&gt;					HOTSPOT2 RTY[ii][3],0, 	 unID,RTY[ii][3],2, displayParam,"Länge Senkrechte"		:unID=unID+1		!MOVE&lt;BR /&gt;					HOTSPOT2 -1,		0,	 unID,RTY[ii][3],3, displayParam,"Länge Senkrechte"		:unID=unID+1		!REF&lt;BR /&gt;					del 2&lt;BR /&gt;&lt;BR /&gt;				del 2&lt;BR /&gt;&lt;BR /&gt;			 else&lt;BR /&gt;			endif&lt;BR /&gt;			&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;		next ii&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Mir geht es um den Hotspot nach Rot2 90 - in der Mitte des Beispieles - welcher das Teil dann drehen soll.&lt;BR /&gt;In der 2D-Darstellung funktioniert dies perfekt.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Wenn ich das Gleiche im 3D versuche und schreibe sieht das so aus:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;for ii = 1 to 20&lt;BR /&gt;		&lt;BR /&gt;			!x control Position des Elementes&lt;BR /&gt;			HOTSPOT 0,	  		RTY[ii][2], 	0, unID,RTY[ii][1],1+128, displayParam,"Lage Senkrechte"	:unID=unID+1		!BASE&lt;BR /&gt;			HOTSPOT RTY[ii][1],	RTY[ii][2], 	0, unID,RTY[ii][1],2, displayParam,"Lage Senkrechte"		:unID=unID+1		!MOVE&lt;BR /&gt;			HOTSPOT -1,			RTY[ii][2],	0, unID,RTY[ii][1],3, displayParam,"Lage Senkrechte" 	:unID=unID+1		!REF&lt;BR /&gt;			!y control&lt;BR /&gt;			HOTSPOT RTY[ii][1],	0,	 		0, unID,RTY[ii][2],1+128, displayParam,"Lage Senkrechte"		:unID=unID+1		!BASE&lt;BR /&gt;			HOTSPOT RTY[ii][1],	RTY[ii][2], 	0, unID,RTY[ii][2],2, displayParam,"Lage Senkrechte"			:unID=unID+1		!MOVE&lt;BR /&gt;			HOTSPOT RTY[ii][1],	-1,	 		0, unID,RTY[ii][2],3 , displayParam,"Lage Senkrechte"		:unID=unID+1		!REF&lt;BR /&gt;			&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;			if abs(RTY[ii][1])-0.01 &amp;gt; 0 then !!! Winkel des Elementes&lt;BR /&gt;&lt;BR /&gt;				addx RTY[ii][1]!-gs_frame_thk/2&lt;BR /&gt;				addy RTY[ii][2]&lt;BR /&gt;				  rotz 90&lt;BR /&gt;					HOTSPOT 0, 					0,  						0, unID, RTY[ii][6], 6+128, displayParam,"Drehwinkel"	:unID=unID+1		!BASE&lt;BR /&gt;					HOTSPOT 0.15, 				0,  						0, unID, RTY[ii][6], 4, displayParam,"Drehwinkel"	:unID=unID+1		!MOVE&lt;BR /&gt;					HOTSPOT 0.15*COS(RTY[ii][6]), 0.15*SIN(RTY[ii][6]),  	0, unID, RTY[ii][6], 5, displayParam,"Drehwinkel" 	:unID=unID+1		!REF&lt;BR /&gt;				  del 1&lt;BR /&gt;					&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;					rotz RTY[ii][6]+90   !!! Länge des Elementes&lt;BR /&gt;					addx DeltaY&lt;BR /&gt;							!Länge control&lt;BR /&gt;							HOTSPOT 0,	  		0, 	0, unID,RTY[ii][3],1+128, displayParam,"Länge Senkrechte"		:unID=unID+1		!BASE&lt;BR /&gt;							HOTSPOT RTY[ii][3],	0, 	0, unID,RTY[ii][3],2, displayParam,"Länge Senkrechte"		:unID=unID+1		!MOVE&lt;BR /&gt;							HOTSPOT -1,			0,	0, unID,RTY[ii][3],3, displayParam,"Länge Senkrechte" 		:unID=unID+1		!REF&lt;BR /&gt;					del 2&lt;BR /&gt;		&lt;BR /&gt;				del 3&lt;BR /&gt;	&lt;BR /&gt;&lt;BR /&gt;			 else&lt;BR /&gt;			endif&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Hier findet man die Zeilen nach RotZ 90  in der Mitte&lt;BR /&gt;&lt;BR /&gt;Diese Drehung funktioniert ebenfalls - aber nur dann, wenn der Winkel nicht auf "0" steht. &lt;BR /&gt;&lt;BR /&gt;Wenn der Winkel auf 0 steht, wird die Bearbeitungsebene normal zur Kameraposition gedreht - und es erscheint keine Eingabemöglichkeit - bzw das kleine Koordinatenfenster verschwindet.&lt;BR /&gt;&lt;BR /&gt;Ich nehme an, dass dies einfach darauf beruht, dass ich in 3D irgend ein Flag nicht kenne - oder eben ein echter Bug in Archicad existiert.&lt;BR /&gt;&lt;BR /&gt;Dies passiert in der Windows-Version. Am Mac habe ich es nicht getestet.&lt;BR /&gt;&lt;BR /&gt;Hier das Video, worum es geht:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;IFRAME frameborder="0" width="425" height="355" src="https://www.youtube.com/embed/EQwSAw2ogOQ" allowfullscreen=""&gt;&lt;/IFRAME&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Danke im Voraus für Eure Hilfe.  Oder wäre das eher was was für den Support?</description>
      <pubDate>Mon, 07 Dec 2015 10:54:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Programmierung/Editierbare-Hotspots-2D-3D/m-p/503222#M5138</guid>
      <dc:creator>Hmooslechner</dc:creator>
      <dc:date>2015-12-07T10:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Editierbare Hotspots 2D-3D</title>
      <link>https://community.graphisoft.com/t5/Programmierung/Editierbare-Hotspots-2D-3D/m-p/503223#M5139</link>
      <description>Kein bug. Bei Winkel gleich null sind Referenzachse und bewegliche Achse komplanar. Und damit die Drehebene nicht definiert. Da fehlt der defnierende Parameter (der Ebenennormalen). -&amp;gt; Handbuch. Ich glaube, es ist der 7er. Hatten wir schon öfter hier, glaube ich.</description>
      <pubDate>Mon, 07 Dec 2015 11:19:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Programmierung/Editierbare-Hotspots-2D-3D/m-p/503223#M5139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-07T11:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Editierbare Hotspots 2D-3D</title>
      <link>https://community.graphisoft.com/t5/Programmierung/Editierbare-Hotspots-2D-3D/m-p/503224#M5140</link>
      <description>Danke - das war es!&lt;BR /&gt;&lt;BR /&gt;Mir war nicht bewußt, dass ich im 3D 4 Zeilen brauche!&lt;BR /&gt;&lt;BR /&gt;So muß es sein - eine eigene für den 7er!&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;	HOTSPOT 0, 					0,  					0, unID, RTY[ii][6], 6+128, displayParam,"Drehwinkel"	:unID=unID+1		!BASE&lt;BR /&gt;	HOTSPOT 0.15, 				0,  					0, unID, RTY[ii][6], 4, 	displayParam,"Drehwinkel"	:unID=unID+1		!MOVE&lt;BR /&gt;	HOTSPOT 0, 					0,  					1, unID, RTY[ii][6], 7, 	displayParam,"Drehwinkel"	:unID=unID+1		!NORMALVEKTOR&lt;BR /&gt;	HOTSPOT 0.15*COS(RTY[ii][6]), 0.15*SIN(RTY[ii][6]), 0, unID, RTY[ii][6], 5, 	displayParam,"Drehwinkel" 	:unID=unID+1		!REF&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Dec 2015 12:13:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Programmierung/Editierbare-Hotspots-2D-3D/m-p/503224#M5140</guid>
      <dc:creator>Hmooslechner</dc:creator>
      <dc:date>2015-12-07T12:13:25Z</dc:date>
    </item>
  </channel>
</rss>

