Jump to content

DOPs Script Solver


bareja

Recommended Posts

Hi, I have a question about script solver, because it gives me strange results

When I load an example SumImpact from help and replace script by:

example from help

set lastobject=`dopsolvenumobjects() - 1`
for i = 0 to $lastobject
    echo `dopsolveobject($i)`
end

it always gives me -1 on output, but why ?

I found in help about dopsolveobject:

Calling this function will return -1 if it is called when a script solver is not currently solving for objects.

so how to force ScriptSolver to solve ?

please help,

Edited by bareja
Link to comment
Share on other sites

I checked every expression dopsolve* and:

dopsolvedopnet returns "",
dopsolvenumnewobjects returns 0,
dosolvenumobjects returns 0,
dopsolvetimestep returns 0,

it's really weird,

any suggestions... ?

Edit:

When I load SumImpacts example I have error on scriptsolver1:

Coudn't find data SumImpacts,

When i create EmpytData with name SumIpacts it also doesn't work...

please help

Edited by bareja
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...