Redraws the specified region of or the entire SolidWorks graphics window.
.NET Syntax
Visual Basic (Declaration) | |
---|
Sub GraphicsRedraw( _
ByVal Rect As Object _
) |
Visual Basic (Usage) | |
---|
Dim instance As IModelView
Dim Rect As Object
instance.GraphicsRedraw(Rect)
|
C# | |
---|
void GraphicsRedraw(
object Rect
) |
C++/CLI | |
---|
void GraphicsRedraw(
& Object^ Rect
) |
Parameters
- Rect
- Array of four longs indicating the boundary of the region in the SolidWorks graphics window to redraw; if the array is empty, then the entire graphics window is redrawn
Example
Option Explicit
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Dim swModelView As SldWorks.ModelView
Sub main()
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
Set swModelView = swModel.ActiveView
Dim rect(0 To 3) As Long
rect(0) = 10
rect(1) = 10
rect(2) = 20
rect(3) = 20
swModelView.GraphicsRedraw ((rect))
End Sub
Example
Remarks
See Also
Availability
SolidWorks 2008 FCS, Revision Number 16.0