Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

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.X + (distance * Math.Cos(angle)),                basePt.Y + (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.X + (distance * Math.Cos(angle)),                basePt.Y + (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.
Origami
Origami is the Japanese word for paper folding. ORI means to fold and KAMI means paper and involves the creation of paper forms usually entirely by folding.

Powered by VanillaForums, Designed by Steam