• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Map 3D Developer

    Reply
    Member
    Posts: 3
    Registered: ‎06-11-2012

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

    218 Views, 2 Replies
    06-11-2012 12:27 PM

    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 

    Please use plain text.
    ADN Support Specialist
    Posts: 206
    Registered: ‎06-09-2009

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

    06-19-2012 12:35 AM 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

    Please use plain text.
    Member
    Posts: 3
    Registered: ‎06-11-2012

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

    06-21-2012 07:58 AM 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 

    Please use plain text.