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...
In Autocad it's ActiveDocument.Utility.polarpoint
I'm not seeing it in BricscadApp or elsewhere.
Is this an interop situation?
Thanks in advance...
0
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.0
-
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]0 -
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?refs.png0
This discussion has been closed.