Message 1 of 2
Create Leader Note with the properties model- part number

Not applicable
01-30-2020
09:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, i was trying to create an automated annotation tag but through ilogic but this is what i have so far..
Dim oDoc As DrawingDocument oDoc = ThisApplication.ActiveDocument Dim s As String s = "<StyleOverride Font='Arial'><Parameter Resolved='True' ComponentIdentifier='C:\Users\hanb\Documents\Disc.ipt' Name='HoleQuantity' Precision='0'>8</Parameter></StyleOverride><StyleOverride Font='Arial'> HOLES ON DIA </StyleOverride><StyleOverride Font='Arial'><Parameter Resolved='True' ComponentIdentifier='C:\Users\hanb\Documents\Disc.ipt' Name='HolePCD' Precision='0'>35</Parameter></StyleOverride><StyleOverride Font='Arial'>±0.1 </StyleOverride><Br/><StyleOverride Font='Arial'>WITH </StyleOverride><StyleOverride Font='Arial'><Parameter Resolved='True' ComponentIdentifier='C:\Users\hanb\Documents\Disc.ipt' Name='HoleQuantity' Precision='0'>8</Parameter></StyleOverride><StyleOverride Font='Arial'> DIVISIONS</StyleOverride>" Dim curve As DrawingCurve curve = oDoc.SelectSet.Item(1).Parent Dim oGI1 As GeometryIntent oGI1 = oDoc.ActiveSheet.CreateGeometryIntent(curve, kCenterPointIntent) Dim pt As Point2d pt = ThisApplication.TransientGeometry.CreatePoint2d pt.X = curve.CenterPoint.X + 3 pt.Y = curve.CenterPoint.Y + 5 Dim oObjCol As ObjectCollection oObjCol = ThisApplication.TransientObjects.CreateObjectCollection oObjCol.Addpt oObjCol.AddoGI1 Dim oLN As LeaderNote ' create a LeaderNote. oLN = oDoc.ActiveSheet.DrawingNotes.LeaderNotes.Add(oObjCol, "") oLN.FormattedText = s