Tuesday, February 07, 2012
How to connect Leader to DVLine in Drawing View
Last Post 08 Jul 2010 03:16 AM by Ravi. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
RaviUser is Offline
New Member
New Member
Posts:7

--
07 Jul 2010 12:53 AM  

 

 

 

 

HI,

I am trying to connect a Leader to the DVLine object in Drawing View using following method,

 

All the entities in Drawing view are starting with DV like DVLine, DVArc, DvCircle etc.

 

objLeader = objLeaders.AddByConnect(Object, X1, Y1, 0,False , X2, Y2, 0)

 

Here i am passing object as,

 

Dim DVline As SolidEdgeDraft.DVLine2d

X1,Y1 as Leader connect

X2,Y2 as end point of DVLine

 

I observed that Leader does not connect to DVLine but take some

Arbitrary vague point (Not the end point of DVLIne)

 

I checked it with the Normal line as,

 

Dim objLine As SolidEdgeFrameworkSupport.Line2d

 

It gets connected properly.

 

Can anybody tell me what is wrong with it ?

 

Ravindra.

 

Julian GuilloUser is Offline
Guru
Basic Member
Basic Member
Posts:125

--
07 Jul 2010 03:11 AM  
Ravindra,
The DVline is inside a DrawingView, and the Leader is outside.
You need to access to a reference of the DVline2d. That somehow converts coordinates and scale inside the view to sheet coordinates.
I think this should work:
objLeader = objLeaders.AddByConnect(Object.Reference, X1, Y1, 0,False , X2, Y2, 0)

Object is a DVline2d.
All the DV-Whatever objects have a Reference property.

Regards,
Julian
RaviUser is Offline
New Member
New Member
Posts:7

--
08 Jul 2010 03:16 AM  

Hi Julian,

Oh ! Great.

The solution given by you workrd very well.

Thanks a lot.

Ravindra.

You are not authorized to post a reply.

Active Forums 4.2
Copyright © 2011 JasonNewell.NET