Hi,
I am working in MicroStation CE Update15. I need to enable /disable ribbon menu buttons based on a variable value.
When i searched in community, many suggestions was can be done through "Named Expressions".
Please provide me an simple example using Named Expressions to achieve this.
Hi Rajesh,
what is your current knowledge of Named Expression? Did you learn them from MicroStation documentation?
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
BTW Why you pollute the question by so many useless tags, not relevant to discussed topics, but at the same time do not follow the best practices, defined for this forum?
Hi Jan,
Just experimenting Named Expressions using https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v17/en/NamedExpressions.html.
Kindly let me know where the best practices/ rules defined for this forum.
Rajesh Varatharajan
Rajesh Varatharajan said:Please provide me an simple example using Named Expressions to achieve this.
I think the simplest way is to try to define own ribbon item (e.g. button), check available expressions in EnableExpression list, and to study how these expressions are defined in Named Expressions dialog.
If I remember right, technically is enable/disable behvior defined as EnableExpression in command specification.