I am trying to use this sentence:
swApp.SetUserPreferenceToggle swDxfUseSolidworksLayers, True
But it still move items on a SolidWorks layer to the layer mapped. When I do it manualy only have to activate for keep items that already are on a SolidWorks layer.
It is very extrange because it worked perfectly on 2015 version...
I am able with this sentence of toggle to control the usage of the mapping file and the exportation of hidden layers, but only what I can´t change is the command swDxfUseSolidworksLayers. I don´t know if this command doesn´t works on 2016 only or never worked because in previous version I hadn´t had to use it.
Please, I need urgently help with this
Ok, I tried the sentence of swDxfUseSolidWorksLayers on 2015 edition and it works perfectly. This can be a bug of SolidWorks 2016 version, because I found on the API help that this command still exists.
Answer from API support:
" Yes, This issue is reproducible at our end. I have submitted following enhancement request for this issue in our SPR database:
SPR 940733: swApp.SetUserPreferenceToggle (swDxfUseSolidworksLayers, True) fails to set "Keep existing SOLIDWORKS drawing layer for entities".
Hopefully it will be solved on next service pack.