Message 1 of 15
iLogic Thread Call out with additional text
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good afternoon Forum,
I am trying to get a hole thread note with additional text as shown in the image below. I can get the code to give me the diameter of the hole but I just can't figure the hole thread note out.
The diameter is called out as:
Dim HoleDim2 = genDims.AddDiameter("F_S_F2_JH", Dim2Pos, E_S_F2_JH)
Any help for this noob would be greatly appreciated.
Dim Sheet_1 = ThisDrawing.Sheets.ItemByName("Sheet:1") Dim TOP_VIEW = Sheet_1.DrawingViews.ItemByName("TOP VIEW") Dim holeThreadNotes = Sheet_1.DrawingNotes.HoleThreadNotes Dim genDims = Sheet_1.DrawingDimensions.GeneralDimensions ' Add Annotations ThisDrawing.BeginManage() Dim F_S_F1_DH = TOP_VIEW.GetIntent("2021_2-250008-15-001:1", "F_S_F1_DH") Dim E_S_F1_DH = TOP_VIEW.GetIntent("2021_2-250008-15-001:1", "E_S_F1_DH") Dim WP_S_F1_DHCP = TOP_VIEW.GetIntent("2021_2-250008-15-001:1", "WP_S_F1_DHCP") Dim WP_S_F2_JHCP = TOP_VIEW.GetIntent("2021_2-250008-15-001:1", "WP_S_F2_JHCP") Dim WP_S_F2_MHCP = TOP_VIEW.GetIntent("2021_2-250008-15-001:1", "WP_S_F2_MHCP") Dim F_S_F2_JH = TOP_VIEW.GetIntent("2021_2-250008-15-001:1", "F_S_F2_JH") Dim E_S_F2_JH = TOP_VIEW.GetIntent("2021_2-250008-15-001:1", "E_S_F2_JH") Dim E_S_F2_MH = TOP_VIEW.GetIntent("2021_2-250008-15-001:1", "E_S_F2_MH") ' Calculate Positions Dim Dim1Pos = ThisDrawing.Geometry.Point2d(0, 0) Dim1Pos.InDatabaseUnits = WP_S_F1_DHCP.PointOnSheet Dim1Pos.Y = Dim1Pos.Y + 0.25 + (HoleDiameter / 2) * TOP_VIEW.Scale Dim1Pos.X = Dim1Pos.X + 0.25 + (HoleDiameter / 2) * TOP_VIEW.Scale Dim Dim2Pos = ThisDrawing.Geometry.Point2d(0, 0) Dim2Pos.InDatabaseUnits = WP_S_F2_JHCP.PointOnSheet Dim2Pos.Y = Dim2Pos.Y + 0.25 + (HoleDiameter / 2) * TOP_VIEW.Scale Dim2Pos.X = Dim2Pos.X + 0.25 + (HoleDiameter / 2) * TOP_VIEW.Scale Dim Dim3Pos = ThisDrawing.Geometry.Point2d(0, 0) Dim3Pos.InDatabaseUnits = WP_S_F2_MHCP.PointOnSheet Dim3Pos.Y = Dim3Pos.Y + 0.25 + (HoleDiameter / 2) * TOP_VIEW.Scale Dim3Pos.X = Dim3Pos.X + 0.25 + (HoleDiameter / 2) * TOP_VIEW.Scale Dim HoleDim1 = genDims.AddDiameter("F_S_F1_DH", Dim1Pos, E_S_F1_DH) Dim HoleDim2 = genDims.AddDiameter("F_S_F2_JH", Dim2Pos, E_S_F2_JH) Dim HoleDim3 = genDims.AddDiameter("F_S_F2_MH", Dim3Pos, E_S_F2_MH) ThisDrawing.EndManage()