cancel
Showing results for 
Search instead for 
Did you mean: 

Create Leader to Point in drawing

Pioneer
Pioneer

Hi,

 

I want to make a journal to create leader at all points in the drawing.

 

I have created some points in a model and then made a drawing.

I am getting coordinates value as defined in part but I want the point location wrt to drawing.

how to get it?

Please find the attached file for code.

 

6 REPLIES

Re: Create Leader to Point in drawing

Esteemed Contributor
Esteemed Contributor

Have you tried the hole-table?

It creates a table of the coordinates of points, like center of holes, might be an option.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Re: Create Leader to Point in drawing

Pioneer
Pioneer

Hi,

 

I am trying to create leader at the points in the drawing, not a table.

When I run the attached journal it is creating leader but the length of it is too long because it is taking a value of point wrt to model.

So my point is to how to create leader near to the point.

 

Please find the attached image for more information

 

Re: Create Leader to Point in drawing

Valued Contributor
Valued Contributor

There is a wrapper method to map a model point to a drawing point.

 

Public Sub MapModelToDrawing ( member_view As Tag , model_pt As Double(),  map_pt As Double())

 

Frank Swinkels

Re: Create Leader to Point in drawing

Valued Contributor
Valued Contributor

Hi Bhavik,

It's not happening because the points are Point3d which returns location of point3d.

You should manually have some location for the leader line/note.

like- point4= New point3d(200,200,0)

something like that.

 

regards,

Abhi

Re: Create Leader to Point in drawing

Pioneer
Pioneer

Hi,

 

Yes. I got the solution.

I am doing it by expanding View and then inserting notes.

And adding notes by getting coordinates of points.

Re: Create Leader to Point in drawing

Valued Contributor
Valued Contributor

Thats cool.

please make this query as solution.

 

Regards,

Abhi