<?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: Calculate the transform matrix between two CSYS features in 3D Part &amp; Assembly Design</title>
    <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Calculate-the-transform-matrix-between-two-CSYS-features/m-p/680304#M63209</link>
    <description>&lt;P&gt;I don't know of any native commands that can calculate the transform. There is a pretty slick workaround that we use to calculate coordinate system offsets/angles that may be useful to you. Very helpful when designing end of arm tools for robots.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming you have coordinate systems A and B, and you need to know the offset dimensions and angles from A to B.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the steps:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Identify coordinate systems A and B&lt;/LI&gt;
&lt;LI&gt;Create a new coordinate system&lt;/LI&gt;
&lt;LI&gt;Select coordinate system B as a reference for the new coordinate system&lt;/LI&gt;
&lt;LI&gt;Select coordinate system A (reroutes constraint of csys so that it's tied back to A with dimensions)&lt;/LI&gt;
&lt;LI&gt;Click OK&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;See the attached video clip for more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ty&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jul 2020 12:49:31 GMT</pubDate>
    <dc:creator>Tdaugherty</dc:creator>
    <dc:date>2020-07-31T12:49:31Z</dc:date>
    <item>
      <title>Calculate the transform matrix between two CSYS features</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Calculate-the-transform-matrix-between-two-CSYS-features/m-p/680239#M63207</link>
      <description>&lt;P&gt;Is anyone aware of a method to obtain the transform matrix between two CSYS features using built in Creo functions?&lt;/P&gt;
&lt;P&gt;The measure transform function generates the&amp;nbsp;&lt;STRONG&gt;transposed matrix&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;of the matrix which transforms coordinates based on the second selected CSYS &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to that based on the first selected CSYS&lt;/SPAN&gt;&lt;SPAN&gt;. I would like to obtain the transform matrix but can not find any internal function available for relations or a direct analysis to generate this matrix. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would then use the transform matrix values in some relations to drive additional features.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 00:20:22 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Calculate-the-transform-matrix-between-two-CSYS-features/m-p/680239#M63207</guid>
      <dc:creator>tbraxton</dc:creator>
      <dc:date>2020-07-31T00:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the transform matrix between two CSYS features</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Calculate-the-transform-matrix-between-two-CSYS-features/m-p/680297#M63208</link>
      <description>&lt;P&gt;native within Creo -- I don't think so.&amp;nbsp; Unless you set up an analysis feature between your references (or something)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need more detailed access - you might look at &lt;A href="http://www.creoson.com" target="_blank" rel="noopener"&gt;CREOSON&lt;/A&gt;&amp;nbsp;(Open Source Creo Automation)-- there is a function in there called:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;file : get_transform&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Sample Request:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "sessionId": "~sessionId~",
  "command": "file",
  "function": "get_transform",
  "data": {
    "asm": "plate_assy.asm",
    "path": [
      54,
      23,
      45
    ],
    "csys": "CS0"
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;Sample Response:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "status": {
    "error": false
  },
  "data": {
    "origin": {
      "x": 380.0000554810615,
      "y": 120,
      "z": 1.000000000017174e-20
    },
    "x_axis": {
      "x": 0,
      "y": 1,
      "z": 0
    },
    "y_axis": {
      "x": 1,
      "y": 0,
      "z": 0
    },
    "z_axis": {
      "x": 0,
      "y": 0,
      "z": 1
    },
    "x_rot": 0,
    "y_rot": 0,
    "z_rot": 0
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have that... I think it would be pretty easy to compute your transform.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 11:40:47 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Calculate-the-transform-matrix-between-two-CSYS-features/m-p/680297#M63208</guid>
      <dc:creator>DavidBigelow</dc:creator>
      <dc:date>2020-07-31T11:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the transform matrix between two CSYS features</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Calculate-the-transform-matrix-between-two-CSYS-features/m-p/680304#M63209</link>
      <description>&lt;P&gt;I don't know of any native commands that can calculate the transform. There is a pretty slick workaround that we use to calculate coordinate system offsets/angles that may be useful to you. Very helpful when designing end of arm tools for robots.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming you have coordinate systems A and B, and you need to know the offset dimensions and angles from A to B.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the steps:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Identify coordinate systems A and B&lt;/LI&gt;
&lt;LI&gt;Create a new coordinate system&lt;/LI&gt;
&lt;LI&gt;Select coordinate system B as a reference for the new coordinate system&lt;/LI&gt;
&lt;LI&gt;Select coordinate system A (reroutes constraint of csys so that it's tied back to A with dimensions)&lt;/LI&gt;
&lt;LI&gt;Click OK&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;See the attached video clip for more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ty&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 12:49:31 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Calculate-the-transform-matrix-between-two-CSYS-features/m-p/680304#M63209</guid>
      <dc:creator>Tdaugherty</dc:creator>
      <dc:date>2020-07-31T12:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the transform matrix between two CSYS features</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Calculate-the-transform-matrix-between-two-CSYS-features/m-p/680386#M63210</link>
      <description>&lt;P&gt;I found an older thread that is closely related to what I am trying to implement. I think it is a possible solution although&amp;nbsp; I have not verified the Euler angle calculations work for my test case yet. It is worth looking at for anyone needing to use transform matrix elements in relations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="Dynamic Matrix Calculations using analysis features" href="https://community.ptc.com/t5/Assembly-Design/how-to-retrieve-ALL-csys-parameters/td-p/58618" target="_self"&gt;https://community.ptc.com/t5/Assembly-Design/how-to-retrieve-ALL-csys-parameters/td-p/58618&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 23:56:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Calculate-the-transform-matrix-between-two-CSYS-features/m-p/680386#M63210</guid>
      <dc:creator>tbraxton</dc:creator>
      <dc:date>2020-07-31T23:56:49Z</dc:date>
    </item>
  </channel>
</rss>

