Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello ,
I am currently using the following code to place sketch symbol in my drawing. But this doesn't seem to be working for sketch symbol with field text in it (or prompted entry). Do you know how to place such a sketch symbol using ilogic? Thanks in advance!
Dim oDrawDoc As DrawingDocument oDrawDoc = ThisApplication.ActiveDocument 'create insertion point Dim oTG As TransientGeometry = ThisApplication.TransientGeometry Dim oInsertionPoint As Point2d 'define the insert point for the symbol oInsertionPoint = oTG.CreatePoint2d(5,5)
'define symbol Definition to use oSymDef= oDrawDoc.SketchedSymbolDefinitions.Item("MYSKETCHSYMBOL") 'Get the current active sheet Dim oCurrentNumber As Sheet oCurrentNumber = oDrawDoc.ActiveSheet 'insert the new symbol oSym = oCurrentNumber.SketchedSymbols.Add(oSymDef,oInsertionPoint,0,1,Nothing)
Solved! Go to Solution.