I thinks that the difference between macro and add-in is that add-in in excuted in the same Thread as Solidworks. It appears that the thread of Solidworks is having different Culture settings than Windows. Can anyone confirm that this is the case?
Another question would be how to change the culture settings of the Solidworks thread.
Or maybe it is better to modify my code to check for the actual culture settings and work with the detected setting.
Any thoughts are welcome...
you can set the current culture using the above link
just a shot in the dark..
perhaps making it so it does not need to be a coma is a better possibility. i however do not have the code so it is just and assumption on my end.
one question. why are you concerned with decimal separators?
Jacob, thanks for your input.
I thought that I needed it to get the results a wanted with the Double.TryParse method. However after reading the documentation of TryParse method I found out that adding 'NumberStyles.Float' as parameter, solved my problem and the results of the TryParse method became independent of the decimal separator setting.
For reference: I needed the Double.TryParse method to make a double of a cut-list property.