Rustam-23 / ifc-commenter

Generates comments in IFC files to aid code reviews

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IFC Commenter

Generates comments containing the content of references making IFC files easier to manually review.

Example

#71= IFCDERIVEDUNIT((#68,#69,#70),.THERMALTRANSMITTANCEUNIT.,$);
#73= IFCDERIVEDUNITELEMENT(#43,3);

Becomes:

#71= IFCDERIVEDUNIT((#68,#69,#70),.THERMALTRANSMITTANCEUNIT.,$);
  /*#68= IFCDERIVEDUNITELEMENT(#59,1);*/
    /*#59= IFCSIUNIT(*,.MASSUNIT.,.KILO.,.GRAM.);*/
  /*#69= IFCDERIVEDUNITELEMENT(#66,-1);*/
    /*#66= IFCSIUNIT(*,.THERMODYNAMICTEMPERATUREUNIT.,$,.KELVIN.);*/
  /*#70= IFCDERIVEDUNITELEMENT(#64,-3);*/
    /*#64= IFCSIUNIT(*,.TIMEUNIT.,$,.SECOND.);*/
#73= IFCDERIVEDUNITELEMENT(#43,3);
  /*#43= IFCSIUNIT(*,.LENGTHUNIT.,$,.METRE.);*/

Installation

Requires node installed.

npm install --global ifc-commenter

ifc-commenter example.ifc

About

Generates comments in IFC files to aid code reviews

License:MIT License


Languages

Language:TypeScript 84.7%Language:JavaScript 15.3%