hexagon logo

How to grab current alignment name with VB?

Within PC-DMIS, we can hard code an assignment to make a variable's value to be a text string of the name of the current alignment, like so:
ASSIGN/VARIABLE1=GETSETTING("Current Alignment")


However, I have a need to obtain with VB the name of the current alignment at the point in the program where the cursor is when I run a button-launched BAS script.

I just want the name as a text string so that when I automate adding Constructed 3D Lines (made from current coord sys axis) their names include the alignment name. Right now they come in with the name X_AXIS_ALIGNMENT_EDIT and I have to (ugh) manually edit them. Ain't nobody got time for that.

Nothing I try in VB works, the GETTEXT, GETCOMMAND, GETSETTING etc string handlers are not valid VB commands ha ha.

I'm thinking I do not know how to dig deep enough, that I'm missing some string functions that VB can easily grab.

Any ideas?
Parents Reply Children
No Data