Message 1 of 4
Sketch Symbol Insertion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can someone please help me?
I'm trying to put simple sketch symbol from drawing resources into the drawing on exact coordinates by iLogic. I've tried a lot of codes I've found on these forums, but nothing worked and I hade the same mistake on the line with insertion of the symbol.
What am I doing wrong?
Dim oDrawDoc As DrawingDocument = ThisApplication.ActiveDocument Dim oSheet As Sheet = oDrawDoc.ActiveSheet 'create insertion point Dim oPosition As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(10, 15) 'define symbol Definition to use Dim oSymDef As SketchedSymbolDefinition oSymDef = oDrawDoc.SketchedSymbolDefinitions.Item("SYMBOL") 'insert the new symbol Dim oSymbol As SketchedSymbol oSymbol = oDrawDoc.ActiveSheet.SketchedSymbols.Add(oSymDef, oPosition, 0, 1, )
Thanks a lot for you help.
Milan