DMU Navigator

Creating a Hyperlink


This macro shows you how to use hyperlinks. The macro assumes that a CATProduct has been loaded.

 

CAADmuHyperlinks is launched in CATIA [1]. A previously opened document is needed.

CAADmuHyperlinks.CATScript is located in the CAAScdDmuUseCases module. Execute macro (Windows only).

 

CAADmuHyperlinks includes four steps:

  1. Retrieving the hyperlinks collection
  2. Creation of a hyperlink
  3. Creation of two URLs
  4. Removal of one URL

Retrieving the hyperlinks collection

The Hyperlinks collection (see Hyperlinks) is the factory to create Hyperlink object (see Hyperlink) : this collection is retrieved using the GetTechnologicalObject method, with the string "Hyperlinks", on the root product of the active document.

Creation of a hyperlink

Add method is used on the Hyperlinks collection to create the Hyperlink object.

Creation of two URLs

The Hyperlink object enables the creation of URLs thru AddUrl method. In the example we add two differents URLs.

Removal of one URL

The Hyperlink object enables the removal of URLs thru RemoveObject method. Note that this method can be called with the URL number as well as with the URL name. In the example, we remove the first URL.

[Top]


In Short

This use case has shown how to use hyperlinks. Specifically, it has illustrated how to :

[Top]


References

[1] Replaying a macro
[2] DMU Navigator automation objects

[Top]


DMU Navigator Home DMU Space Analysis Home DMU Kinematics Simulation Home

Copyright © 2006, Dassault Systèmes. All rights reserved.