<?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: Window swing direction in AutoCAD Architecture Customization Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476036#M6752</link>
    <description>I just noticed an error with the 2006 script, the correct line for using ObjectID/xrefs is&lt;BR /&gt;
 &lt;BR /&gt;
set window = app.ActiveDocument.ObjectIdToObject([ObjectID])&lt;BR /&gt;
&lt;BR /&gt;
Chris Arps</description>
    <pubDate>Wed, 09 Nov 2005 13:33:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-11-09T13:33:38Z</dc:date>
    <item>
      <title>Window swing direction</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476031#M6747</link>
      <description>Is there a way to determine the swing direction of a window?&lt;BR /&gt;
&lt;BR /&gt;
Jussi</description>
      <pubDate>Wed, 02 Nov 2005 19:10:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476031#M6747</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-02T19:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Window swing direction</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476032#M6748</link>
      <description>Add a property set to the doorstyle with the automatic property Swing Direction. &lt;BR /&gt;
&lt;BR /&gt;
You can then use it in tags and schedules.</description>
      <pubDate>Thu, 03 Nov 2005 13:20:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476032#M6748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-03T13:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Window swing direction</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476033#M6749</link>
      <description>Yes, but what about windows?&lt;BR /&gt;
&lt;BR /&gt;
Windows have swing directions, but they don't have automatic properties for &lt;BR /&gt;
them.&lt;BR /&gt;
I was wondering if  there was some other way to determine it, through APIs?&lt;BR /&gt;
&lt;BR /&gt;
Jussi&lt;BR /&gt;
&lt;BR /&gt;
&lt;CARPS&gt; kirjoitti viestissä:5002439@discussion.autodesk.com...&lt;BR /&gt;
Add a property set to the doorstyle with the automatic property Swing &lt;BR /&gt;
Direction.&lt;BR /&gt;
&lt;BR /&gt;
You can then use it in tags and schedules.&lt;/CARPS&gt;</description>
      <pubDate>Fri, 04 Nov 2005 22:44:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476033#M6749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-04T22:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Window swing direction</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476034#M6750</link>
      <description>You can get at it through the API, but it is easiest to just use a VBScript formula property set definition. &lt;BR /&gt;
&lt;BR /&gt;
The definition will depend if you have 2006 and want xref ability. &lt;BR /&gt;
&lt;BR /&gt;
For ADT2004 define a property set for windows with an automatic property of "Handle". &lt;BR /&gt;
Then define a formula property named "Swing" and use the following for it's definition. Be sure to use the UI to pick "Handle" so that it appears in bold, cutting and pasting references to other properties does not work. &lt;BR /&gt;
&lt;BR /&gt;
**** Start 2004 Script&lt;BR /&gt;
On Error Resume Next &lt;BR /&gt;
RESULT="--" &lt;BR /&gt;
&lt;BR /&gt;
Set app = GetObject(,"AutoCAD.Application.16")&lt;BR /&gt;
set window = app.ActiveDocument.HandleToObject([Handle])&lt;BR /&gt;
set anchor = window.GetAnchor&lt;BR /&gt;
if anchor.FlipX then &lt;BR /&gt;
	RESULT = "LEFT" &lt;BR /&gt;
else &lt;BR /&gt;
	RESULT = "RIGHT" &lt;BR /&gt;
end if &lt;BR /&gt;
***** end 2004 script &lt;BR /&gt;
&lt;BR /&gt;
For 2006 and Xref usage, define a property set for doors. Add the automatic property "ObjectID" and add a formula property called "Swing" with the following definition. &lt;BR /&gt;
&lt;BR /&gt;
****** Start 2006 script&lt;BR /&gt;
On Error Resume Next &lt;BR /&gt;
RESULT="--" &lt;BR /&gt;
&lt;BR /&gt;
Set app = GetObject(,"AutoCAD.Application.16.2")&lt;BR /&gt;
set window = app.ActiveDocument.HandleToObject([ObjectID])&lt;BR /&gt;
set anchor = window.GetAnchor&lt;BR /&gt;
if anchor.FlipX then &lt;BR /&gt;
	RESULT = "LEFT" &lt;BR /&gt;
else &lt;BR /&gt;
	RESULT = "RIGHT" &lt;BR /&gt;
end if &lt;BR /&gt;
****** end 2006 script &lt;BR /&gt;
&lt;BR /&gt;
If you need me to post a drawing instead, just let me know. &lt;BR /&gt;
&lt;BR /&gt;
Chris Arps</description>
      <pubDate>Mon, 07 Nov 2005 15:32:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476034#M6750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-07T15:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Window swing direction</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476035#M6751</link>
      <description>Excellent!&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
Jussi&lt;BR /&gt;
&lt;BR /&gt;
&lt;CARPS&gt; kirjoitti viestissä:5005567@discussion.autodesk.com...&lt;BR /&gt;
You can get at it through the API, but it is easiest to just use a VBScript &lt;BR /&gt;
formula property set definition.&lt;BR /&gt;
&lt;BR /&gt;
The definition will depend if you have 2006 and want xref ability.&lt;BR /&gt;
&lt;BR /&gt;
For ADT2004 define a property set for windows with an automatic property of &lt;BR /&gt;
"Handle".&lt;BR /&gt;
Then define a formula property named "Swing" and use the following for it's &lt;BR /&gt;
definition. Be sure to use the UI to pick "Handle" so that it appears in &lt;BR /&gt;
bold, cutting and pasting references to other properties does not work.&lt;BR /&gt;
&lt;BR /&gt;
**** Start 2004 Script&lt;BR /&gt;
On Error Resume Next&lt;BR /&gt;
RESULT="--"&lt;BR /&gt;
&lt;BR /&gt;
Set app = GetObject(,"AutoCAD.Application.16")&lt;BR /&gt;
set window = app.ActiveDocument.HandleToObject([Handle])&lt;BR /&gt;
set anchor = window.GetAnchor&lt;BR /&gt;
if anchor.FlipX then&lt;BR /&gt;
RESULT = "LEFT"&lt;BR /&gt;
else&lt;BR /&gt;
RESULT = "RIGHT"&lt;BR /&gt;
end if&lt;BR /&gt;
***** end 2004 script&lt;BR /&gt;
&lt;BR /&gt;
For 2006 and Xref usage, define a property set for doors. Add the automatic &lt;BR /&gt;
property "ObjectID" and add a formula property called "Swing" with the &lt;BR /&gt;
following definition.&lt;BR /&gt;
&lt;BR /&gt;
****** Start 2006 script&lt;BR /&gt;
On Error Resume Next&lt;BR /&gt;
RESULT="--"&lt;BR /&gt;
&lt;BR /&gt;
Set app = GetObject(,"AutoCAD.Application.16.2")&lt;BR /&gt;
set window = app.ActiveDocument.HandleToObject([ObjectID])&lt;BR /&gt;
set anchor = window.GetAnchor&lt;BR /&gt;
if anchor.FlipX then&lt;BR /&gt;
RESULT = "LEFT"&lt;BR /&gt;
else&lt;BR /&gt;
RESULT = "RIGHT"&lt;BR /&gt;
end if&lt;BR /&gt;
****** end 2006 script&lt;BR /&gt;
&lt;BR /&gt;
If you need me to post a drawing instead, just let me know.&lt;BR /&gt;
&lt;BR /&gt;
Chris Arps&lt;/CARPS&gt;</description>
      <pubDate>Tue, 08 Nov 2005 21:43:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476035#M6751</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-08T21:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Window swing direction</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476036#M6752</link>
      <description>I just noticed an error with the 2006 script, the correct line for using ObjectID/xrefs is&lt;BR /&gt;
 &lt;BR /&gt;
set window = app.ActiveDocument.ObjectIdToObject([ObjectID])&lt;BR /&gt;
&lt;BR /&gt;
Chris Arps</description>
      <pubDate>Wed, 09 Nov 2005 13:33:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476036#M6752</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-09T13:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Window swing direction</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476037#M6753</link>
      <description>btw, make that&lt;BR /&gt;
if anchor.FlipX Xor anchor.FlipY then&lt;BR /&gt;
&lt;BR /&gt;
thanks again,&lt;BR /&gt;
Jussi&lt;BR /&gt;
&lt;BR /&gt;
&lt;CARPS&gt; kirjoitti viestissä:5008034@discussion.autodesk.com...&lt;BR /&gt;
I just noticed an error with the 2006 script, the correct line for using &lt;BR /&gt;
ObjectID/xrefs is&lt;BR /&gt;
&lt;BR /&gt;
set window = app.ActiveDocument.ObjectIdToObject([ObjectID])&lt;BR /&gt;
&lt;BR /&gt;
Chris Arps&lt;/CARPS&gt;</description>
      <pubDate>Sun, 13 Nov 2005 00:50:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476037#M6753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-13T00:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Window swing direction</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476038#M6754</link>
      <description>I can't get this to work. It only shows LEFT, and when i flip the window, nothing changes. Anyone know what's wrong?&lt;BR /&gt;
&lt;BR /&gt;
This is what my code looks like:&lt;BR /&gt;
&lt;BR /&gt;
On Error Resume Next&lt;BR /&gt;
RESULT="--"&lt;BR /&gt;
Set app = GetObject(,"AutoCAD.Application.16.2")&lt;BR /&gt;
set window = app.ActiveDocument.HandleToObject([ObjectID])&lt;BR /&gt;
set anchor = window.GetAnchor&lt;BR /&gt;
if anchor.FlipY or anchor.FlipX then&lt;BR /&gt;
RESULT = "V"&lt;BR /&gt;
else&lt;BR /&gt;
RESULT = "H"&lt;BR /&gt;
end if&lt;BR /&gt;
&lt;BR /&gt;
I use ADT 2006 if that is any help&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Christopher</description>
      <pubDate>Wed, 14 Mar 2007 09:53:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476038#M6754</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-14T09:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Window swing direction</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476039#M6755</link>
      <description>Note Chris' correction in his Nov/09/05 reply:&lt;BR /&gt;
&lt;BR /&gt;
I just noticed an error with the 2006 script, the correct line for using ObjectID/xrefs is&lt;BR /&gt;
&lt;BR /&gt;
set window = app.ActiveDocument.ObjectIdToObject([ObjectID])&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
&lt;BR /&gt;
David Koch&lt;BR /&gt;
Autodesk Discussion Group Facilitator&lt;BR /&gt;
Using ADT 2004 at work; access to 2005, 2006 &amp;amp; 2007 at home</description>
      <pubDate>Wed, 14 Mar 2007 12:00:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476039#M6755</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-14T12:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Window swing direction</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476040#M6756</link>
      <description>This does not seem to work either, I'm afraid.&lt;BR /&gt;
Any other ideas?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Christopher</description>
      <pubDate>Wed, 14 Mar 2007 12:16:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/window-swing-direction/m-p/1476040#M6756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-14T12:16:28Z</dc:date>
    </item>
  </channel>
</rss>

