Community
PowerShape and PowerMill API Forum
Welcome to Autodesk’s PowerShape and PowerMill API Forums. Share your knowledge, ask questions, and explore popular API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get lists of problems from Simulation issues by API

10 REPLIES 10
SOLVED
Reply
Message 1 of 11
jan_navratilJZD5N
622 Views, 10 Replies

Get lists of problems from Simulation issues by API

Hello,

 

are we able to get list of problems from the "Simulation issues" window by API?

Ive tried to find a way but I think there si no connector for that.

 

jan_navratilJZD5N_0-1707921345625.png

Can someone advise please?

Thanks you !

Jan

 

10 REPLIES 10
Message 2 of 11

What about :

var result = ExecuteEx(@"PRINT PAR terse 'simulationstate.issues.collisions.checkcollisions'").ToString();

Message 3 of 11

Hello !

thank you for the reply!
With that Im getting reulst just "1" not sure whats wrong.

 

 

jan_navratilJZD5N_0-1707933664462.png

 

Message 4 of 11

PRINT PAR terse 'simulationstate.issues'

Rafael Sansão

EESignature

Message 5 of 11

Hello, 

 

thank you ! but this cannot be represented by string 

 

jan_navratilJZD5N_0-1707936413856.png

 

Message 6 of 11

Sorry (Remembering that you will need to create a method to read the data and obtain the information you need😞

PRINT PAR 'simulationstate.issues'

Rafael Sansão

EESignature

Message 7 of 11

Thank you !

Not sure what do you mean by creating method from that parameter?

 

Can you please advise?

Message 8 of 11

Sorry, I misunderstood your question. (It was already late at night here...)

The macro command to get a list of verification errors is :

 

print par $entity('ncprogram','').Issues

 

This will create a Map (list) that allows you to search for the info you need.

 

Message 9 of 11

@jan_navratilJZD5N 

It maybe you can use this macro  and add code to write the result into a txt file, then use API to read it.

I don't know if it's the best way but I think it can help you now.

OBJECT LIST $SimIssues = simulation_issues()
string issue = ""
foreach t in $SimIssues {
$issue = $issue + crlf +  $t.message
}
PRINT PAR terse $issue

 

Message 10 of 11

Hello,

 

thank you.

Im already using this, but this is not what I need, I need the Simulation issues which are shown in the window on the picture.

 

Jan

Message 11 of 11

thank you ! this is actualy not a bad idea ! because i did not find any other way. 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators