AnsweredAssumed Answered

How to get the coordinates(point_X、point_Y、point_Z)of gravity on an assembly

Question asked by 欣 齐 on Mar 18, 2016
Latest reply on Mar 22, 2016 by 欣 齐

ModelDoc2 ModelDoc2 = default(ModelDoc2);

            ModelDoc2 = (ModelDoc2)iSwApp.ActiveDoc;

            int DocType = 0;

            DocType = ModelDoc2.GetType();

            if (DocType != (int)swDocumentTypes_e.swDocASSEMBLY)


                Debug.Print("An assembly document is not active");




            AssemblyDoc AssemblyDoc = default(AssemblyDoc);

            AssemblyDoc = (AssemblyDoc)ModelDoc2;


            AssemblyDoc .XXXXXXXXXXXXXXXXX

             QUE:what funtion using , I can get the assembly's gravity coordinates?

             Thanks a lot!