Jump to content

Setting (subdata) options in SIM_SingleSolver

Recommended Posts


Can anybody tell me how to create and set Data/options in a solver derived from SIM_SingleSolver? Have tried pretty much everything I could think of at this point...

I can create Data by doing:

SIM_Data* myData = SIM_DATA_CREATE(object, "MyData", SIM_EmptyData, 0);[/CODE]

but after that, I cannot find a way to get to the options (creating, setting or reading it).

I am looking for the HDK equivalent of this functionality in a scriptSolver DOP (Python):

[CODE]optionValue = 1
subData = myDopObject.createSubData('MyData', 'SIM_EmptyData')
subData.options().setField('myOption', optionValue)[/CODE]

Your help is much appreciated!!!

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.

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...