Message 1 of 10
API-created TextStyle is not available for model sketch Text (ex. for Mark feature)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
If I manually create new Text Style by means of Style Editor of part modelling environment it becomes available within drop-down list in Format Text window:
.... but when I create new TextStyle (as a copy of "DEFAUL-ISO") by means of API it is not present at the drop-down list.
My iLogic code is:
Dim pDoc As PartDocument = ThisDoc.Document
Dim myTextStyle As TextStyle
Dim myTextStyleName = "Mark Text"
Try
myTextStyle = pDoc.TextStyles(myTextStyleName)
Catch
For Each tStyle In pDoc.TextStyles
' Logger.Info(vbTab & tStyle.InternalName)
If tStyle.InternalName = "1:DEFAULT-ISO" & vbLf
Logger.Info(vbTab & "Source-TextStyle: " & tStyle.Name)
myTextStyle = tStyle.Copy(myTextStyleName)
Exit for
End If
Next
End Try
Dear @johnsonshiue, is it an Inv defect, or am I just missing something?
This was reproduced in Inv 2024.3.1.
Please vote for Inventor-Idea Text Search within Option Names