How to obtain the Layout Name that an object belongs to
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
How to obtain the Layout Name that an object belongs to

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
Stanley
Guest





Posted: Fri Dec 17, 2004 10:26 am    Post subject: How to obtain the Layout Name that an object belongs to Reply with quote

Hello everybody!

I have an object created on the Paper Space of a Layout Page.

Suppose I'm in another Layout Page now , I have the objectID of the above
mentioned object.

Can I get the Layout's Name that the object belongs to using VBA code ?

Thanks for help.

Back to top
Jorge Jimenez
Guest





Posted: Fri Dec 17, 2004 10:34 am    Post subject: Re: How to obtain the Layout Name that an object belongs to Reply with quote

You'll need the OwnerID, then get it's layout block like so:

Set Lblock = ThisDrawing.ObjectIdToObject(miobject.OwnerID)

--
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica


"Stanley" <kw_chan@fengchuan.com.hk> wrote in message
news:41c26dff_3@newsprd01...
Quote:
Hello everybody!

I have an object created on the Paper Space of a Layout Page.

Suppose I'm in another Layout Page now , I have the objectID of the above
mentioned object.

Can I get the Layout's Name that the object belongs to using VBA code ?

Thanks for help.

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB