revitron.transmissiondata¶
This submodule contains the TransmissionData
class
which allows for editing the paths of linked files without opening a model.
Classes:
|
A transmission data wrapper. |
- class TransmissionData(hostPath)[source]¶
Bases:
object
A transmission data wrapper.
Methods:
__init__
(hostPath)Inits a new TransmissionData instance.
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.
- __init__(hostPath)[source]¶
Inits a new TransmissionData instance.
- Parameters
hostPath (string) – The path of the host model
- 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