Ok, this one may be a quick answer for someone out there. I am creating C3D label expressions in VB .Net for C3D 2016, and creating the expressions is somewhat easy, BUT does anyone have any idea of how to insert one of my expression names into another expression?
If I use say:
Dim _ExpColl As ExpressionCollection
Dim _LblStyleColl As LabelStyleCollection
Dim _Expression As Expression = SomeExpression
_ExpColl = _LblStyleColl.Expressions
_ExpColl.Add("ThisExp", "This is an expression.", "1+" & _Expression.Name)
I end up getting an error saying the expression is invalid. Now if I use:
Dim _ExpColl As ExpressionCollection
Dim _LblStyleColl As LabelStyleCollection
Dim _Expression As Expression = SomeExpression
_ExpColl = _LblStyleColl.Expressions
_ExpColl.Add("ThisExp", "This is an expression.", "1+" & _Expression.ExpressionString)
The whole string comes in properly, but what a mess of text. Regardless, do any of you know how I would be able to get the expression name to come into my new expression so I don't have static info?
Thanks in advance.