@chandra.shekar.g I attached a simple connector with the default TB. Also added the icon and a bom, but to reiterate, looking to make a script where when my BOM is published i can run my rule, then it will input all the corresponding. I had it working to a point, but corrupted save and couldnt figure out how to get it to place it with the prompted entry.
Side note: I also plan to have the sketch symbols auto populate the qty based on the BOM.
Found the code that i was working off of as a start. Sadly my file i was working on got corrupted during its save.
'Sub Main()
' Set a reference to the drawing document.
' This assumes a drawing document is active.
Dim oDrawDoc As DrawingDocument = ThisDrawing.Document
' Obtain a reference to the desired sketched symbol definition.
Dim oSketchedSymbolDef As SketchedSymbolDefinition _
= oDrawDoc.SketchedSymbolDefinitions.Item("SymbolA") 'this changes to the BeMatrix Part
Dim oDrawDoc As DrawingDocument = ThisDoc.Document
'create insertion point, coordinates - in cm !
Dim oTG As TransientGeometry = ThisApplication.TransientGeometry
Dim oInsertionPoint As Point2d = oTG.CreatePoint2d(10, 10)
' Add an instance of the sketched symbol definition to the sheet.
' Rotate angle = 0 radians,
' scale = 1 when adding
' no prompt text
Dim oSketchedSymbol As SketchedSymbol _
= oSheet.SketchedSymbols.Add( _
oSketchedSymbolDef, _
oInsertionPoint, _
0, 1, Nothing) 'Getting hung up here on what to put for "Nothing" to prompt the entry.
'End Sub