Database Management
Reference Manual
Link Documents
:
Command Window
: Unlinking a Document from a Database Element
Unlinking a Document from a Database Element
Once there is an association between an element and a Link Descriptor you can break the assignment by using the DLREMOVE command. The command syntax is:
----------------+
/ |
>--- DLREMove ----*-- <selatt> -----+------>
It is possible to remove an association both by removing a link from a Link Descriptor to a database element or by removing a link from a database element to a Link Descriptor. For example:
If current element is a Hull Panel Element (HPAN) named /PANEL1 the following command removes link to document described by /MYDOC1 from /PANEL1:
> DLREM /MYDOC1
If current element is a Link Descriptor (LNDESC) named /MYDOC1 the following command removes link to document described by this Link Descriptor to /PUMP1:
> DLREM /PUMP1
The following command removes all Link Descriptor associations from the current element:
> DLREM LINks
The following command removes the first five Link Descriptor associations from the current element:
> DLREM LIN 1 TO 5
Getting and setting link target
If the current element is a Link Descriptor you can retrieve or set the URL stored in this descriptor. To link to an external resource you should directly set the URL:
> URL 'file:///Docsys/MyDocument.doc'
The Link Descriptor has a pseudo attribute LNKREF that returns a database reference if the descriptor links internally to Dabacon. If you set the URL to an external resource LNKREF returns a null reference:
> QUERY LNKREF
Url DBRef Nulref
You can use the LNKREF to set link to an internal database reference e.g. a drawing:
> LNKREF /DRAWING1
> QUERY LNKREF
Url DBRef / DRAWING1
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.