Hello All,

I created some cones by MVBA codes below:

Sub TestCone() Dim MySmartSolid As SmartSolidElement Dim MyTrans As Transform3d Set MySmartSolid = SmartSolid.CreateCone(Nothing, 2, 5, 10) ActiveModelReference.AddElement MySmartSolid With MyTrans .RowX = Point3dFromXYZ(0, -1, 0) .RowY = Point3dFromXYZ(0, 0, 1) .RowZ = Point3dFromXYZ(1, 0, 0) .TranslationX = 10 End With MySmartSolid.Transform MyTrans MySmartSolid.Color = 3 ActiveModelReference.AddElement MySmartSolid End Sub

The first cone is the black one. then I revised transform, the second cone is red one. I'd like to know how to calculate RowX/Y/Z if I'd like to move it to the yellow one, assuming I know the coordinates of the two centers. Thanks a lot.