Message 1 of 9
Simple code giving me a error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Just to say now, i am very very new to logic and i have been stumbling my way through it for years
' W_1 = "" W_2 = "" W_3 = "" W_4 = "" W_5 = "" W_Numbering = "0" Dim DrawDoc As DrawingDocument = ThisDoc.Document Dim ActiveSht As Sheet = DrawDoc.ActiveSheet Dim SketchedSymbolName As String = "Stark_Weld_Symbol" For Each Sym As SketchedSymbol In ActiveSht.SketchedSymbols If Sym.Definition.Name <> SketchedSymbolName Then Continue For 'Get text from first text box Dim TxtResult As String = Sym.GetResultText(Sym.Definition.Sketch.TextBoxes(1)) W_Numbering = W_Numbering + 1 "W_" & W_Numbering = TxtResult Next
I just want the TextResult to send its data to the properties i created at the beginning of the rule so every time it runs it will use W_1 then next time use W_2
I know i am missing something stupid from being novice