Trying to understand why selection of alignment on-screen to get the alignment name as a string
doesn’t work, when the pasted name of the alignment name works.
You’re way more likely to get responses if you share a screenshot of your graph in action, with all the information we need to understand your process, rather than relying on everyone else to download and run your graph (which can lead to assumptions, varying package versions, and other differences in outcome).
(With the caveat I know nothing about Civil3d and it’s data structure/object model)
Is “Alignment Name” actually a string?
I mean, it looks like a string, but the Selection.AlignmentByName node is looking for “Name” as an input, which may be a data type or property, rather than the actual text value of that name…
I thought a name was a string, but maybe you right. it’s works fine with typing the name, just thought it should have worked. I’ll look and see if there is a node for alignment name, I’d rather select the alignment than type its name.
When I use the alignment dropdown it works, I did notice the civilobject.name changed from it looks like a list to string, even when the output of the civilobject.name says it’s a string. that must be why it didn’t work.
As @Mark.Ackerley mentioned, it’s likely the list structure. All the ways that have worked have been with a single item. The original failed state was when you used Select Objects (plural). This was returning a list of strings instead of a single string.
You probably just need to use list levels or a method for a single object selection if you’re only ever using a single object at a time.