Thanks for the suggestion. Here is a C# sample code snippet that works for Dimensions as well as properties
SolidEdgeFramework.
VariableList vl = (SolidEdgeFramework.VariableList)variables.Query("Dimension_to_look_for", Type.Missing, Type.Missing, false
);
// If any result.....
if
(vl.Count == 1)
{
// Get the result in an untyped variable. In this case it can be either a variable or a dimension
object
variable = vl.Item(1);
// Get the value of the variable by querying "Value" member
object Value = variable.GetType().InvokeMember("Value", BindingFlags.GetProperty, null, variable, null);// Now convert the result to a double and multiply with 1000
// to get a value in mm
Decimal dValue =
Convert.ToDecimal(Value) * 1000;Kind Regards
Kjell-Åke