Verifies that a block definition is from a reference file.
Rhino.IsBlockReference (strBlock)
strBlock |
Required. String. The name or identifier of an existing block definition. |
Boolean |
True or false indicating success or failure. |
Null |
On error. |
Dim strBlock
strBlock = Rhino.GetString("Block name")
If Rhino.IsBlock(strBlock) Then
If Rhino.IsBlockReference (strBlock) Then
Rhino.Print "The block definition is a reference definition."
Else
Rhino.Print "The block definition is not a reference definition."
End If
Else
Rhino.Print "The block definition does not exist."
End If