Hello Roelof.Feijen,
thank you for your fast response.
Your settings look exactly as mine do. This is also what I checked first.
The thing is the error occurs when I am running the main rule, which does not happen in part environment.
When I run my written rule this error occurs:
german:
Fehler in Regel: Lastbeaufschlagung in Dokument: W_1234_TESTING.iam
Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
english:
Error in rule: Lastbeaufschlagung in Dokument: W_1234_TESTING.iam
An attempt was made to read or write to the protected memory. This is often an indication that other memory is damaged.
This is my rule I want to execute:
AddReference "NINIlogic"
'Zugriff auf externe Regel
Sub Main()
iLogicVb.RunExternalRule("IlogicExtRule_EnterInCADEnv")
Dim AddinObj As New NINIlogic.InCadAddin
Dim strCmdForLoad, strCmdSubcase As String
'Subcase 1
strCmdSubcase1 = "<NewSubcase Name=""Subcase 1 "" ID="" 1 "" AnalysisID=""1"" IncludedLoads=""101;102;103;104;105;106;107;108;109;110;111;112;113;114;115;116;117;118;119;120;121;122;123;124;125;126;127;128;129;130;131;132;133;134;135;136;137;138;139;140"" IncludedConstraints=""1"" ComponentName="" Stab ""/></Subcase>"
'Kräfte und Momente
strCmdForLoad101 = "<Load Name=""Last 101 "" ID="" 101 "" Type=""0"" SubType=""0"" EntitiesCount=""1"" Subcases=""1"" ArrowLength=""50"" ArrowColor=""65280"" DisplayDensity=""5"" Direction=""0"" CoordinateSystemID="" 9 "" Display=""1"" Fx="" 197,13 "" Fy="" -1360,13 "" Fz="" 0,00 "" HasVariableLoad=""0"" HasHeatGenTable=""0"" HadConvCoeffTable=""0"" HasRadTable=""0"" HasTransTable=""0"" HasVelTransTable=""0"" HasAccTransTable=""0"" HasVelFreqTable=""0"" HasAccFreqTable=""0"" HasFreqTable=""0"" HasFreqPhaseTable=""0"" HasAccFreqPhaseTable=""0""><Entity1 GeometryType=""0"" GeometryID="" 1 "" ComponentName="" Stab ""/></Load>"
strCmdForLoad102 = "<Load Name=""Last 102 "" ID="" 102 "" Type=""0"" SubType=""0"" EntitiesCount=""1"" Subcases=""1"" ArrowLength=""50"" ArrowColor=""65280"" DisplayDensity=""5"" Direction=""0"" CoordinateSystemID="" 10 "" Display=""1"" Fx="" 197,13 "" Fy="" -1360,13 "" Fz="" 0,00 "" HasVariableLoad=""0"" HasHeatGenTable=""0"" HadConvCoeffTable=""0"" HasRadTable=""0"" HasTransTable=""0"" HasVelTransTable=""0"" HasAccTransTable=""0"" HasVelFreqTable=""0"" HasAccFreqTable=""0"" HasFreqTable=""0"" HasFreqPhaseTable=""0"" HasAccFreqPhaseTable=""0""><Entity2 GeometryType=""0"" GeometryID="" 2 "" ComponentName="" Stab ""/></Load>"
strCmdForLoad103 = "<Load Name=""Last 103 "" ID="" 103 "" Type=""0"" SubType=""0"" EntitiesCount=""1"" Subcases=""1"" ArrowLength=""50"" ArrowColor=""65280"" DisplayDensity=""5"" Direction=""0"" CoordinateSystemID="" 11 "" Display=""1"" Fx="" -438,45 "" Fy="" 1360,13 "" Fz="" 5636,13 "" HasVariableLoad=""0"" HasHeatGenTable=""0"" HadConvCoeffTable=""0"" HasRadTable=""0"" HasTransTable=""0"" HasVelTransTable=""0"" HasAccTransTable=""0"" HasVelFreqTable=""0"" HasAccFreqTable=""0"" HasFreqTable=""0"" HasFreqPhaseTable=""0"" HasAccFreqPhaseTable=""0""><Entity3 GeometryType=""0"" GeometryID="" 3 "" ComponentName="" Stab ""/></Load>"
strCmdForLoad104 = "<Load Name=""Last 104 "" ID="" 104 "" Type=""0"" SubType=""0"" EntitiesCount=""1"" Subcases=""1"" ArrowLength=""50"" ArrowColor=""65280"" DisplayDensity=""5"" Direction=""0"" CoordinateSystemID="" 12 "" Display=""1"" Fx="" -438,45 "" Fy="" 1360,13 "" Fz="" -5636,57 "" HasVariableLoad=""0"" HasHeatGenTable=""0"" HadConvCoeffTable=""0"" HasRadTable=""0"" HasTransTable=""0"" HasVelTransTable=""0"" HasAccTransTable=""0"" HasVelFreqTable=""0"" HasAccFreqTable=""0"" HasFreqTable=""0"" HasFreqPhaseTable=""0"" HasAccFreqPhaseTable=""0""><Entity4 GeometryType=""0"" GeometryID="" 4 "" ComponentName="" Stab ""/></Load>"
strCmdForLoad105 = "<Load Name=""Last 105 "" ID="" 105 "" Type=""0"" SubType=""0"" EntitiesCount=""1"" Subcases=""1"" ArrowLength=""50"" ArrowColor=""65280"" DisplayDensity=""5"" Direction=""0"" CoordinateSystemID="" 13 "" Display=""1"" Fx="" 0,00 "" Fy="" 0,00 "" Fz="" 7789,53 "" HasVariableLoad=""0"" HasHeatGenTable=""0"" HadConvCoeffTable=""0"" HasRadTable=""0"" HasTransTable=""0"" HasVelTransTable=""0"" HasAccTransTable=""0"" HasVelFreqTable=""0"" HasAccFreqTable=""0"" HasFreqTable=""0"" HasFreqPhaseTable=""0"" HasAccFreqPhaseTable=""0""><Entity5 GeometryType=""0"" GeometryID="" 5 "" ComponentName="" Stab ""/></Load>"
strCmdForLoad106 = "<Load Name=""Last 106 "" ID="" 106 "" Type=""0"" SubType=""0"" EntitiesCount=""1"" Subcases=""1"" ArrowLength=""50"" ArrowColor=""65280"" DisplayDensity=""5"" Direction=""0"" CoordinateSystemID="" 14 "" Display=""1"" Fx="" 0,00 "" Fy="" 0,00 "" Fz="" -7789,53 "" HasVariableLoad=""0"" HasHeatGenTable=""0"" HadConvCoeffTable=""0"" HasRadTable=""0"" HasTransTable=""0"" HasVelTransTable=""0"" HasAccTransTable=""0"" HasVelFreqTable=""0"" HasAccFreqTable=""0"" HasFreqTable=""0"" HasFreqPhaseTable=""0"" HasAccFreqPhaseTable=""0""><Entity6 GeometryType=""0"" GeometryID="" 6 "" ComponentName="" Stab ""/></Load>"
strCmdForLoad107 = "<Load Name=""Last 107 "" ID="" 107 "" Type=""0"" SubType=""0"" EntitiesCount=""1"" Subcases=""1"" ArrowLength=""50"" ArrowColor=""65280"" DisplayDensity=""5"" Direction=""0"" CoordinateSystemID="" 15 "" Display=""1"" Fx="" 0,00 "" Fy="" 241,32 "" Fz="" 2152,96 "" HasVariableLoad=""0"" HasHeatGenTable=""0"" HadConvCoeffTable=""0"" HasRadTable=""0"" HasTransTable=""0"" HasVelTransTable=""0"" HasAccTransTable=""0"" HasVelFreqTable=""0"" HasAccFreqTable=""0"" HasFreqTable=""0"" HasFreqPhaseTable=""0"" HasAccFreqPhaseTable=""0""><Entity7 GeometryType=""0"" GeometryID="" 7 "" ComponentName="" Stab ""/></Load>"
strCmdForLoad108 = "<Load Name=""Last 108 "" ID="" 108 "" Type=""0"" SubType=""0"" EntitiesCount=""1"" Subcases=""1"" ArrowLength=""50"" ArrowColor=""65280"" DisplayDensity=""5"" Direction=""0"" CoordinateSystemID="" 16 "" Display=""1"" Fx="" 0,00 "" Fy="" -241,32 "" Fz="" 2152,96 "" HasVariableLoad=""0"" HasHeatGenTable=""0"" HadConvCoeffTable=""0"" HasRadTable=""0"" HasTransTable=""0"" HasVelTransTable=""0"" HasAccTransTable=""0"" HasVelFreqTable=""0"" HasAccFreqTable=""0"" HasFreqTable=""0"" HasFreqPhaseTable=""0"" HasAccFreqPhaseTable=""0""><Entity8 GeometryType=""0"" GeometryID="" 8 "" ComponentName="" Stab ""/></Load>"
strCmdForLoad121 = "<Load Name=""Last 121 "" ID="" 121 "" Type=""1"" SubType=""0"" EntitiesCount=""1"" Subcases=""1"" ArrowLength=""50"" ArrowColor=""65280"" DisplayDensity=""4"" Direction=""0"" CoordinateSystemID="" 9 "" Display=""1"" Mx="" 759650,45 "" My="" -33344,79 "" Mz="" -19453,45 "" HasVariableLoad=""0"" HasHeatGenTable=""0"" HadConvCoeffTable=""0"" HasRadTable=""0"" HasTransTable=""0"" HasVelTransTable=""0"" HasAccTransTable=""0"" HasVelFreqTable=""0"" HasAccFreqTable=""0"" HasFreqTable=""0"" HasFreqPhaseTable=""0"" HasAccFreqPhaseTable=""0""><Entity1 GeometryType=""0"" GeometryID="" 1 "" ComponentName="" Stab ""/></Load>"
strCmdForLoad122 = "<Load Name=""Last 122 "" ID="" 122 "" Type=""1"" SubType=""0"" EntitiesCount=""1"" Subcases=""1"" ArrowLength=""50"" ArrowColor=""65280"" DisplayDensity=""4"" Direction=""0"" CoordinateSystemID="" 10 "" Display=""1"" Mx="" -759651,61 "" My="" 33344,83 "" Mz="" -19453,43 "" HasVariableLoad=""0"" HasHeatGenTable=""0"" HadConvCoeffTable=""0"" HasRadTable=""0"" HasTransTable=""0"" HasVelTransTable=""0"" HasAccTransTable=""0"" HasVelFreqTable=""0"" HasAccFreqTable=""0"" HasFreqTable=""0"" HasFreqPhaseTable=""0"" HasAccFreqPhaseTable=""0""><Entity2 GeometryType=""0"" GeometryID="" 2 "" ComponentName="" Stab ""/></Load>"
strCmdForLoad123 = "<Load Name=""Last 123 "" ID="" 123 "" Type=""1"" SubType=""0"" EntitiesCount=""1"" Subcases=""1"" ArrowLength=""50"" ArrowColor=""65280"" DisplayDensity=""4"" Direction=""0"" CoordinateSystemID="" 11 "" Display=""1"" Mx="" 0,00 "" My="" 732974,24 "" Mz="" -160105,59 "" HasVariableLoad=""0"" HasHeatGenTable=""0"" HadConvCoeffTable=""0"" HasRadTable=""0"" HasTransTable=""0"" HasVelTransTable=""0"" HasAccTransTable=""0"" HasVelFreqTable=""0"" HasAccFreqTable=""0"" HasFreqTable=""0"" HasFreqPhaseTable=""0"" HasAccFreqPhaseTable=""0""><Entity3 GeometryType=""0"" GeometryID="" 3 "" ComponentName="" Stab ""/></Load>"
strCmdForLoad124 = "<Load Name=""Last 124 "" ID="" 124 "" Type=""1"" SubType=""0"" EntitiesCount=""1"" Subcases=""1"" ArrowLength=""50"" ArrowColor=""65280"" DisplayDensity=""4"" Direction=""0"" CoordinateSystemID="" 12 "" Display=""1"" Mx="" 0,00 "" My="" -732974,24 "" Mz="" -160105,61 "" HasVariableLoad=""0"" HasHeatGenTable=""0"" HadConvCoeffTable=""0"" HasRadTable=""0"" HasTransTable=""0"" HasVelTransTable=""0"" HasAccTransTable=""0"" HasVelFreqTable=""0"" HasAccFreqTable=""0"" HasFreqTable=""0"" HasFreqPhaseTable=""0"" HasAccFreqPhaseTable=""0""><Entity4 GeometryType=""0"" GeometryID="" 4 "" ComponentName="" Stab ""/></Load>"
strCmdForLoad125 = "<Load Name=""Last 125 "" ID="" 125 "" Type=""1"" SubType=""0"" EntitiesCount=""1"" Subcases=""1"" ArrowLength=""50"" ArrowColor=""65280"" DisplayDensity=""4"" Direction=""0"" CoordinateSystemID="" 13 "" Display=""1"" Mx="" 0,00 "" My="" 0,00 "" Mz="" 0,00 "" HasVariableLoad=""0"" HasHeatGenTable=""0"" HadConvCoeffTable=""0"" HasRadTable=""0"" HasTransTable=""0"" HasVelTransTable=""0"" HasAccTransTable=""0"" HasVelFreqTable=""0"" HasAccFreqTable=""0"" HasFreqTable=""0"" HasFreqPhaseTable=""0"" HasAccFreqPhaseTable=""0""><Entity5 GeometryType=""0"" GeometryID="" 5 "" ComponentName="" Stab ""/></Load>"
strCmdForLoad126 = "<Load Name=""Last 126 "" ID="" 126 "" Type=""1"" SubType=""0"" EntitiesCount=""1"" Subcases=""1"" ArrowLength=""50"" ArrowColor=""65280"" DisplayDensity=""4"" Direction=""0"" CoordinateSystemID="" 14 "" Display=""1"" Mx="" 0,00 "" My="" 0,00 "" Mz="" 0,00 "" HasVariableLoad=""0"" HasHeatGenTable=""0"" HadConvCoeffTable=""0"" HasRadTable=""0"" HasTransTable=""0"" HasVelTransTable=""0"" HasAccTransTable=""0"" HasVelFreqTable=""0"" HasAccFreqTable=""0"" HasFreqTable=""0"" HasFreqPhaseTable=""0"" HasAccFreqPhaseTable=""0""><Entity6 GeometryType=""0"" GeometryID="" 6 "" ComponentName="" Stab ""/></Load>"
strCmdForLoad127 = "<Load Name=""Last 127 "" ID="" 127 "" Type=""1"" SubType=""0"" EntitiesCount=""1"" Subcases=""1"" ArrowLength=""50"" ArrowColor=""65280"" DisplayDensity=""4"" Direction=""0"" CoordinateSystemID="" 15 "" Display=""1"" Mx="" -2399,33 "" My="" 0,00 "" Mz="" -3655,38 "" HasVariableLoad=""0"" HasHeatGenTable=""0"" HadConvCoeffTable=""0"" HasRadTable=""0"" HasTransTable=""0"" HasVelTransTable=""0"" HasAccTransTable=""0"" HasVelFreqTable=""0"" HasAccFreqTable=""0"" HasFreqTable=""0"" HasFreqPhaseTable=""0"" HasAccFreqPhaseTable=""0""><Entity7 GeometryType=""0"" GeometryID="" 7 "" ComponentName="" Stab ""/></Load>"
strCmdForLoad128 = "<Load Name=""Last 128 "" ID="" 128 "" Type=""1"" SubType=""0"" EntitiesCount=""1"" Subcases=""1"" ArrowLength=""50"" ArrowColor=""65280"" DisplayDensity=""4"" Direction=""0"" CoordinateSystemID="" 16 "" Display=""1"" Mx="" 2399,32 "" My="" 0,00 "" Mz="" 3655,37 "" HasVariableLoad=""0"" HasHeatGenTable=""0"" HadConvCoeffTable=""0"" HasRadTable=""0"" HasTransTable=""0"" HasVelTransTable=""0"" HasAccTransTable=""0"" HasVelFreqTable=""0"" HasAccFreqTable=""0"" HasFreqTable=""0"" HasFreqPhaseTable=""0"" HasAccFreqPhaseTable=""0""><Entity8 GeometryType=""0"" GeometryID="" 8 "" ComponentName="" Stab ""/></Load>"
i = AddinObj.Run(strCmdNewSubcase1 )
i = AddinObj.Run(strCmdForLoad101 )
i = AddinObj.Run(strCmdForLoad102 )
i = AddinObj.Run(strCmdForLoad103 )
i = AddinObj.Run(strCmdForLoad104 )
i = AddinObj.Run(strCmdForLoad105 )
i = AddinObj.Run(strCmdForLoad106 )
i = AddinObj.Run(strCmdForLoad107 )
i = AddinObj.Run(strCmdForLoad108 )
i = AddinObj.Run(strCmdForLoad121 )
i = AddinObj.Run(strCmdForLoad122 )
i = AddinObj.Run(strCmdForLoad123 )
i = AddinObj.Run(strCmdForLoad124 )
i = AddinObj.Run(strCmdForLoad125 )
i = AddinObj.Run(strCmdForLoad126 )
i = AddinObj.Run(strCmdForLoad127 )
i = AddinObj.Run(strCmdForLoad128 )
iLogicVb.UpdateWhenDone = True
End Sub
I generated all these sub coordinate systems first.
Now I want to test to bring all these forces and moments into my subcase 1.
Kind regards,
Daniel