| Miscellaneous library functions - all other general AutoLisp operations | ||
| Function Name | Description | |
|---|---|---|
| MI_3dface_Ucs | Create a new User coordinate system in the plane of the 3dface object with the point 10 as the origin and the point 11 as the positive portion of x-axis and point 12 as the positive portion of the y-axis | |
| MI_3PUcs | Create a new User coordinate system using the 3 Point option | |
| MI_acos , MI_asin | Returns the arc sine and arc cosine of a value | |
| MI_AcquireFromNearestZ | Acquires and updates the Z elevation for each point of source 3d polyline (or line) from the nearest point of the target 3d polyline | |
| MI_AddBit | Add a bit code value to a number if it does not exist | |
| MI_AddDMS | Adds the degrees, minutes and seconds to form a single decimal degrees number | |
| MI_AddLine2File | Adds a line of text to an ASCII file at a position immediately after or before a specified text matching line | |
| MI_after | Return selection set of objects after entname | |
| MI_AlphaNext | Returns the next alpha string Id | |
| MI_Arc2Line | Convert an ARC to LINE segments | |
| MI_ArcLength | Compute the length of an ARC | |
| MI_asin | Returns inversse of sin | |
| MI_askangle | Ask a distance supplying a default | |
| MI_askDist | Ask a distance supplying a default | |
| MI_askfile; | Ask for a file name, allow browsing, an enhanced version of (getfiled) | |
| MI_askint | Ask an integer supplying a default | |
| MI_askpoint | Ask a point, supplying a default | |
| MI_askreal | A wrapper for getreal function. Displays the prompt string with a default option of real number | |
| MI_askstrng | Ask a string supplying a default | |
| MI_AssignClrLty | Assign a given color and linetype to an object | |
| MI_AttachMultURL | Attaches multiple hyperlinks to an object | |
| MI_AverageLst | Averages the real or integer values in a list | |
| MI_ceil | Finds the ceiling of a number to the nearest multiple. | |
| MI_ceilR | Finds the ceiling of a real number value to the nearest multiple. | |
| MI_ChkDup | Checks to see if duplicate objects exist in the drawing. | |
| MI_CirErr | Creates a Circle Error Flag in the DWGERR layer at specified scale, Color and with a message | |
| MI_CopyProfile | Copy profiles from source to target | |
| MI_CreateTable | Creates a table using the AutoCAD 2005 Table command | |
| MI_Crypt | Allows an encryption key to be applied t a registration file | |
| MI_CurDWG | Returns the name of the current drawing with full path | |
| MI_CurveLength | Returns the linear slope length of the curve object. and under it. | |
| MI_CurveMidPt; | Returns the mid point of the curve. | |
| MI_CurveSlope@Pt | Returns the slope of the curve as the specified point | |
| MI_d2r | Convert from Degrees to Radians | |
| MI_DateCreated | Returns the 'Date Created' from a file | |
| MI_DateFmtOk | Check if date format is Okay | |
| MI_DateFromSumDay | Returns the date list from a SumDay list. | |
| MI_DateString | Returns the Date in the form of a string Jan 1, 1900 | |
| MI_DeleteProfile | Delete the named profile from the AutoCAD setup | |
| MI_DelRegistryTree | Deletes an entire registry tree starting from the specified path and under it. | |
| MI_Diff | Check if the given two integer or floating point values are and absolute given range. | |
| MI_dn | Print Drawing Name and Modes/Project Number on Status line | |
| MI_DrawBox | Draws a rectangular box with the specified width and height, layer and line thickness. | |
| MI_DrawGrSquare | Draw a square mark using (grdraw) | |
| MI_DrawGrVecs | Draws a series of vectors using grdraw and the specified color | |
| MI_Encrypt | The encrypted String | |
| MI_Encrypt1 | The encrypted String | |
| MI_Encrypt2 | The encrypted String | |
| MI_End | Completion code after any command. | |
| MI_Expired? | Check if the right to use the program has expired or not? | |
| MI_ExportFile | Runs the AutoCAD Reads all current GeoTools operating parameters from the | |
| MI_ExportProfile | Exports the named profile into an external reg file | |
| MI_FileEncrypt | Encrypts a file using a set of encryption keys, supplied in a list | |
| MI_FindInComputer | Returns each occurence of the specified file on the entire computer as returned by the named drives. | |
| MI_floor | Finds the floor values to the nearest multiple. | |
| MI_GetAcadAngleFromBearing | Returns the AutoCAD angle, measured from East, counter-clockwise positive direction | |
| MI_GetAcadLanguage | Returns the operating language of the currently running AutoCAD | |
| MI_GetActiveProfile | Returns the current profile in use | |
| MI_GetAllLTypes | Returns all loaded linetypes in current drawing | |
| MI_GetAllProfiles | Returns a list string names of all the currently defined profiles in the drawing | |
| MI_GetBearing | Returns the bearing measured from North, clockwise positive direction | |
| MI_GetColor | Returns the color information from passed parameter | |
| MI_GetDate | Returns the date in a list format (DD MM YYYY) | |
| MI_GetDisplayColor | Get the display color of an object | |
| MI_GetDisplayLineWeight | Get the display line-weight of an object | |
| MI_GetDisplayLType | Get the display linetype of an object; | |
| MI_getext | Remove the path information from a complete path string | |
| MI_GetFixedDrive | The first named fixed drive | |
| MI_GetHighestPullDownMenu | Returns the number of the highest pulldown menu currently loaded | |
| MI_GetKeyWords | Accept a predefined list of keywords with default option | |
| MI_GetLinesWith | Returns lines in a text file which contain a given string pattern | |
| MI_GetOsnapModes | Returns a comma delimited string which contains all the currently OSNAP modes | |
| MI_GetRegionElev | Returns the elevation of a REGION object | |
| MI_GetScaleList | Returns the list of defined scales in the drawing) | |
| MI_GetSupportPath | Gets the Support path for the specified profile | |
| MI_GetTempDir | Returns the Windows temporary directory | |
| MI_GetType | Returns the type of the variable | |
| MI_GetWorkspacesLst | Returns the list of workspaces defined in the current AutoCAD setup | |
| MI_GetYesOrNo | Accept an input of Yes or No with default option | |
| MI_HideFile | Change attributes of the specified file(s) to "Hide" | |
| MI_htoi | Convert from hexadecimal string to ineteger | |
| MI_hx+1 | Accepts a hexadecimal string, increments it by 1 and returns the result as a hexadecimal string | |
| MI_hx+hx | HX+HX accepts two hexadecimal strings as arguments and returns their sum as a hexadecimal string. | |
| MI_hx+int | HX+INT accepts a hexadecimal string and an integer as arguments, and returns their sum as a hexadecimal string | |
| MI_hxlist | HXLIST accepts a hexadecimal string and returns it as a list in the form:(1's 16s 16x16s 16x16x16s ...) | |
| MI_IdNext | Returns the next alpha-numeric string Id | |
| MI_ImportProfile | Exports the named profile into an external reg file | |
| MI_InBetween | Checks if a give value is in between two values | |
| MI_Init4Vars | Initialize the 4 control variables (All are global) | |
| MI_InterP | Interpolate Z value between two points | |
| MI_IsActiveViewPortLocked | Returns 'T' or 'nil' if the active viewport is locked or not | |
| MI_IsItDottedPair | Check if argument is a dotted pair | |
| MI_IsPointOnCurve | Determines if the two points are on a curved path along a curve or not. | |
| MI_itoh | Convert from a Base 10 integer to hexadecimal | |
| MI_LineTypeLoad | Loads a specfied linetype from specifeid linetype file | |
| MI_ListHx | MI_ListHx accepts a list in the form: (1's 16s 16x16s 16x16x16s ...) and returns it as a hexadecimal string. The list may be either stored in a variable (listhx var), or quoted (listhx '(integer integer ...)). | |
| MI_LoadPartialMenu | Loads a single partial menu into the current menu and appends at the end. | |
| MI_mfix | Modified fix function, handles negative numbers also. | |
| MI_newext; | Adds a new extension to a given string, removing old one if it already exists | |
| MI_now | Computes and returns the current time in hh mm ss 0-24 format. | |
| MI_num_sort | Numeric sort function | |
| MI_OpenDwg | Opens the specified drawing | |
| MI_Output_Ctrl | Command line interface for output control Control if original objects are to be deleted and if layer to place objects is "current" or "source" | |
| MI_PathEqual | Compares two paths and returns T if they evaluate to the same, nil otherwise | |
| MI_Point2d | Returns a 3d point with the Z set to 0.0 (as 2d point) | |
| MI_r2d | Convert from Radians to Degrees | |
| MI_RandNum | Return a random number between 0 and 1 | |
| MI_RandomInt | Return a random integer between 0 and 9 | |
| MI_ReadReg | Read a list of variables from a specified registry path. | |
| MI_RemBit | Removes a bit code value from a number if it exists | |
| MI_remext | Remove the path information from a complete path string | |
| MI_round | Rounds off a value to the nearest multiple. | |
| MI_roundR | Rounds off a real number value to the nearest multiple. | |
| MI_ScreenExt | Returns the co-ordinates of the extents of the current view window. | |
| MI_ScriptActive? | Returns T if a script is running else nil | |
| MI_SelectLineOrPolyline | Allows a line or polyline to be selected | |
| MI_SetActiveProfile | Set the specified profile as current | |
| MI_SetDimStyleAnnotative | Sets the specified dimension style annotative or switches the annotative style mode off. | |
| MI_SetDrawOrder | Sets the DrawOrder or selected objects as per the specified method. | |
| MI_SetLType | Set Specified Linetype as current, if already loaded. | |
| MI_SetNearZero | Sets the near zero values in a co-ordinate to exactly zero.zero This function ususally finds use in setting co-ordinate values after they have been passed through functions like trans that may leave a residue close to 0.0 | |
| MI_SetOsnapCover | Set the coverage of the Object Snap to specified AutoCAD units | |
| MI_SetSupportPath | Sets the Support path for the specified profile | |
| MI_SetTxtStyleAnnotative | Sets the specified text style annotative or switches the annotative style mode off. | |
| MI_Shift | Performs an X, Y and Z shifts on a point | |
| MI_ShiftPt | Performs an shift of a point 'pt1' by an amount 'pt2' | |
| MI_ShiftRot | Performs an X, Y and Z shifts on a point, along a rotation angle | |
| MI_SplitDMS | Returns the degrees, minutes and seconds from a whole number | |
| MI_SplitPath | Splits the full path and returns the path segment and the file segment. | |
| MI_sqr | Return the square of a number. | |
| MI_ssort | SSort | |
| MI_StrCoords | Creates the string that represents a coordinates. The default precision is used. | |
| MI_SumDay | Sum of all days from base year 0 Common Era. | |
| MI_SumTime; | Computes the number of seconds elapsed since 12 midnight. | |
| MI_TblData | Returns the number of entries and the entries themselves in the specified symbol table | |
| MI_TimeFromSumTime | Returns the date from Sum Time (in secs) - (returned from MI_SumTime) | |
| MI_TimeStamp | Returns a string that is the current time-stamp | |
| MI_Today | Compute and return today's date in (list mm dd yyyy) | |
| MI_Today_SQL | Returns today's date in a format as required by SQL | |
| MI_UnHideFile | Change attributes of the specified file(s) to "Normal" | |
| MI_UnHideFile | Change attributes of the specified file(s) to "Normal" | |
| MI_UnLoadPartialMenu | Unloads a single partial menu from the current menu and deletes the corresponding MNS, MNC and MNR files | |
| MI_UpdateArc | Update the two end points of the ARC object | |
| MI_WriteReg | Write a list of variables and values into a specified registry path. | |
| MI_WriteRPTHdr | Writes the header of a default format report or error file | |
| MI_xentlast | Returns the true last entity created in AutoCAD. | |
| MI_Zero | Wipe out the contents of a file by setting its size to 0 bytes | |
| pb2 | Reads all current GeoTools operating parameters from the registry | |
| QuickPick | Quick pick the object | |
| QuickPick_Object | Quick Pick an Object and return complete list, including extended entity data from all applications. | |
| QuickPick_Object_Xdata | Quick Pick an Object and return extended entity data list from all applications | |