Hi Max,

STEP colors/labels import is not functional yet: there's some initial code 
(that you highlighted) but some effort should be put into it - it would be a 
great contribution if somebody had the time/skills to contribute on this 
feature. A good starting point is probably the FreeCAD implementation: 

https://github.com/FreeCAD/FreeCAD/blob/master/src/Mod/Import/App/ImportOCAF.cpp
https://github.com/FreeCAD/FreeCAD/blob/master/src/Mod/Import/App/ImportOCAFAssembly.cpp

Cheers,

Christophe

> On 1 Sep 2018, at 19:41, Max Orok <[email protected]> wrote:
> 
> Hi everyone, 
> 
> Is there some way to import physical name-like data in bulk from step files? 
> The data is not ordered in any way so we can't assign groups programmatically 
> in a geo file.
> 
> There seems to be a way to import colour data in the OCC input file handler 
> here:
> 
> <image.png>
> 
> The OCC methods include "ReadMaterials", see 
> 
> https://www.opencascade.com/doc/occt-6.9.1/refman/html/class_s_t_e_p_c_a_f_control___reader.html
> 
> but could Colors also be used as a workaround somehow?
> 
> Thanks for your time,
> 
> -- 
> Max Orok
> Contractor
> Mevex Corp.
> www.mevex.com
> 
> 
> _______________________________________________
> gmsh mailing list
> [email protected]
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine

Free software: http://gmsh.info | http://getdp.info | http://onelab.info


_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to