IAcadUtility
A series of methods provided for utility purposes
Supported Platforms: Windows only
Object Inheritance
Members
These members are part of this object:
Methods- AngleToReal
- AngleToString
- DistanceToReal
- RealToString
- TranslateCoordinates
- InitializeUserInput
- GetInteger
- GetReal
- GetInput
- GetKeyword
- GetString
- GetAngle
- AngleFromXAxis
- GetCorner
- GetDistance
- GetOrientation
- GetPoint
- PolarPoint
- CreateTypedArray
- GetEntity
- Prompt
- GetSubEntity
- IsURL
- GetRemoteFile
- PutRemoteFile
- IsRemoteFile
- LaunchBrowserDialog
- GetObjectIdString
- AngleToReal()
Double AngleToReal([in] BSTR Angle, AcAngleUnitsShort Unit)
Converts an angle as a string to a real (double) value
- AngleToString()
BSTR AngleToString([in] Double Angle, AcAngleUnitsShort Unit, [in] Int precision)
Converts an angle from a real (double) value to a string
- DistanceToReal()
Double DistanceToReal([in] BSTR Distance, AcUnitsShort Unit)
Converts a distance from a string to a real (double) value
- RealToString()
BSTR RealToString([in] Double Value, AcUnitsShort Unit, [in] Int precision)
Converts a real (double) value to a string
- TranslateCoordinates()
VARIANT TranslateCoordinates([in] VARIANT Point, AcCoordinateSystemShort FromCoordSystem, AcCoordinateSystemShort ToCoordSystem, [in] Int Displacement, [in, optional] VARIANT OCSNormal)
Translates a point from one coordinate system to another coordinate system
- InitializeUserInput()
Void InitializeUserInput([in] Int Bits, [in, optional] VARIANT KeyWordList)
Initializes the GetKeyword method
- GetInteger()
Int GetInteger([in, optional] VARIANT Prompt)
Gets an integer value from the user
- GetReal()
Double GetReal([in, optional] VARIANT Prompt)
Gets a real (double) value from the user
- GetInput()
BSTR GetInput( )
Converts an input string from the user into a keyword index
- GetKeyword()
BSTR GetKeyword([in, optional] VARIANT Prompt)
Gets a keyword string from the user
- GetString()
BSTR GetString([in] Int HasSpaces, [in, optional] VARIANT Prompt)
Gets a string from the user
- GetAngle()
Double GetAngle([in Point, optional] VARIANT,[in, optional] VARIANT Prompt)
Gets the angle specified. Considers the setting of the ANGBASE system variable
- AngleFromXAxis()
Double AngleFromXAxis([in] VARIANT StartPoint, [in] VARIANT EndPoint)
Gets the angle of a line from the X axis
- GetCorner()
VARIANT GetCorner([in] VARIANT Point, [in, optional] VARIANT Prompt)
Gets a corner of a rectangle
- GetDistance()
Double GetDistance([in Point, optional] VARIANT,[in, optional] VARIANT Prompt)
Gets the distance from the prompt line or a selected set of points on the screen
- GetOrientation()
Double GetOrientation([in Point, optional] VARIANT,[in, optional] VARIANT Prompt)
Gets the angle specified. Ignores the setting of the ANGBASE system variable
- GetPoint()
VARIANT GetPoint([in Point, optional] VARIANT,[in, optional] VARIANT Prompt)
Gets the point selected in DWGdirectX
- PolarPoint()
VARIANT PolarPoint([in] VARIANT Point, [in] Double Angle, [in] Double Distance)
Gets the point at a specified angle and distance from a given point
- CreateTypedArray()
Void CreateTypedArray([out] Pointer Type varArr, [in] Int Type, [in] SAFEARRAY inArgs)
Creates a variant that contains an array of typed arguments
- GetEntity()
Void GetEntity([out] Pointer Type Object, [out] Pointer Type PickedPoint, [in, optional] VARIANT Prompt)
Gets an object interactively
- Prompt()
Void Prompt([in] BSTR Message)
Posts a prompt to the command window
- GetSubEntity()
Void GetSubEntity([out] Pointer Type Object, [out] Pointer Type PickedPoint, [out] Pointer Type transMatrix, [out] Pointer Type ContextData, [in, optional] VARIANT Prompt)
Gets an object or subentity interactively
- IsURL()
Boolean IsURL([in] BSTR URL)
Validates a given URL
- GetRemoteFile()
Void GetRemoteFile([in] BSTR URL, [out] Pointer Type LocalFile, [in] Boolean IgnoreCache)
Downloads the file specified by a URL
- PutRemoteFile()
Void PutRemoteFile([in] BSTR URL, [in] BSTR LocalFile)
Uploads a file to a remote location specified by a URL
- IsRemoteFile()
Boolean IsRemoteFile([in] BSTR LocalFile, [out] Pointer Type URL)
Returns the URL that a remote file was downloaded from
- LaunchBrowserDialog()
Boolean LaunchBrowserDialog([out] Pointer Type SelectedURL, [in] BSTR DialogTitle, [in] BSTR OpenButtonCaption, [in] BSTR StartPageURL, [in] BSTR RegistryRootKey, [in] Boolean OpenButtonAlwaysEnabled)
Launches the Web Browser dialog that allows the user to navigate to any URL and select a URL
- GetObjectIdString()
BSTR GetObjectIdString([in] IDispatch* Object, [in] Boolean bHex)
Returns ObjectId as String, returned string as a whole number or a hexadecimal depend upon bHex parameter