CTAB fields

CTAB fields

cR3d74
Explorer Explorer
3,919 Views
4 Replies
Message 1 of 5

CTAB fields

cR3d74
Explorer
Explorer

Apologies right off the bat,   i probably should already know how to do this and I hope that I can be clear enough to explain.

 

I am xrefing a border with job specific text and a CTAB reference that numbers my sheet according to my current tab description.  

 

Now for the question, How do I create a reference that will separate a text string from number string inside of my current layout tab description.  (example: "C2.1- Preliminary Site Layout")   How do I have my tab named this and use MTEXT Fields for page numbers and Sheet Titles???  I have been digging for an answer all day and this is my last resort when it should have probably been first.

 

Many Thanks

c Ray Walker

0 Likes
Accepted solutions (2)
3,920 Views
4 Replies
Replies (4)
Message 2 of 5

pbejse
Mentor
Mentor
Accepted solution

@cR3d74 wrote:

 ..How do I have my tab named this and use MTEXT Fields for page numbers and Sheet Titles??? 


 

 

With Diesel expression field value

example:

 

 

epending on the maximum number of characters for the sheet number

"C2.1      Preliminary Site Layout"
"C2.10     Times of your life"
"C10.101   Batman and Bane showdown"

$(substr,$(getvar,ctab),1,10)
will always give me
	C2.1
	C2.10
	C10.101

$(substr,$(getvar,ctab),11)
	Preliminary Site Layout
	Times of your life
	Batman and Bane showdown

 

 

That should work for you that is if you don't mind having all those white space on the layout tab.

Refer to the attached sample file.

 

HTH

 

 

 

 

0 Likes
Message 3 of 5

cR3d74
Explorer
Explorer
Accepted solution

Thank you for the help...  seems like that is exactly what i was wanting.

0 Likes
Message 4 of 5

cR3d74
Explorer
Explorer

OK, two quick questions.

first off thanks for the diesel expression help, extremely helpful

 

question 1

how do i write the expression now to remove the C from C4.0?

 

question 2

can you point me to the best tutorial for learning more about the field command and diesel expressions writing?

0 Likes
Message 5 of 5

pbejse
Mentor
Mentor

@cR3d74 wrote:

 

question 1

how do i write the expression now to remove the C from C4.0?

 


 

 

$(substr,$(getvar,ctab),2,9)

 


@cR3d74 wrote:

 

 question 2

can you point me to the best tutorial for learning more about the field command and diesel expressions writing?


 

As for Field & Diesel expression, you can start by reading thru the links below

 

Fields Dialog

D I E S E L Dumb Interpretively Evaluated String Expression Language

Field Eval system variable <-- Your other question.