<?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: Change of local Z axis sense with Robot API in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/3185182#M84163</link>
    <description>&lt;P&gt;Problem solved!&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
    <pubDate>Sun, 09 Oct 2011 19:12:27 GMT</pubDate>
    <dc:creator>LuisCRodrigues</dc:creator>
    <dc:date>2011-10-09T19:12:27Z</dc:date>
    <item>
      <title>Change of local Z axis sense with Robot API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/3181218#M84161</link>
      <description>&lt;P&gt;I want to change the sense of local Z axis of a panel using Robot API.&lt;BR /&gt;I've searched the API help and I didn't found any method to do so.&lt;BR /&gt;It has a method to define the local X axis but not the Z axis.&lt;BR /&gt;&lt;BR /&gt;Does anyone knows a way to do this?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.﻿&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2011 19:16:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/3181218#M84161</guid>
      <dc:creator>LuisCRodrigues</dc:creator>
      <dc:date>2011-10-05T19:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Change of local Z axis sense with Robot API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/3181722#M84162</link>
      <description>&lt;P&gt;Try to use the following code which changes the&amp;nbsp;orientation of the Z axis for the panel number 1:&lt;BR /&gt;&lt;BR /&gt;Dim r As New RobotOM.RobotApplication&lt;BR /&gt;Dim o As RobotOM.RobotObjObject&lt;BR /&gt;o = r.Project.Structure.Objects.Get(1)&lt;BR /&gt;o.Main.Attribs.DirZ = 1&lt;BR /&gt;o.Update()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If you find your post answered press the Accept as Solution button please. This will help other users to find solutions much faster. Thank you.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2011 07:12:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/3181722#M84162</guid>
      <dc:creator>Artur.Kosakowski</dc:creator>
      <dc:date>2011-10-06T07:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Change of local Z axis sense with Robot API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/3185182#M84163</link>
      <description>&lt;P&gt;Problem solved!&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Oct 2011 19:12:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/3185182#M84163</guid>
      <dc:creator>LuisCRodrigues</dc:creator>
      <dc:date>2011-10-09T19:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Change of local Z axis sense with Robot API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/7906337#M84164</link>
      <description>&lt;P&gt;Hi Artur,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you tell me how the z-axis and other&amp;nbsp; axes (x and y)will be oriented if I use the snippet of code provided by you? I am unable to figure it out?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 03:01:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/7906337#M84164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-04T03:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Change of local Z axis sense with Robot API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/7906342#M84165</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, I want my local coordinate axes for each panel to be such that the z-axis is always pointing outward.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 03:06:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/7906342#M84165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-04T03:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Change of local Z axis sense with Robot API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/7906630#M84166</link>
      <description>&lt;P&gt;also, there is a syntax error with the following line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;o.Update()&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 06:37:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/7906630#M84166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-04T06:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change of local Z axis sense with Robot API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/7906816#M84167</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Actually, I want my local coordinate axes for each panel to be such that the z-axis is always pointing outward.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You have to check local Z vector and change it according to your needs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim RSel As RobotSelection
    Set RSel = RobApp.Project.Structure.Selections.CreateFull(I_OT_PANEL)
    Dim PanelCol As RobotObjObjectCollection
    Set PanelCol = RobApp.Project.Structure.Objects.GetMany(RSel)

Dim X As RobotGeoPoint3D, Y As RobotGeoPoint3D, Z As RobotGeoPoint3D
    Dim Obj As RobotObjObject
    
    Set X = RobApp.CmpntFactory.Create(I_CT_GEO_POINT_3D)
    Set Y = RobApp.CmpntFactory.Create(I_CT_GEO_POINT_3D)
    Set Z = RobApp.CmpntFactory.Create(I_CT_GEO_POINT_3D)
        
        
        Set Obj = PanelCol.Get(1)
        Obj.Main.Attribs.GetLCS X, Y, Z&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Apr 2018 08:20:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/7906816#M84167</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2018-04-04T08:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Change of local Z axis sense with Robot API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/7906818#M84168</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;also, there is a syntax error with the following line:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;o.Update()&lt;/EM&gt;&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is C# code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case of VBA : o.Update&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 08:21:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/7906818#M84168</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2018-04-04T08:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Change of local Z axis sense with Robot API</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/7906828#M84169</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hint:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;o.Main.Attribs.DirZ = 0&amp;nbsp; 'default (assigned by program) local Z direction&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;o.Main.Attribs.DirZ = 1 ' opposite to default direction&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 08:24:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/change-of-local-z-axis-sense-with-robot-api/m-p/7906828#M84169</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2018-04-04T08:24:07Z</dc:date>
    </item>
  </channel>
</rss>

