Implementation method of importing hypertext in AutoCAD

Implementation method of importing hypertext in AutoCAD

I. Introduction
AutoCAD is a widely used CAD software platform with strong drawing and editing functions. The drawings it draws can clearly express the designer's thoughts and intentions. The drawings often need to be filled with the necessary text to explain the information that the graphics cannot express. In addition to the text input commands included in AutoCAD, there are other ways to enter multi-line text, ie hypertext, into AutoCAD: through the clipboard provided by Windows, using the multi-line text commands provided by AutoCAD; using the OLE feature.
Second, use a single line of text command combination to achieve a small amount of text input in the AutoCAD drawing can be achieved with the DText command, such as the drawing name, schedule, title bar, technical requirements, etc. in the engineering drawing. When multiple lines of text need to be entered, it can be achieved by a combination of single lines of text. That is, after inputting a line of text, multi-line text input is performed with the help of copy commands (Copy) and text editing (DDEdit or MTEdit), attribute editing (DDModify), object property tools (ProperTIes), move (Move) and other commands. However, this method is difficult to position and line-align when line-feeding. And after the labeling, each line of text is a separate entity. So when using it to mark multiple lines of text, in fact, the input and editing functions are far less convenient than the following methods.
Third, the clipboard to achieve the clipboard is a function provided by Windows to help data communication between applications. Although the data transmitted by the clipboard is static, that is, the modification of the data in the application program will not be reflected in the target program, but the operation is convenient, fast and simple. Taking Word as an example, Word provides three commands: Cut, Copy, and Paste to operate the clipboard. The specific implementation method is as follows: Open AutoCAD and Word software, select the content to be inserted in Word, and click the "Copy" command in the "Edit" drop-down menu. Activate AutoCAD, open the "Paste" option in the "Edit" drop-down menu, so that the Word document is inserted using the upper left corner of the AutoCAD drawing area as the insertion point. It is inconsistent with the ratio and needs to be dealt with.
Fourth, use AutoCAD multi-line text commands to import
The AutoCAD system provides a multi-line text input command MText, which can mark multiple lines of text at a time, and each line of text is aligned according to the specified width, and becomes a complete and unified entity. Can be imported from external documents.
1. Enter directly in the text editor, select "Text" in the AutoCAD drop-down menu "Draw", and then click the "MulTIline Text ..." option, prompt the user in the Command prompt area to determine the width, height and font arrangement of the marked text , The system determines the size of the text box according to the input information, and pops up a text editor dedicated to text editing, that is, the "MulTIline Text Editor" dialog box pops up. After selecting the preconditions such as font type, character height, and text width, You can directly input, edit, and modify multi-line annotation text in the "MulTIline Text Editor" dialog box.
2. Import multiple lines of text from outside
(1) Import plain text If you need to import plain text, you can directly click the "Import Text ..." button in the "Multiline Text Editor" dialog box, and the "Open" dialog box pops up. The user can select the desired insertion in this dialog box. Quoted plain text file. (In addition to supporting plain text documents, AutoCAD 2000 can also import RTF format files with format information. Users can format text in word processing software that supports RTF format, and then import it into AutoCAD using this method).
(2) Importing formatted text For RTF formatted format documents, it can be imported directly from a text editor. For non-RTF format format documents to be imported into AutoCAD, the format conversion process must be carried out before the import can be successful. Otherwise, it will prompt a format error. Format conversion processing methods are: method one, you can transfer non-RTF format documents into plain text word processing software such as Notepad, and then save as plain text format documents; method two, some format documents can be converted to RTF format documents, also Can be successfully imported.
Fifth, use OLE to link or embed an object from one application into another application. The operation process is very similar to the operation process using the clipboard, but there is a big difference between them. Object Linking and Embedding (OLE) is an integrated interface provided by Microsoft Windows. It uses OLE to insert Word documents into AutoCAD drawings, that is, a specific OLE object is linked from one application to another. Keep in touch between the applications that created it, and the two applications can be edited in real time. The specific implementation method is as follows.
Enter AutoCAD, open the drop-down menu "Insert", select the "OLE Object ..." option, the "Insert Object" dialog box pops up, select the type of object to be inserted from the object type list box: Microsoft Word type or other types, select "Yes File creation "radio box. After this radio box is selected, you can directly select an existing file as the insertion object and insert it into the current graphics file. Click the" Browse "button to pop up the" Browse "dialog box and select the Word documents or other types of documents in AutoCAD, and click the "Insert" button in the dialog box to return to the "Insert Object" dialog box, in the "File" edit box in the dialog box is listed in the inserted document path. Click the "OK" button to insert the Word document into the AutoCAD drawing with the insertion point at the upper left corner of the AutoCAD drawing area. If you want to edit the inserted document, you can double-click the document, and the system links to the Word system. After editing, open the "File" menu, click "Close and Return" to return to AutoCAD. At this time, it is the edited Word document. The inserted OLE object can be adjusted in size or steplessly zoomed as needed, and left-clicked to move it to the desired position. This method is applicable to both plain text documents and non-plain text documents.
6. Import through drag-and-drop technology In Windows9X / NT environment, you can open or run multiple applications at one time, so in order to import text documents into graphic files, users can open the Explorer of Window system and drag the document file icon to AutoCAD In the graphics window, the generated text is displayed as an MText object. Use the peripheral control points of the imported object to adjust its size.
Because the graphics in AutoCAD can be zoomed and panned steplessly, the size and position of the text imported by the above method may sometimes be inconsistent with the entire graphic and need to be processed.

BAM Power Transmission Capacitors

BAM Power Transmission Capacitors

Shunt Capacitor,High Voltage Capacitor,Parallel Capacitor,Parallel Capacitor

YANGZHOU POSITIONING TECH CO., LTD , https://www.yzpstcc.com

Posted on