@owsp/dxf-plugin
v0.17.11
Published
Nx plugin that converts vendor DXF profile drawings into OpenWinSpec base profile params JSON (frame, sash, mullion, glazing bead, seal) and sash application diagrams.
Downloads
105
Maintainers
Readme
dxf-plugin
Nx plugin with generators for DXF conversion and helper utilities.
Generators
- dxf-to-json - parse DXF and create OWSP base profile params object (
{ class, params }) - readme-by-file - create
readme.txtwith input file name
dxf-to-json validates generated params against OWSP JSON Schema for the selected profile class.
dxf-to-json also supports --block=sash_application_diagramm for parsing sash size limit diagrams from DXF layers.
Usage
Build plugin after changes:
npx nx run dxf-plugin:buildGenerate OWSP profile params from DXF:
npx nx g @owsp/dxf-plugin:dxf-to-json \
--inputFile=tools/dxf-plugin/examples/profile.dxf \
--outputDir=tmp/dxf \
--profileClass=glazing_bead \
--profileType=glazing_beadResult file will be written to outputDir/<input-file-name>.json.
Generate sash application diagramm array from DXF:
npx nx g @owsp/dxf-plugin:dxf-to-json \
--block=sash_application_diagramm \
--inputFile=tools/dxf-plugin/examples/sash-application.dxf \
--outputDir=tmp/dxfLayer format for this block:
{ProfileSystem}.{OpeningType}.{ProfileId}.{ReinforcementId}.{FestType?}
FestType is optional and currently supports only W when present.
