revitron.transmissiondata

This submodule contains the TransmissionData class which allows for editing the paths of linked files without opening a model.

Classes:

TransmissionData(hostPath)

A transmission data wrapper.

class TransmissionData(hostPath)[source]

Bases: object

A transmission data wrapper.

Methods:

__init__(hostPath)

Inits a new TransmissionData instance.

listLinks()

List all links in the host document.

moveLinksOnDisk(source, target)

Moves all external CAD and RVT links on disk and relinks them.

replaceInPath(search, replace)

Search and replace in all link paths of the document.

write()

Writes the TransmissionData back to the model.

Attributes:

refs

__init__(hostPath)[source]

Inits a new TransmissionData instance.

Parameters

hostPath (string) – The path of the host model

List all links in the host document.

moveLinksOnDisk(source, target)[source]

Moves all external CAD and RVT links on disk and relinks them.

Parameters
  • source (string) – The source directory

  • target (string) – The target directory

refs = {}
replaceInPath(search, replace)[source]

Search and replace in all link paths of the document.

Parameters
  • search (string) – The search string

  • replace (string) – The replacement string

write()[source]

Writes the TransmissionData back to the model.