← Back to team overview

kicad-developers team mailing list archive

Replace WRL with IGES if STEP not found

 

Following on from the STEP / WRL substitution patch earlier today:

Nick suggested that IGES should be searched for if there are no STEP models
found.

This simple patch does that. If no step models are found, it then searches
for iges.
From 1cfea2e38950daa4e105a25b31332053029dee11 Mon Sep 17 00:00:00 2001
From: Oliver <oliver.henry.walters@xxxxxxxxx>
Date: Tue, 7 Nov 2017 19:20:22 +1100
Subject: [PATCH] Added IGES replacement option

- If no STEP substitute is found, look for IGES
---
 utils/kicad2step/pcb/oce_utils.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/utils/kicad2step/pcb/oce_utils.cpp b/utils/kicad2step/pcb/oce_utils.cpp
index 86d02d4..dcf9825 100644
--- a/utils/kicad2step/pcb/oce_utils.cpp
+++ b/utils/kicad2step/pcb/oce_utils.cpp
@@ -923,6 +923,12 @@ bool PCBMODEL::getModelLabel( const std::string aFileName, TDF_Label& aLabel )
                 alts.Add( "Stp" );
                 alts.Add( "Step" );
 
+                // IGES files
+                alts.Add( "iges" );
+                alts.Add( "IGES" );
+                alts.Add( "igs" );
+                alts.Add( "IGS" );
+
                 //TODO - Other alternative formats?
 
                 for( auto alt : alts )
-- 
2.7.4


Follow ups