Message 1 of 5
How to address a specific Sketched Symbol in iLogic by name

Not applicable
11-05-2015
10:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I have a small code written to move a sketched symbol in my title block when the page size changes. The symbol is a set of prompted text, which is used for sheet specific notes on the drawing. The one issue that I'm having is that I can't figure out how to address the symbol by name, only by it's number, which as you can imagine is problematic.
Any help on this will be appreciated!
If ActiveSheet.Size ="A2" Then PointX = (ActiveSheet.Width/10) - 1 - 0.5 - (7.5/2) PointY = 33.4 + 1 End If If ActiveSheet.Size ="A1" Then PointX = (ActiveSheet.Width/10) - 2 - 0.5 - (7.5/2) PointY = 33.4 + 2 End If If ActiveSheet.Size ="A0" Then PointX = (ActiveSheet.Width/10) - 2 - 0.5 - (7.5/2) PointY = 33.4 + 2 End If Dim oPoint As Point2d oPoint=ThisApplication.TransientGeometry.Createpoint2d(PointX,PointY) ActiveSheet.Sheet.SketchedSymbols.Item(1).Position=oPoint InventorVb.DocumentUpdate()