-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integer vs Double values stored in SS OLEProps #188
Comments
I see what you mean. I just did a test in SE. I created two new custom properties of type I'll fix that today. I appreciate you keeping an eye on things, by the way. |
That should be working now. If you get a chance to try it, please let me know how it goes. What's not working is |
Converting a string to an integer could be tricky; did you try using a different syntax? Or even better declare an intermediate variable as |
One more hint, in the code you use |
Tried it both ways with no luck. I tried the following with a breakpoint on the second line.
|
I see SE 2024 Update 11 fixed an API bug: PR 10852832: Application Crash Due to Solid Edge Status Setting I'm going to try to update next week and see if it fixes my issue with Int and Double. |
Numeric properties in SS are managed in a "Weird" way, I assume this is to save some bites in the file streams.
If the number to store is an integer the property type is VT_I4; instead, if the number to store is double the property type is VT_R8
In this line, the number is always converted to an integer and that will lead to a decimal loss in case the value to store is double
SolidEdgeHousekeeper/My Project/HCStructuredStorageDoc.vb
Line 1034 in 92a35dd
There is no method to change the property type therefore the only way is to delete the property and recreate it retaining its id
My original code is here where this technique is used
SolidEdgeHousekeeper/My Project/UtilsCommon.vb
Line 1714 in 92a35dd
The text was updated successfully, but these errors were encountered: