VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem With Intersectwith option in VBA

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
718 Views, 2 Replies

Problem With Intersectwith option in VBA

I have a problem with the intersectwith option when trying to compare text
that intersects. I get a return if the text has the same rotation angle, or
if the text is 90 degrees perpendicular to one another. I do not get a
return if the text is rotated on any other angle. For example, if I have
one piece of text that is at 0 degrees, and I have another piece of text
that crosses that text at a 45 degree angle, the intersectwith option does
not return any points of intersection, even though they clearly intersect.
If those same two pieces of text are rotated at 0 degrees, or if one piece
is at 90 and the other is at 0, the intersectwith option returns all of the
intersection points.

Does anybody know why? Is this a bug with the intersectwith option in VBA?

Thanks,

Sam Bell
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Hi Sam,
I haven't tried the intersectwith method with text, but you may want to
check out the extend options for the method. Or worse comes to worse
create 2 rays starting at the insert points and heading in the direction
of the textangles, run the intersectwith method on them, and delete them
when finished.
-Josh

Sam Bell wrote:

> I have a problem with the intersectwith option when trying to compare text
> that intersects. I get a return if the text has the same rotation angle, or
> if the text is 90 degrees perpendicular to one another. I do not get a
> return if the text is rotated on any other angle. For example, if I have
> one piece of text that is at 0 degrees, and I have another piece of text
> that crosses that text at a 45 degree angle, the intersectwith option does
> not return any points of intersection, even though they clearly intersect.
> If those same two pieces of text are rotated at 0 degrees, or if one piece
> is at 90 and the other is at 0, the intersectwith option returns all of the
> intersection points.
>
> Does anybody know why? Is this a bug with the intersectwith option in VBA?
>
> Thanks,
>
> Sam Bell
>
>
>
Message 3 of 3
abhishekkalamkar1010
in reply to: Anonymous

Hello,

 

 I wanna intersect Block Reference object with Polyline object  and get the Object data of Block Reference and need to update the object data in polyline object.

 

kindly advice me.

 

Thanks in Advance !!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost