Get Subcase list and it's details in hyperworks desktop
Answers
-
https://community.altair.com/community?id=community_question&sys_id=10664cf61b2bd0908017dc61ec4bcbef
Once you get the IDs, you can use
poIResultCtrl_handle GetSubcaseLabel id
to get the labels.
regards,
Livil
0 -
Thank you livil,
I have a small query ..how to load input file and any results file in hyperview.and using overlay option in hyperview while loading any file.can u please assist me in this please.thank you in advance
0 -
Hi Raj,
You can add model using:
poIPost_handle AddModel filename (reader_name)
and set results using:
model_handle SetResult file_name (reader_name)
AddModel by default will overlay the model,.
0 -
thank you.. really helpful
how to set component Colors in hyperview any command to do that..is it possible to add any text to ppt.can u help me
Thank you..
0 -
For setting colors, get model handle and then use SetColor
<?xml version="1.0" encoding="UTF-8"?>
For PPT, use Automatic Report Director (ARD) it comes with Hyperworks 2019, for earlier versions you will have to install it though PSO installer,
https://connect.altair.com/CP/downloads.html?suite=Packaged Solution Offerings
0 -
hi thank you lyle ,
I am trying to plot graph with above .and I am getting error at selectYComponent step.
Before that I requested y type and y request and y componentlist also.along with that I used build selectYComponent.though I could not able to get selected YComponent.could u please assist me .. below is the process I followed
hwi GetSessionHandle sess;
sess GetClientManagerHandle mgr plot;mgr GetBuildPlotsCtrlHandle build;
#step2:getting y type successfully
#step3: getting y request successfully
build SelectYComponent {“ MAG”};-this is not coming and getting error.
anything do we need to do to get Y component ?.
thank you in advance Lyle.
0 -
Hi Raj,
are you getting the build handle?
hwi GetSessionHandle sess;
sess GetClientManagerHandle pm Plot;pm GetBuildPlotsCtrlHandle bp;
0 -
Hi Lyle,
yes I am getting build handle .
And I can able to get X Type,Y type,Y request,but can not able to get Y component.
As per above pic..I can get all other then y component.
Any suggestion please assist me..
I will be helpful
Thank you
0 -
Hi Raj,
Can you try after adding 's' to the end of SelectYComponent.
buildh SelectYComponents {MAG | Z-Trans}
Share the code and error if you still face issue.
0 -
Hi Lyle,
your suggestion is very useful..thank you for that.
Below is the code for generating curve plot with the below set options.with this I could not able to generate plot..could you please help me in this.where am I getting wrong.can you please check below code ..
hwi OpenStack
hwi GetSessionHandle mySession
mySession GetClientManagerHandle mgr plot
mgr GetBuildPlotsCtrlHandle bp
bp SelectDataFile 'file_name' true;
bp GetSubcaseList
bp SetSubcase 'subcasename:'
bp GetDatatypeList true;
bp GetComponentList true;
bp GetRequestList true;
bp SetXDatatype 'time'
bp SetYDatatype 'Displacement'
bp SetYRequests {'Node 10'}
bp SelectYComponents {' MAG'}
bp GeneratePlots;
mySession ReleaseHandle
mgr ReleaseHandle
bp ReleaseHandle
hwi CloseStack
Thank you in advance
0