C# Utilities.POLARPOINT

Does anyone have any idea how to access the utilities.polarpoint function in C#?

In Autocad it's ActiveDocument.Utility.polarpoint

I'm not seeing it in BricscadApp or elsewhere.

Is this an interop situation?

Thanks in advance...

Comments

  • Scratch that, it is where it is supposed to be.  It was waiting for an instance of it(BricscadApp) to be called to expose the functions. 
  •  
    Just in case you wanted to use the API instead if Com Interop ...

    [code]
            ///         /// Defines a point with polar coordinates from a base point.        ///         /// "basePt">The base point.        /// "angle">The angle (radians) about the X axis.        /// "distance">The distance from the base point.        /// The new 3d point.        public Point3d Polar(Point3d basePt, double angle, double distance) {            return new Point3d(                basePt.+ (distance * Math.Cos(angle)),                basePt.+ (distance * Math.Sin(angle)),                basePt.Z); 
            }[/code]
  •  
    Just in case you wanted to use the API instead if Com Interop ...

          
            ///         /// Defines a point with polar coordinates from a base point.        ///         /// "basePt">The base point.        /// "angle">The angle (radians) about the X axis.        /// "distance">The distance from the base point.        /// The new 3d point.        public Point3d Polar(Point3d basePt, double angle, double distance) {            return new Point3d(                basePt.+ (distance * Math.Cos(angle)),                basePt.+ (distance * Math.Sin(angle)),                basePt.Z);     
            }

    Thanks for the reply Kerry.  I would like to use the API, but cannot find that class using the standard references(see attached).  Which library is it in?

    imagerefs.png
This discussion has been closed.