Message 1 of 9

Not applicable
03-28-2017
04:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi all
I have 2 codes that show 2 values from a plane that intersects with an edge 1 plane is parallel to the orgine one other plane is under angel that changes.
now when i run my code the values of the intersection of the parallel plane to the origin is correct but the values of the plane thats under an angel are wrong it's like inventor doesn't update correct or something like that.
it shows for the plane under an angle 12.46 but it should be 12.31. seee my screen cast
here are my 2 codes
Code1:
SyntaxEditor Code Snippet
InventorVb.DocumentUpdate(True) If Start = False Then Exit Sub MessageBox.Show( X_Afstand_1_Cil, "Co�rdinaat X1") MessageBox.Show( X_Afstand_2_Cil, "Co�rdinaat X2") I1=Abs(X_Afstand_1_Cil)/((Binnen_diameter_cil/2)+Laagdikte_Cil) J1=(Asin(I1)*180)/3.1415 M1=Abs(X_Afstand_2_Cil)/((Binnen_diameter_cil/2)+Laagdikte_Cil) N1=(Asin(M1)*180)/3.1415 Q1=J1+N1 MessageBox.Show(Q1, "hoekt tussen X1 en X2") Parameter("Start") = False
Code 2
SyntaxEditor Code Snippet
InventorVb.DocumentUpdate(True) If Start_Y = False Then Exit Sub MessageBox.Show(Y_Afstand_1_Cil, "Co�rdinaat Y1") MessageBox.Show(Y_Afstand_2_Cil, "Co�rdinaat Y2") Hoek_Alpha_cil=(afstand_tussen_de_trekken*360)/(Binnen_diameter_cil*3.1415) MessageBox.Show(Abs(Hoek_Alpha_cil), "hoek booglengte") Parameter("Start_Y") = False Parameter("start_rules")=False
code 3 this code triggers the other 2
SyntaxEditor Code Snippet
If start_rules= True Then Start_Y= True Start= True End If
Solved! Go to Solution.