Skip to content

Exports name the model by its saved path, which can carry the author's account and folder names #782

Closed

Description

@DrunkOnJava

An export of a Revit file without a PartAtom title, which covers most projects, is named after the full path the file was last saved at, as recorded in its BasicFileInfo. The path can hold the author's Windows account and folder names, which may name clients or projects. It lands in:

  • the IFC header's FILE_NAME, as <path>.ifc;
  • the IfcProject's Name, the first thing an IFC viewer shows;
  • the glTF scene root and the viewer's project node (both from the same name);
  • the export diagnostics' input.project_name. The same diagnostics already pass input.original_path through redact::redact_sensitive, so the two fields disagree.

Measured on v0.5.0: RE1 Architecture's export (the MIT-licensed RE1 model) starts its header with FILE_NAME('C:\\Users\\<account>\\Documents\\…\\RE1.rvt.ifc', and Snowdon Towers' diagnostics carry C:\RemoveSchema\Samples\….

An export's name should not carry the folders. The file name without its extension (RE1) names the model as well. rvt-info's metadata keeps reporting the original path (redacted with --redact), since that is inspection of the file rather than something a user hands on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ifcpriority:P1type:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions