• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

eliminate rounding thousands solidworks

  • Thread starter Thread starter Mithas
  • Start date Start date

Mithas

Guest
Hello everyone,
would anyone know how to eliminate the rounding of thousands from solidworks?
In the sense, the value 1.11103e+07 should instead be 11112545 and I would like it to be written so for a matter of recognition of strings.

Can you give me some advice?

Thank you all.
 
equations work with document units.
that of the equations is a number that does not have own units, unlike the quotas.
in practice if you insert a quota of value 10 with units in millimeters, changing the units in meters you will have a quota of 0.01.
with equations instead the values are always equal and the units of the dociument change the model; therefore in this method the quota 10 mm change the units will become 10 meters.
However, in no way I managed to make the values in the notation. the only way I know to have the values in this format and using the command measures and changing the options
 
My problem arises from the fact that I created an equation that builds a talking code on the basis of data: first group of three digits = material, second group of three digits = macro area, third group of three digits = micro area, fourth group of four digits = size.

the system would work if it wasn't that.. the result of the equation writes it in scientific format.

I don't know how to do this. and I really need to have the result of the "long" equation. The fact is, I need parts of the equation to be cancelled by 1/0. Maybe there's another way?
 
a file would be ideal, knowing also the version, however at least an image to try to recreate the situation.
as I wrote I can't have that format and so I can't do evidence to figure out what setting it is.
Where are those values drawn from? How are they grouped?
 
in practice the system works like this:

-global variables which refer to a higher axieme for control of the component
-functions: according to some global variables functions generate or not machining in the component
-global variable/recognition function: a string that according to the axieme of global variables and functions generates the number we are talking about.

the number is created in equation managers in this way:

(b*1)+(c*10)+(d*100)+(e*1000)+(f*10000)+(g*10000)+(h*100000)+(i*1000000)+(l*10000000)

where at is a value that can take only 0o1 value.
the rest of the variables are float values that can take values from 0.001 to 9999.
Let it be that the zeres of multiplication are not real. some values need only 3 spazzi, others instead of 4.
at the end comes out a type number 111125276148 more or less...
 
I managed to get a value expressed in the notation scentifica (no was not even so difficult to tell the truth, it was enough to recall in the variable the volume property of a solid quite large).
Unfortunately, I can't figure out how to set that damn value.
However looking on the net I saw that to round the decimal is used the round function (function not listed in the online guide); This function is also used in excel and visual basic. if you know in one of these two worlds the function for converting from scientific to normal value you may have found the solution by writing a new variable that recalls the other and put under the function
 
I tried in excel. the thing is resolved by setting the cell content as number and removing decimal numbers after comma. I can't use macros or programs to do this because the theory is that I shouldn't even look at the component and not open it. this construction should be automatic. I tried to use the sw round(), but it gives me an inconsistent number, even negative. .

I found this in case it can be useful:
http://help.solidworks.com/2012/ita...t.htm?id=afd657cd4a6845898184882b7e76ffb5#pg0I'm trying to find some other solution. . .
 
I didn't explain well.
you do not have to use the round function, which aims to round the decimals without having to intervene on the options of the document.
what I wrote is that as round is a function that is also used in excel and visual basic, there might be a function that used in these two systems can also be used in variables.
in excel there is the setting of the cell that turns a number into scientific notation (as it turns it into percentage, text, date...). But there is also the function converts which transforms a value into a unit system into another.
what is to do is understand whether it is applicable in solid
 
little elegant solution.
but it works.. .

to build the number at a share in a sketch. . .
It doesn't round.
 
as not said.. Nothing to do.. round in any case and creates problems with the length of the sketch just exceeds the 6 digits. I don't think it's possible to circumvent the obstacle. . .
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top