Inventor.Point modelPoint, Inventor.Point2d viewPoint, Inventor.View view) { Inventor.TransientGeometry tg = _inventorApplication.TransientGeometry; Inventor.Matrix mat = tg.CreateMatrix(); // Calculate X and Y offset with respect to basept of CGRect double xOffset = modelPoint.X - _basePt.X; double yOffset = modelPoint.Y - _basePt.Y; mat.SetTranslation(tg.CreateVector(xOffset, yOffset, 0)); // Transform the GraphicsNode to new postion _graphicsNode.Transformation = mat; _interactionGraphics.UpdateOverlayGraphics(_inventorApplication.ActiveView); } // This is public method which is invoked from instance of this class public void MoveCGRect ( Inventor.GraphicsNode grNode, string cgrectRefChain, Inventor.Point basePt ) { // Assign CGRect basept to class _basePt _basePt = basePt; // Set up interaction events _interactionGraphics = _interactionEvents.InteractionGraphics; _clientGraphics = _interactionGraphics.OverlayClientGraphics; _graphicsNode = _clientGraphics.AddNode(1); // Collect all graphics Node with same ref chain Inventor.ObjectCollection grNodesColl =
Inventor.Point modelPoint, Inventor.Point2d viewPoint, Inventor.View view) { Inventor.TransientGeometry tg = _inventorApplication.TransientGeometry; Inventor.Matrix mat = tg.CreateMatrix(); // Calculate X and Y offset with respect to basept of CGRect double xOffset = modelPoint.X - _basePt.X; double yOffset = modelPoint.Y - _basePt.Y; mat.SetTranslation(tg.CreateVector(xOffset, yOffset, 0)); // Transform the GraphicsNode to new postion _graphicsNode.Transformation = mat; _interactionGraphics.UpdateOverlayGraphics(_inventorApplication.ActiveView); } // This is public method which is invoked from instance of this class public void MoveCGRect ( Inventor.GraphicsNode grNode, string cgrectRefChain, Inventor.Point basePt ) { // Assign CGRect basept to class _basePt _basePt = basePt; // Set up interaction events _interactionGraphics = _interactionEvents.InteractionGraphics; _clientGraphics = _interactionGraphics.OverlayClientGraphics; _graphicsNode = _clientGraphics.AddNode(1); // Collect all graphics Node with same ref chain Inventor.ObjectCollection grNodesColl =
handout_1664_au_2012_class_handout_CP1664.docx