////////////////////////////////////////////////////////////////////////////////////// // Use: Retrieve current graphic source // ////////////////////////////////////////////////////////////////////////////////////// public object GetGraphicsSource(out AdnGraphicModeEnum mode) { mode = _mode; switch (_mode) { case AdnGraphicModeEnum.kDocumentGraphics: return(_workingDocument); case AdnGraphicModeEnum.kInteractionGraphics: return(_workingInteraction); case AdnGraphicModeEnum.kClientFeatureGraphics: return(_workingFeature); case AdnGraphicModeEnum.kDrawingViewGraphics: return(_workingView); case AdnGraphicModeEnum.kDrawingSheetGraphics: return(_workingSheet); case AdnGraphicModeEnum.kFlatPatternGraphics: return(_workingFlat); default: return(null); } }
////////////////////////////////////////////////////////////////////////////////////// // Use: AdnClientGraphicsManager Constructor // ////////////////////////////////////////////////////////////////////////////////////// public AdnClientGraphicsManager(Inventor.Application Application, string clientId) { _Application = Application; _clientId = clientId; _workingDocument = _Application.ActiveDocument; Transacting = true; _mode = AdnGraphicModeEnum.kDocumentGraphics; InteractionGraphicsMode = AdnInteractionGraphicsModeEnum.kPreviewGraphics; }
////////////////////////////////////////////////////////////////////////////////////// // Use: Retrieve current graphic source // ////////////////////////////////////////////////////////////////////////////////////// public object GetGraphicsSource(out AdnGraphicModeEnum mode) { mode = _mode; switch (_mode) { case AdnGraphicModeEnum.kDocumentGraphics: return _workingDocument; case AdnGraphicModeEnum.kInteractionGraphics: return _workingInteraction; case AdnGraphicModeEnum.kClientFeatureGraphics: return _workingFeature; case AdnGraphicModeEnum.kDrawingViewGraphics: return _workingView; case AdnGraphicModeEnum.kDrawingSheetGraphics: return _workingSheet; case AdnGraphicModeEnum.kFlatPatternGraphics: return _workingFlat; default: return null; } }
public void SetGraphicsSource(ClientFeature feature) { _workingFeature = feature; _mode = AdnGraphicModeEnum.kClientFeatureGraphics; }
public void SetGraphicsSource(InteractionEvents interactionEvents) { _workingInteraction = interactionEvents; _mode = AdnGraphicModeEnum.kInteractionGraphics; }
public void SetGraphicsSource(FlatPattern flatPattern) { _workingFlat = flatPattern; _mode = AdnGraphicModeEnum.kFlatPatternGraphics; }
public void SetGraphicsSource(Sheet sheet) { _workingSheet = sheet; _mode = AdnGraphicModeEnum.kDrawingSheetGraphics; }
public void SetGraphicsSource(DrawingView drawingView) { _workingView = drawingView; _mode = AdnGraphicModeEnum.kDrawingViewGraphics; }
////////////////////////////////////////////////////////////////////////////////////// // Use: Overloaded methods to define the graphic source // ////////////////////////////////////////////////////////////////////////////////////// public void SetGraphicsSource(Document document) { _workingDocument = document; _mode = AdnGraphicModeEnum.kDocumentGraphics; }
////////////////////////////////////////////////////////////////////////////////////// // Use: AdnClientGraphicsManager Constructor // ////////////////////////////////////////////////////////////////////////////////////// public AdnClientGraphicsManager(Inventor.Application Application, string clientId) { _Application = Application; _clientId = clientId; _workingDocument = _Application.ActiveDocument; Transacting = true; _mode = AdnGraphicModeEnum.kDocumentGraphics; InteractionGraphicsMode = AdnInteractionGraphicsModeEnum.kPreviewGraphics; }
public void SetGraphicsSource(ClientFeature feature) { _workingFeature = feature; _mode = AdnGraphicModeEnum.kClientFeatureGraphics; }
public void SetGraphicsSource(InteractionEvents interactionEvents) { _workingInteraction = interactionEvents; _mode = AdnGraphicModeEnum.kInteractionGraphics; }
public void SetGraphicsSource(FlatPattern flatPattern) { _workingFlat = flatPattern; _mode = AdnGraphicModeEnum.kFlatPatternGraphics; }
public void SetGraphicsSource(Sheet sheet) { _workingSheet = sheet; _mode = AdnGraphicModeEnum.kDrawingSheetGraphics; }
public void SetGraphicsSource(DrawingView drawingView) { _workingView = drawingView; _mode = AdnGraphicModeEnum.kDrawingViewGraphics; }
////////////////////////////////////////////////////////////////////////////////////// // Use: Overloaded methods to define the graphic source // ////////////////////////////////////////////////////////////////////////////////////// public void SetGraphicsSource(Document document) { _workingDocument = document; _mode = AdnGraphicModeEnum.kDocumentGraphics; }