SMath Studio Forum
»
SMath Studio
»
Questions
»
В экземпляре объекта не задана ссылка на объект
Rank: Advanced Member Groups: Registered
Joined: 10/06/2013(UTC) Posts: 50 Was thanked: 6 time(s) in 6 post(s)
|
Добрый день! Поднял свой старый расчет фундаментов и занялся некоторой оптимизацией. Столкнулся с одной ошибкой "В экземпляре объекта не задана ссылка на объект" (см. скриншот): moderator: external resource attached; please use the attach button if possibleНо код работает, хоть и ошибку высвечивает. Ошибка в последней области "Определение вертикальных напряжений от внешней нагрузки и собственного веса грунта" файла "Ссылка на объект". Смысл части кода, где ошибка, в том, чтобы осадка вычислялась только для слоев, слагающих вычисляемую сжимаемую толщу. Возможно это следует записать по другому. Сам файл Ssylka na obekt.sm (323kb) downloaded 22 time(s).Спасибо! Сделал по другому: Edited by moderator 23 July 2018 13:01:08(UTC)
| Reason: Not specified
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
|
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/06/2013(UTC) Posts: 50 Was thanked: 6 time(s) in 6 post(s)
|
Это просто не весь расчет (довольно объемный). Вычленил из него только одну часть, естественно не всё учёл.
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
|
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/06/2013(UTC) Posts: 50 Was thanked: 6 time(s) in 6 post(s)
|
У меня в файле все нормально: Может дело в версии программы (у меня довольно старая):
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
|
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/06/2013(UTC) Posts: 50 Was thanked: 6 time(s) in 6 post(s)
|
Не знаю почему у Вас возникает ошибка ... возможно действительно дело в версии. Сделал так (выделено другим цветом и рамкой): Ssylka na obekt2.sm (335kb) downloaded 14 time(s).Ошибки сейчас нет.
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
I do not know Anyone check on this please Regards, Radovan |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
here's a quick fix, to put right above the first error in the worksheet: "cannot calculate" error message is triggered in the first line of the loop, by el(ξ,1):0. The issue is due to recent changes in the policy of overwriting existing variables when assigning values by indices; since ξ already exists as scalar, you cannot assign values by matrix indices without redfining it as matrix or clearing it before. Edited by user 23 July 2018 12:41:29(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Thank you Davide I forgot to check it. EDIT: But I still think there is an error in calculation - see my previous post. The if() clause was wrong. Only the last equation (from the three available) will be calculated because there is Форма_фундамента vector with three text elements. Therefore, logical expression Форма_фундамента = 1 has no sense. Moreover, variable r is even not defined. Edited by user 23 July 2018 13:08:45(UTC)
| Reason: Not specified |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
1 user thanked omorr for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
Originally Posted by: omorr EDIT: But I still think there is an error in calculation - see my previous post. The if() clause was wrong. Only the last equation (from the three available) will be calculated because there is Форма_фундамента vector with three text elements. Therefore, logical expression Форма_фундамента = 1 has no sense. Moreover, variable r is even not defined. I've seen it. Obviously yes, only the inner else condition will be calculated as it is the fallback for the always false statements before it; I assume there is an error somwhere, I'm waiting for further inputs by genf. |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/06/2013(UTC) Posts: 50 Was thanked: 6 time(s) in 6 post(s)
|
Originally Posted by: Davide Carpi Originally Posted by: omorr EDIT: But I still think there is an error in calculation - see my previous post. The if() clause was wrong. Only the last equation (from the three available) will be calculated because there is Форма_фундамента vector with three text elements. Therefore, logical expression Форма_фундамента = 1 has no sense. Moreover, variable r is even not defined. I've seen it. Obviously yes, only the inner else condition will be calculated as it is the fallback for the always false statements before it; I assume there is an error somwhere, I'm waiting for further inputs by genf. "Это просто не весь расчет (довольно объемный). Вычленил из него только одну часть, естественно не всё учёл." в том числе и "r". "Форма фундамента" не вполне актуальна в данном расчете, так как не учитывается практически (задел на будущее).
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
|
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Regards, Radovan |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/06/2013(UTC) Posts: 50 Was thanked: 6 time(s) in 6 post(s)
|
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
В экземпляре объекта не задана ссылка на объект
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.