get insertionpoint

get insertionpoint

Anonymous
Not applicable
292 Views
4 Replies
Message 1 of 5

get insertionpoint

Anonymous
Not applicable
I have some trouble with xref's

I wanted to get the insertionpoint of a picked entity, which is part of an
inserted xref.

Can anyone help me

Klaus
0 Likes
293 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Palan,

Try this:

Dim ent As AcadBlockReference

ThisDrawing.Utility.GetEntity ent, pt, "Pick: "
pt = ent.InsertionPoint
MsgBox pt(0) & " " & pt(1) & " " & pt(2)


Cheers,
Thilak


"Palan" wrote in message
news:21789321AF523485E60DFF628771100D@in.WebX.maYIadrTaRb...
> I have some trouble with xref's
>
> I wanted to get the insertionpoint of a picked entity, which is part of an
> inserted xref.
>
> Can anyone help me
>
> Klaus
>
>
0 Likes
Message 3 of 5

Anonymous
Not applicable
i tryed this, but i get the koord. of the insertionpoint of the xref, and
not of the picked element (from the xref)
is there another solution for my problem

cheers Klaus




"Thilak" schrieb im Newsbeitrag
news:F8FE88EE42C575F2874DD153320432F8@in.WebX.maYIadrTaRb...
> Palan,
>
> Try this:
>
> Dim ent As AcadBlockReference
>
> ThisDrawing.Utility.GetEntity ent, pt, "Pick: "
> pt = ent.InsertionPoint
> MsgBox pt(0) & " " & pt(1) & " " & pt(2)
>
>
> Cheers,
> Thilak
>
>
> "Palan" wrote in message
> news:21789321AF523485E60DFF628771100D@in.WebX.maYIadrTaRb...
> > I have some trouble with xref's
> >
> > I wanted to get the insertionpoint of a picked entity, which is part of
an
> > inserted xref.
> >
> > Can anyone help me
> >
> > Klaus
> >
> >
>
>
0 Likes
Message 4 of 5

Ed__Jobe
Mentor
Mentor
See the example code for the GetSubEntity method. This prompts a user to select and ent on screen and an entity or subentity is returned. You can then get at its properties. -Ed

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 5 of 5

Anonymous
Not applicable
Ooops sorry, I misread your question.
Anyways, Ed_jobe has answered your question.

Thilak


"Palan" wrote in message
news:9190B9E0E3714EF677EFECA19FC43D40@in.WebX.maYIadrTaRb...
> i tryed this, but i get the koord. of the insertionpoint of the xref, and
> not of the picked element (from the xref)
> is there another solution for my problem
>
> cheers Klaus
>
>
>
>
> "Thilak" schrieb im Newsbeitrag
> news:F8FE88EE42C575F2874DD153320432F8@in.WebX.maYIadrTaRb...
> > Palan,
> >
> > Try this:
> >
> > Dim ent As AcadBlockReference
> >
> > ThisDrawing.Utility.GetEntity ent, pt, "Pick: "
> > pt = ent.InsertionPoint
> > MsgBox pt(0) & " " & pt(1) & " " & pt(2)
> >
> >
> > Cheers,
> > Thilak
> >
> >
> > "Palan" wrote in message
> > news:21789321AF523485E60DFF628771100D@in.WebX.maYIadrTaRb...
> > > I have some trouble with xref's
> > >
> > > I wanted to get the insertionpoint of a picked entity, which is part
of
> an
> > > inserted xref.
> > >
> > > Can anyone help me
> > >
> > > Klaus
> > >
> > >
> >
> >
>
>
0 Likes