Determining what layout an object is in

Determining what layout an object is in

Anonymous
Not applicable
305 Views
2 Replies
Message 1 of 3

Determining what layout an object is in

Anonymous
Not applicable
Does anybody know how to determine which layout a specific block is inserted
into.

thanks in advance,
kevin
0 Likes
306 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
You can pass the value of the OwnerID property to the
ObjectIdToObject method of AcadDocument, to get the
Owing space block.

"Kevin Vining" wrote in message news:D97C49438C1CAA0BEE1C1DF319C88FF4@in.WebX.maYIadrTaRb...
> Does anybody know how to determine which layout a specific block is inserted
> into.
>
> thanks in advance,
> kevin
>
>
0 Likes
Message 3 of 3

Anonymous
Not applicable

Public Sub WhichLayout()
Dim oEntity As AcadEntity
Dim Point As Variant

ThisDrawing.Utility.GetEntity oEntity, Point, "Select entity "

MsgBox ThisDrawing.ObjectIdToObject(oEntity.OwnerID).Layout.Name
End Sub
0 Likes