IsVisibleInView

Verifies that an object is visible in a view.

Syntax

Rhino.IsVisibleInView (strObject [, strView])

Parameters

strObject

Required.  String.  The identifier of an object.

strView

Optional.  String.  The title of the view.  If omitted, the current active view is used.

Returns

True

The object is visible in the specified view.

False

The object is not visible in the specified view.

Null

On error.

Example

Dim strObject, strView

strObject = Rhino.GetObject("Select object")

If Rhino.IsObject(strObject) Then

  strView = Rhino.CurrentView

  If Rhino.IsVisibleInView(strObject, strView) Then

  Rhino.Print "The object is visible in " & strView & "."

  Else

  Rhino.Print "The object is not visible in " & strView & "."

End If

End If

Also See

IsObject

IsView