The "ade_expreval" command evaluates an expression and extracts the information for a specific entity.
(setq myobject (car (entsel "Select an object:")))
(setq value (ade_expreval myobject ".center" "point"))
This will put the center point of the circle in the "value" variable. The "ade_expreval" command can evaluate a wide range of expressions.
I need to use an equivalent function in ObjectARX (.Net).
Is this available in the 2013 API?
I don't think there is an equivalent of "ade_expreval" in Map ARX or .NET exists.
What are you trying to achieve ? If this is to find the Centroid, you could try the following :
AcMapUtilities:: CreateCentroids() for creating and getting centroid.
I am building a tool that extracts specific information from a drawing. The tool needs to accept expressions as a prameter to extract specific data. This is why the "ade_expreval" command was perfect for this.
Looks like I will have to use LISP, store the result in Users# variable and have fun with the "LispEnded" event handler.
Thanks for the reply.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.