Message 1 of 16
diesel expression:Counting down from the end
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!
My file name form: AAAA-BBBB-CCCC
Inside: AAAA and CCC was fixed
BBBB is the name of each drawing.
I'm using the Diesel function to insert a name (BBBB) into a drawing canvas.
$(SUBSTR,$(GETVAR,DWGNAME),No.1,$(-,$(STRLEN,$(GETVAR,DWGNAME)),No.2))
Inside:
No.1: The start letter of the string
No.2: the starting letter of the omitted part.
Problem: Because BBBB item is not fixed number of letters. Is there any way to remove the CCCC part. By way of counting down from the end?
Thank you very much