Get an object by its OwnerID

Get an object by its OwnerID

Kh.mbkh
Advocate Advocate
257件の閲覧回数
1件の返信
メッセージ1/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 件のいいね
258件の閲覧回数
1件の返信
返信 (1)
メッセージ2/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)