Accessing the points on the Hole/Thread Note leader

Accessing the points on the Hole/Thread Note leader

catot
Advocate Advocate
817 Views
4 Replies
Message 1 of 5

Accessing the points on the Hole/Thread Note leader

catot
Advocate
Advocate

Does anyone know if it's possible to get the Point2D coordinates of the Hole Note "Leader"? I'm using Inventor 2017, and from the API Help, it seems to me that this is not considered a leader? But I'm a beginner at this, so please correct me if I'm wrong.

 

What I want to do, is connect/attach to a "leader point" on the Hole/Thread Note (which is possible to do manually in the drawing). The closest point I'm able to access is the lower left corner of the Hole Note text (RangeBox.MinPoint).

 

Anyone got any suggestions?

0 Likes
818 Views
4 Replies
Replies (4)
Message 2 of 5

JaneFan
Autodesk
Autodesk

Hey @catot,

 

Please check whether the text origin of the hole node meets your requirement:

Dim oHoleNode As HoleThreadNote
Set oHoleNode = drwDoc.Sheets(1).DrawingNotes.HoleThreadNotes(1)

Debug.Print oHoleNode.Text.Text
Debug.Print oHoleNode.Text.Origin.X 

Debug.Print oHoleNode.Text.Origin.Y




Jane Fan
Inventor/Fusion QA Engineer
0 Likes
Message 3 of 5

catot
Advocate
Advocate

@JaneFan

 

Sorry, I forgot to mention, that was what I tried first.

 

Please see the picture below, that should explain a bit better. These points refer to the picture:

  1. is the text origin, and not what I want. But maybe I'm missing something?
  2. is what I currently can achieve (RangeBox.MinPoint)
  3. is what I want to connect to.

 

Capture.PNG

 

 

Is this possible, or do I need to set new X and Y coordinates based on the Hole Note Style, starting from the point i already have to access this location?

 

0 Likes
Message 4 of 5

catot
Advocate
Advocate

I've tried some more, and have concluded that it would be acceptable to be able to connect my symbol to the the text origin on the Hole Note (no. 1), as long as its connected. Then It could just manually be moved to connect to point no. 3. But I'm stuck on how to make that happen.

I can insert my symbol at the location, but I can not make it connected to the point during insertion, so that it will follow the view when moved etc.

Btw, I want to insert the symbol without any leader.

I've studied the API help samples which shows how to do it with Geometry Intent etc., but I'm not able to make it work.

 

Any help/input is much appreciated.

0 Likes
Message 5 of 5

MechMachineMan
Advisor
Advisor

Why not just use a sketched symbol then, instead of going through the hassle of modifying a leader to get to the same end product?


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes