Get an object by its OwnerID

Get an object by its OwnerID

Kh.mbkh
Advocate Advocate
255 Views
1 Reply
Message 1 of 2

Get an object by its OwnerID

Kh.mbkh
Advocate
Advocate

Having the OwnerID of a Vla-object, how to get that Vla-object ?

Example: 

We can get the parent of a Viewport (it's layout) by OwnerID, but how to access this layout ?

Thanks

0 Likes
256 Views
1 Reply
Reply (1)
Message 2 of 2

komondormrex
Mentor
Mentor

@Kh.mbkh wrote:

Having the OwnerID of a Vla-object, how to get that Vla-object ?


(vla-objectidtoobject (vla-get-activedocument (vlax-get-acad-object)) ownerid)