Home > ZWCAD > Share Date Between Drawings an >
Import OLE Objects

May 20, 2011

     Inserts information of other applications that support OLE objects.

      ZWCAD provides two ways of inserting OLE objects: embed and link. With the different that a link can be updated whenever you want, embedding is unable to update because in lack of links.

     You can use the following method to control visibility of the inserted OLE objects:

  •      Insert OLE objects to the drawing on current layer. Turn off the layer or freeze it to disable displaying OLE objects in the layer.

To embed an object from an existing file within ZWCAD

  1.   Choose Insert > OLE object.

  2.   In the Insert Object dialog box, click Create From File.

  3.   Specify the file by doing one of the following:

  • Type a path and file name in the File box.

  • Click Browse to select a file.

  1.   Select Display As Icon if you want that program's icon to appear in the drawing instead of the data.

  2.   Click OK.

Command line INSETOBJ

To create a new embedded object from within ZWCAD

  1.   Choose Insert > OLE object.

  2.   In the Insert Object dialog box, click Create New.

  3.   From the Object Type list, select the type of object you want to create, and then click OK.

The program for creating that object opens within ZWCAD.

  1.   Create the object in the other program.

  2.    Choose File > Exit to close the program.

Command line INSETOBJ

Link OLE Objects in Drawings

    If another program supports ActiveX, you can link its data to ZWCAD drawings. Use linking when you want to include the same data in many files. When you update the data, all links to other files reflect the changes.

     When you link data from another program, the ZWCAD drawing stores only a reference to the location of the file in which you created the data. You link data from a saved file, so ZWCAD can find the data and display it.

     Because linking adds only a reference to a file, the data does not significantly increase the file size of the ZWCAD drawing. However, links require some maintenance. If you move any of the linked files, you need to update the links. In addition, if you want to transport linked data, you must include all linked files.

      You can update a linked object automatically every time you open the drawing, or you can do so only when you specify. Anytime a link is updated, changes made to the object in its original file also appear in the ZWCAD drawing, and the changes also appear in the original file if they were made through ZWCAD.

       Insert an OLE object together with links to update its displaying in drawings through changing source objects. For example, you may be required to insert a time table into an automatic update drawing.

        When inserting OLE objects, you can display the object as icon, thus you can activate applications which are supportive to this object by double clicking this icon.

To create a linked object from within ZWCAD

  1. Choose Insert > OLE object.

  2. In the Insert Object dialog box, click Create From File.

  3. Specify the file by doing one of the following:

  • Type a path and file name in the File box.

  • Click Browse to select the file using a file dialog box.

  1. Select the Link check box.

  2. Select Display As Icon if you want that program's icon to appear in the drawing instead of the data.

  3. Click OK.

Command line INSETOBJ

Update Links

     Display the links contained in current drawing in the Links dialog performed from OLELINKS command. With this command, you can setup methods to update links for each settings used for linking information, either automatic or manual.

     By default, the OLE links created in ZWCAD drawing are automatic update.

Reconnect Links

       Source refers to the position where the linked documents are located. Once the position of document is changed or renamed, the link source must be changed as well. When replacing information or objects with links contained, the link source should be changed also.

Break Links

      Select Break links option in Links dialog box, OLE objects in ZWCAD drawing will not be removed rather than its links. Thus, the OLE object never updates when changing its source.

To link a file to an ZWCAD drawing

  1. Save the original file.

Because a link consists of a reference to the original file, you must save the file before you can link to it.

  1. In the original file, select the data you want in the ZWCAD drawing.

  2. Choose that program's command to place data on the Clipboard. Usually, you choose Edit > Copy.

  3. Display the ZWCAD drawing to which you want to link the file.

  4. In ZWCAD, choose Edit > Paste Special.

  5. In the Paste Special dialog box, select Paste Link.

  6. Click OK.

Embed OLE Objects in Drawings

      Embed an object into your ZWCAD drawing when you want to keep all the data you work with in one file or if you want to transfer the file to other computers. You can embed data from programs that support object linking and embedding.

      When you embed data from another program, ZWCAD becomes the container for that data.The object embedded in the ZWCAD drawing becomes part of the ZWCAD file. When you edit the data, you open its program from within the ZWCAD drawing.

      Any changes you make to the embedded data exist only in the ZWCAD drawing, so it is not necessary to keep that data in a separate file. If the data does exist in a separate file, the original file does not change when you modify the embedded object in ZWCAD. Also, changes to the original file do not affect the embedded object in the ZWCAD drawing.

To embed another program's object into an ZWCAD drawing

  1. Open the file that contains the data you want.

  2. In the file, select the data you want to embed in the ZWCAD drawing.

  3. Choose that program's command to place data on the Clipboard. Usually, you choose Edit > Copy.

  4. In the ZWCAD window, display the drawing in which you want to embed the object.

  5. Choose Edit > Paste, or click the Paste tool ( ) on the Standard toolbar.

The data on the Clipboard is pasted into the drawing as an embedded object. The object appears in the center of the view, but you can select and move it by moving the cursor.

      The OLE objects that are supportive to other applications will not be updated along with the objects in source document when embedding into ZWCAD drawings.

       ZWCAD provides various methods to embed drawings: such as copy the object to clipboard, paste it to ZWCAD drawing files, and then embed it to ZWCAD drawing. You can embed a company icon created by other applications into ZWCAD drawings.

       With the embedding feature, you can also embed OLE objects into ZWCAD drawings without specifying links. A .txt file will be changed into mtext once embedded into the drawing, with its file name displayed together.

      Once embedded into current drawing, you can adjust the object's size according to the proportion of drawing unit. And also scaling text that is included in OLE objects by specifying point size.

Drag Objects into a Drawing

       If you want to link data and drawings to ZWCAD drawings from other applications, besides inserting OLE objects, you can drag the selected data or drawings into ZWCAD. Both applications must be running and visible on your screen. To drag information between applications, the other applications must support ActiveX. Objects dragged into a drawing are embedded, not linked.

       As manipulating for cutting and pasting, you do the dragging in the same way. The information is removed from one document and pasted into the other document when you do the dragging. Holding down CTRL while dragging creates a copy of the information without affecting the original document, as you do copying and pasting in the same way.

Control Objects' Quality

     Default quality level of the OLE objects is determined by system variable OLEQUALITY. To illustrate plotting effects, the quality here is divided into five grades: line quality, text quality, graphics quality, photo quality and high photo quality.

     In which line quality is the lowest grade, plots the drawing in the shortest way and occupies the least memory. While high photo quality plots the drawing in a longer way and occupies more memory.

Limits for Inserting OLE Objects

      ZWCAD set some limits when linking or embedding the OLE objects. All these inherent limits are used for designing OLE objects.

  • OLE objects are not displayed or plotted on xrefs or block references.

  • Modifications made for plotting rotation are not reflected on OLE objects when using Microsoft Windows system plotter. Change plot orientation in Windows Plotting system configuration dialog box.

  • ZWCAD limits the size of spreadsheet that is imported as OLE object. If import too large a spreadsheet, you can reduce the column width and row height, and reduce font size or partly paste the spreadsheet so as to divide the OLE objects into several objects in smaller size.

  • Before importing OLE objects into other applications, use Windows copyclip viewer to preview OLE object.

Command Reference

INSERTOBJ: Inserts a linked or embedded object

OLELINKS: Updates, changes, and cancels existing OLE links

OPTIONS: Customizes the ZWCAD settings

PASTESPEC: Inserts data from the Clipboard and controls the format of the data

PASTECLIP: Inserts data from the Clipboard

System Variables Reference

OLEQUALITY: Sets the default plot quality for OLE objects

OLESTARTUP: Controls whether the source application of an embedded OLE object loads when plotting


PrintPrint Get a PDF version of this webpage PDF

© 2017 ZWCAD Software Co., Ltd. All rights reserved. Privacy Policy. Terms and Conditions