Multiple Link code

Multiple Link code

aammarJHHNU
Enthusiast Enthusiast
267 Views
2 Replies
Message 1 of 3

Multiple Link code

aammarJHHNU
Enthusiast
Enthusiast

I have a problem with SAC.

I want to create a variable that take an input parameter and concatenate it with a letter.

when i want to add 2 inputs, the concatenate function take only the last input.

i want to have : input1 + letter, input2 + letter.

See picture for ùore information.

Thank you

0 Likes
268 Views
2 Replies
Replies (2)
Message 2 of 3

BrianHailey
Mentor
Mentor

You would probably have to use the different "string." methods to figure out where the commas are and then extract the text before and after the commas and then concat them together with your desired variable. If it's always the same number of fields, it should be pretty straight forward but if the number of fields vary, you'll have to use decisions to access them all.

 

I haven't tried it myself. I just learned today that there are string handling functions that you can use in SAC so, thanks!

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

0 Likes
Message 3 of 3

aammarJHHNU
Enthusiast
Enthusiast

"The commas serve as a separation between two strings so that SAC recognizes the presence of two distinct strings, rather than interpreting a comma within a single string.

0 Likes