LiveLinkRevit
Synchronize geometry objects with an Revit project.
Syntax
model.component(<ctag>).geom(<tag>).feature().
    create(<ftag>,"LiveLinkRevit");
model.component(<ctag>).geom(<tag>).feature(<ftag>).
    set(property,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).
    getType(property);
model.component(<ctag>).geom(<tag>).feature(<ftag>).
    updateCadParamTable(add,repl);
model.component(<ctag>).geom(<tag>).feature(<ftag>).
    importData();
model.component(<ctag>).geom(<tag>).feature(<ftag>).
    setAttribute(attribute,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).
    getAttribute(attribute);
Description
model.component(<ctag>).geom(<tag>).feature().
create(<ftag>,"LiveLinkRevit")
creates a LiveLinkRevit feature.
The method
model.component(<ctag>).geom(<tag>).feature(<ftag>).importData();
sends the parameters with names in param and the values in paramexpr to Revit, then rebuilds the geometry in Revit using the parameters, and sends back the geometry objects to COMSOL.
The imported geometry objects are represented using the Parasolid geometry kernel, which is the geometry kernel utilized by the CAD Import Module and the LiveLink products for CAD software.
The method
model.component(<ctag>).geom(<tag>).feature(<ftag>).
      updateCadParamTable(add,repl);
updates the properties param and paramexpr with data read from Revit. If the add argument is true, all parameter names retrieved from Revit that do not already exist in param are appended to param, corresponding COMSOL Multiphysics parameter names are appended to paramexpr and the corresponding values are added to the COMSOL Multiphysics global parameters table. If the repl argument is true, all parameters already present in param that also have sync set to on have their corresponding values replaced by the values retrieved from Revit. If paramexpr has a value equal to a COMSOL Multiphysics parameter, the value of that parameter is replaced. Otherwise, if paramexpr is a numerical value, possibly with unit, the value of paramexpr is replaced.
The following properties are available.
on | off
on | off
auto | on | off
Attempt to repair errors. Use auto to repair only if errors are detected.
on | off
on | off
on | off
on | off
active | specified
source | current
The following properties are available for offline synchronization.
on | off
The method
model.component(<ctag>).geom(<tag>).feature(<ftag>).
      receiveData(filename);
loads the synchronization file filename.
The method
model.component(<ctag>).geom(<tag>).feature(<ftag>).
      receiveDataNext();
loads the next synchronization from the previously received synchronization file that contains multiple synchronizations.
The method
model.component(<ctag>).geom(<tag>).feature(<ftag>).
      requestData(filename);
saves the request file filename for offline synchronization.
The method
model.component(<ctag>).geom(<tag>).feature(<ftag>).
      requestDataAppend();
appends a request for synchronization to the previously saved request file.
The following attributes are available:
Table 4-33: Valid attributes
on | off
Compatibility
The following property is no longer supported:
on | off