Table of Contents

CadHyperlinkRequest

from OpenCAD2D import CadHyperlinkRequest

class CadHyperlinkRequest(System.Object) ยท CadHyperlinkRequest in the .NET reference

The Insert Hyperlink and Edit Hyperlink dialog of HYPERLINK, as data its command and the window share: what the link goes to and the text it is shown by. Where an object selected has a hyperlink the dialog is Edit Hyperlink and starts from the first one found; OK then makes that the only hyperlink of every object selected, and Remove Link takes every hyperlink from them. Where none has one, OK adds it.

Properties and fields

Action

.NET

@property
def Action(self) -> CadDialogAction
@Action.setter
def Action(self, value: CadDialogAction) -> None

Gets or sets what the dialog was closed with; Cancel until set.

Address

.NET

@property
def Address(self) -> str
@Address.setter
def Address(self, value: str | None) -> None

Gets or sets the file or web page, plans\B-12.pdf or https://example.com (Existing File or Web Page).

EmailAddress

.NET

@property
def EmailAddress(self) -> str
@EmailAddress.setter
def EmailAddress(self, value: str | None) -> None

Gets or sets the e-mail address (E-mail Address).

IsEdit

.NET

@property
def IsEdit(self) -> bool

Gets whether an object selected has a hyperlink: the dialog is Edit Hyperlink, with Remove Link, rather than Insert Hyperlink.

Kind

.NET

@property
def Kind(self) -> CadHyperlinkKind
@Kind.setter
def Kind(self, value: CadHyperlinkKind) -> None

Gets or sets what the link goes to; an existing file or web page until set.

Location

.NET

@property
def Location(self) -> str
@Location.setter
def Location(self, value: str | None) -> None

Gets or sets the named place in the file or page (the dialog's Target); empty for none.

ObjectCount

.NET

@property
def ObjectCount(self) -> int

Gets how many objects the hyperlink is for.

Remove

.NET

@property
def Remove(self) -> bool
@Remove.setter
def Remove(self, value: bool) -> None

Gets or sets whether Remove Link was pressed: every hyperlink of the objects is taken out and nothing is written.

Subject

.NET

@property
def Subject(self) -> str
@Subject.setter
def Subject(self, value: str | None) -> None

Gets or sets the subject of the mail (E-mail Address); empty for none.

TextToDisplay

.NET

@property
def TextToDisplay(self) -> str
@TextToDisplay.setter
def TextToDisplay(self, value: str | None) -> None

Gets or sets the text to display, which the object's tooltip shows; empty to show the address.

Title

.NET

@property
def Title(self) -> str

Gets the title of the dialog: "Edit Hyperlink" or "Insert Hyperlink".

ViewName

.NET

@property
def ViewName(self) -> str
@ViewName.setter
def ViewName(self, value: str | None) -> None

Gets or sets the view of the drawing (View of This Drawing).

Views

.NET

@property
def Views(self) -> System.Collections.Generic.IReadOnlyList[str]

Gets the names of the views of the drawing, in ordinal order, for View of This Drawing.

Methods

ToString

.NET

def ToString(self) -> str

TryBuild

.NET

def TryBuild(self) -> tuple[bool, DxfHyperLink, str]

Makes the hyperlink the dialog stands for. A file or web page needs an address, a view a view of the drawing, a mail an address; an address, text or place longer than 255 characters is refused with AutoCAD's words.