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

finished dimensions

  • Thread starter Thread starter Beth
  • Start date Start date
Hello, everyone.

below the report that allows you to put up to 9 decimals in the "size" parameter
of a defined part with quotas d1/d2/d3

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

dec=3

dx=d1



a=itos(dx*10^dec)
x=string_length(a)
string1=extract(a,1,x-dec)+"+extract(a,x+1-dec,dec)

b=itos(dy*10^dec)
y=string_length(b)
string2=extract(b,1,y-dec)+"+extract(b,y+1-dec,dec)

c=itos(dz*10^dec)
z=string_length(c)
string3=extract(c,1,z-dec)+"+extract(c,z+1-dec,dec)

size=string1+"x"+string2+"x"+string3



----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I hope you can help
 

Forum statistics

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

Members online

No members online now.
Back
Top