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

illogical tubular "straint results"

  • Thread starter Thread starter Matteo Cappelli dis.CAD
  • Start date Start date

Matteo Cappelli dis.CAD

Guest
Hi.
I realized a small ilogic on one side, I don't understand why, but the update of data happens only for some paramentaries... I don't understand! I kindly ask for help

open the 3d file, activate the ilogic menu, click on module1 and select the various thicknesses
by clicking on updates, you activate the "up_tubolare" rule and the fittings are updated
but with my amazement, only the thicknesses 2-4-5-8-10(green) are interpreted by the ilogic and therefore update the fittings

Can you help me?

Thank you.

tubolare iLogic2.webp
 

Attachments

No, I don't know why that works.. .
the select case was the first attempt but nothing changed, then I tried with this doubleforequals and went. I guess internal rounding... I'll watch.

Bye!

Code:
'Report thickness radii

' thickness r.est r.int

' 1.5 3 1.5
2 3 1
3 5 2
4 6 2
5 8 3
6 8 2
8 12 4
10 15 5

dim myspessore as doubleforequals
myspessore = parameter.valueforequals("ti")


'messagebox.show(parameter("ti"), "value thickness")

select myspessore houses
houses 1.5
parameter("re") = 3 mm
parameter(s) = 1.5 mm
houses 2
parameter("re") = 3 mm
parameter(s) = 1 mm
houses 3
parameter("re") = 5 mm
parameter(s) = 2 mm
houses 4
parameter("re") = 6 mm
parameter(s) = 2 mm
5 houses
parameter("re") = 8 mm
parameter(s) = 3 mm
houses 6
parameter("re") = 8 mm
parameter(s) = 2 mm
houses 8
parameter("re") = 12 mm
parameter(s) = 4 mm
houses 10
parameter("re") = 15 mm
parameter(s) = 5 mm
homes else
end select
'messagebox.show(parameter("re"), "re value")
'messagebox.show(parameter("ri"), "valore ri")


material_choice = parameter("mccad_material")
iproperties.material = material_chosen

iproperties.value("custom", "material") = "=<material>"material_choice
thisapplication.activeview.update()
inventorvb.documentupdate()</material>
 
Thank you.
I used "select houses" but I used them to read directly parameter("ti") without "apposing it to the variable, taken from despair I tried the way "if"

you are a myth, thanks for the link autodesk
 

Forum statistics

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

Members online

No members online now.
Back
Top