<?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: Extract Matrix3D from a Solid3D/Entity? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/extract-matrix3d-from-a-solid3d-entity/m-p/2184456#M75517</link>
    <description>I don't understood this solution..&lt;BR /&gt;
What do You store in 1011 code ?&lt;BR /&gt;
(point xaxis-point yaxis-point ) ?</description>
    <pubDate>Wed, 29 Oct 2008 11:16:18 GMT</pubDate>
    <dc:creator>bikelink</dc:creator>
    <dc:date>2008-10-29T11:16:18Z</dc:date>
    <item>
      <title>Extract Matrix3D from a Solid3D/Entity?</title>
      <link>https://forums.autodesk.com/t5/net-forum/extract-matrix3d-from-a-solid3d-entity/m-p/2184451#M75512</link>
      <description>Anybody have a good solution to how to extract the rotation from a Solid3D/Entity? The best would be to get it as a Matrix3D format, but as I am not able to get anything I can probobly live with vectors/angles also.&lt;BR /&gt;
&lt;BR /&gt;
So, from Entity I find something called ent.Esc but this is all the time returning rotation as 0.&lt;BR /&gt;
&lt;BR /&gt;
From a Solid3D object I can't get any Matrix3D at all.&lt;BR /&gt;
&lt;BR /&gt;
So if someone can clear this up I would be greatful!&lt;BR /&gt;
&lt;BR /&gt;
/Markus</description>
      <pubDate>Wed, 20 Feb 2008 11:17:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/extract-matrix3d-from-a-solid3d-entity/m-p/2184451#M75512</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-20T11:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Matrix3D from a Solid3D/Entity?</title>
      <link>https://forums.autodesk.com/t5/net-forum/extract-matrix3d-from-a-solid3d-entity/m-p/2184452#M75513</link>
      <description>I have worked with Solid3D too. So I save in 1011 Xdata code the origin point, xaxis point and yaxis point defined by myself. So, if I move, rotate, etc the solid3D object the 1011 xdatas update. So, i can to retrieve the 1011 xdatas and find the matrix3D. Understand me?&lt;BR /&gt;
&lt;BR /&gt;
Cherrs.&lt;BR /&gt;
&lt;BR /&gt;
Luizoo</description>
      <pubDate>Fri, 28 Mar 2008 13:14:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/extract-matrix3d-from-a-solid3d-entity/m-p/2184452#M75513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-28T13:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Matrix3D from a Solid3D/Entity?</title>
      <link>https://forums.autodesk.com/t5/net-forum/extract-matrix3d-from-a-solid3d-entity/m-p/2184453#M75514</link>
      <description>The 'real' Matrix for a 3dsolid is in another database object that's part of the 3dsolid's data, but is hidden from all APIs except DXF, so the only way to get at it is via acedEntGet(). The LISP code below returns the entity data of that object for a selected solid. The 16 elements of the solid's matrix are in group codes 40 through 55. The origin of the coordinate system defined by the matrix is the solid's centroid. &lt;BR /&gt;
&lt;BR /&gt;
(defun C:SOLDATA ()&lt;BR /&gt;
&lt;BR /&gt;
   (setq idSolid (car (entsel "\nSelect a 3DSolid: ")))&lt;BR /&gt;
&lt;BR /&gt;
   (setq Solid (entget idSolid))&lt;BR /&gt;
&lt;BR /&gt;
   (setq idHistory &lt;BR /&gt;
      (cdr (assoc 350 (member '(100 . "AcDb3dSolid") Solid)))&lt;BR /&gt;
   )&lt;BR /&gt;
&lt;BR /&gt;
   (setq History (entget idHistory))&lt;BR /&gt;
&lt;BR /&gt;
   (setq idEvalGraph &lt;BR /&gt;
      (cdr (assoc 360 (member '(100 . "AcDbShHistory") History)))&lt;BR /&gt;
   )&lt;BR /&gt;
&lt;BR /&gt;
   (setq EvalGraph (entget idEvalGraph))&lt;BR /&gt;
&lt;BR /&gt;
   (setq idEvalExpr &lt;BR /&gt;
      (cdr (assoc 360 (member '(100 . "AcDbEvalGraph") EvalGraph)))&lt;BR /&gt;
   )&lt;BR /&gt;
&lt;BR /&gt;
   (setq EvalExpr (entget idEvalExpr))&lt;BR /&gt;
&lt;BR /&gt;
   (textscr)&lt;BR /&gt;
&lt;BR /&gt;
   (princ "\n\n3DSOLID Primitive data:\n")&lt;BR /&gt;
&lt;BR /&gt;
   (foreach pair EvalExpr&lt;BR /&gt;
      (print pair)&lt;BR /&gt;
   )&lt;BR /&gt;
   (princ "\n")&lt;BR /&gt;
&lt;BR /&gt;
   (princ)&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Here's a video that shows how the data was found:&lt;BR /&gt;
&lt;BR /&gt;
  http://www.caddzone.com/3dSolidHistory.wmv&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;MARKUSV&gt; wrote in message news:5852960@discussion.autodesk.com...&lt;BR /&gt;
Anybody have a good solution to how to extract the rotation from a Solid3D/Entity? The best would be to get it as a Matrix3D format, but as I am not able to get anything I can probobly live with vectors/angles also.&lt;BR /&gt;
&lt;BR /&gt;
So, from Entity I find something called ent.Esc but this is all the time returning rotation as 0.&lt;BR /&gt;
&lt;BR /&gt;
From a Solid3D object I can't get any Matrix3D at all.&lt;BR /&gt;
&lt;BR /&gt;
So if someone can clear this up I would be greatful!&lt;BR /&gt;
&lt;BR /&gt;
/Markus&lt;/MARKUSV&gt;</description>
      <pubDate>Fri, 28 Mar 2008 13:45:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/extract-matrix3d-from-a-solid3d-entity/m-p/2184453#M75514</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-28T13:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Matrix3D from a Solid3D/Entity?</title>
      <link>https://forums.autodesk.com/t5/net-forum/extract-matrix3d-from-a-solid3d-entity/m-p/2184454#M75515</link>
      <description>How can I get the member IdHistory in a dot.net program ?&lt;BR /&gt;
I'm not able to find it. &lt;BR /&gt;
It's possibile to perform the same code  in .net code ?&lt;BR /&gt;
Thank You in advice</description>
      <pubDate>Mon, 21 Jul 2008 12:19:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/extract-matrix3d-from-a-solid3d-entity/m-p/2184454#M75515</guid>
      <dc:creator>bikelink</dc:creator>
      <dc:date>2008-07-21T12:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Matrix3D from a Solid3D/Entity?</title>
      <link>https://forums.autodesk.com/t5/net-forum/extract-matrix3d-from-a-solid3d-entity/m-p/2184455#M75516</link>
      <description>You have to P/Invoke acdbEntGet(), and then look for the 360 group (ObjectId) in the result buffer it returns.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
&lt;BIKELINK&gt; wrote in message news:5986249@discussion.autodesk.com...&lt;BR /&gt;
How can I get the member IdHistory in a dot.net program ?&lt;BR /&gt;
I'm not able to find it. &lt;BR /&gt;
It's possibile to perform the same code  in .net code ?&lt;BR /&gt;
Thank You in advice&lt;/BIKELINK&gt;</description>
      <pubDate>Mon, 21 Jul 2008 20:02:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/extract-matrix3d-from-a-solid3d-entity/m-p/2184455#M75516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-21T20:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Matrix3D from a Solid3D/Entity?</title>
      <link>https://forums.autodesk.com/t5/net-forum/extract-matrix3d-from-a-solid3d-entity/m-p/2184456#M75517</link>
      <description>I don't understood this solution..&lt;BR /&gt;
What do You store in 1011 code ?&lt;BR /&gt;
(point xaxis-point yaxis-point ) ?</description>
      <pubDate>Wed, 29 Oct 2008 11:16:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/extract-matrix3d-from-a-solid3d-entity/m-p/2184456#M75517</guid>
      <dc:creator>bikelink</dc:creator>
      <dc:date>2008-10-29T11:16:18Z</dc:date>
    </item>
  </channel>
</rss>

