AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What is the "ade_expreval" equivalent in ObjectARX (.Net)

2 REPLIES 2
Reply
Message 1 of 3
mapaquin
604 Views, 2 Replies

What is the "ade_expreval" equivalent in ObjectARX (.Net)

The "ade_expreval" command evaluates an expression and extracts the information for a specific entity.
Ex:
 

(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?

Thanks

Marc 

2 REPLIES 2
Message 2 of 3
Partha.Sarkar
in reply to: mapaquin

Hi Marc,

 

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.


Thanks,



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

Message 3 of 3
mapaquin
in reply to: Partha.Sarkar

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.

 

Regards,


Marc 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost