Cancel
Showing results for 
Search instead for 
Did you mean: 

09= How do you save the F8 properties in a file

Genius
Genius

Hi,

I'd like to save all the results of the [F8] properties of an object in a file, preferably CSV separated.  Screen shots are of limited use comparing differences, and no use for searching.

 

Is this possible? And will the export be according to the Novice/Expert green/gold filter setting on the top left menu?

09=Capture the f8 properties in a file.gif

And while I have a screen shot illustrating, what should
   NumAnimationEvents
do in the screenshot above, because if you look at my post here , you will see that too many animation events are generated on the conveyor.

 

____________________________________________
PlantSim Ver 14.1.0.1294   &  Windows 7 Ent. SP1

~~~~  1st post in thread  ~~~~



 

17 REPLIES 17

Betreff: 09= How do you save the F8 properties in a file

Phenom
Phenom

have a look at "putattributeNamesIntoTable"

 

to write the attributes into a table

 

and

 

then to add the attribute values ( through a loop)

 

 

Betreff: 09= How do you save the F8 properties in a file

Oh, that's cool!

You could also combine the "putattributeNamesIntoTable" with the AttributeExplorer and its query function to get the attributes and values of many objects and save them to an Excel or text file.

 

AE.PNG

Betreff: 09= How do you save the F8 properties in a file

Genius
Genius

Thanks a lot for that code Andreas, will check it out tomorrow - prima facie it looks good.

Betreff: 09= How do you save the F8 properties in a file

Genius
Genius

 

@Andreas_SimPlan- I am not having any joy here, if you have some time to advise I would appreciate it.

AttributeExplorer is not recognised as an installed component, or else this frame needs it to be opened prior to accessing it. The Help is so vague as how to open it I am left in the dark.

Below my code segment showing error messages, and notes inserted to try to resolve it, as well as what Help had to offer, which is not enough for a newbie like me to get my head around Smiley Sad

 

/*  You could also combine the "putattributeNamesIntoTable" with the "AttributeExplorer"
    and its query function to get the attributes and values of many objects 
    and save them to an Excel or text file                                           */
-->
// AttribExplorer.AttributTabelle := F8_save_table; //unknown identifier AttribExplorer
-->
AttributeExplorer.AttributeTable :=  F8_save_table; //unknown identifier AttributeExplorer
/* 2D Reference Help > Information Flow Objects > AttributeExplorer > AttributeExplorer
   To add the AttributeExplorer to your simulation model, click  
   [ Ribbon tab [ Home [ <img="3 books purple,yellow,green /> Manage Class Library 
   [  Basic Objects [ <section=4 /> InformationFlow [ AttributeExplorer \  

THE ABOVE HAD ALREADY BEEN SET

   2D Reference Help > Information Flow Objects > AttributeExplorer 
 > Dialog Window of the AttributeExplorer > Show Explorer 

To show the list window in which the AttributeExplorer displays the objects and the attributes you defined, click this. 

Instead, you can also right-click the AttributeExplorer object in the Frame and select Show on the context menu. 

   I CANNOT SEE the AttributeExplorer object IN THE FRAME TO OPEN IT WITH R-CLICK

*/

 

 

 

 

 

 

What is the underlying image to start the process ro bring up [Show] here - is it a chart instance ?

09- how do I bring up AttributeExplorer QQ.gif

 

 

 

 

 

 

Below :   "To show the list window ..... click this "  <----- there is nothing listed.
I am trying to following the instruction in last line in this image but I cannot see an AttExpl object in my frame either

09- how do I bring up AttributeExplorer 02 QQ.gif

 

 

 

Betreff: 09= How do you save the F8 properties in a file

Phenom
Phenom

@ AttributeExplorer is not recognised as an installed component, or else this frame needs it to be opened prior to accessing it.

 

What kind of license do you have ?

It seems you need a professional license (s.b.)

 

Unbenannt.PNG

 

 

Betreff: 09= How do you save the F8 properties in a file

Hi @Old_Sohol, sorry, you wrote and pasted too many things for me to understand... Smiley Wink

As simulator wrote you need a Professional License for the AttributeExplorer. When you have one and you have loaded the class (see simulators screenshot), then the AttributeExplorer appears in the Toolbox (InformationFlow -> AttributeExplorer) and you can insert it like any other Plant Simulation object.
The code in my screenshot only works, when the AttributeExplorer, the method and the object, you want to retrieve your attributes from, are in the same frame.
Hope that helps....

Betreff: 09= How do you save the F8 properties in a file

Phenom
Phenom

The method extracts the attributes to the table file which then can be exported as csv or excel.

 

Have a look

Unbenannt.PNG

Betreff: 09= How do you save the F8 properties in a file

Genius
Genius

Thanks @simulator,  will give your zzz.zip a spin and see what happens.

 

@Andreas_SimPlan, I do have a professional licence (cannot query that with a model open it seems - is that right?). Thanks for the advice how to insert an AttExpl object into the frame, that was one step that did not seem to be explained anywhere.

However, Murphy is still laughing in my face on this one  Smiley Mad

09- how do I bring up AttributeExplorer 04 QQ.gif

 

 

Betreff: 09= How do you save the F8 properties in a file

Phenom
Phenom

@Old_Sohol

 

In this case the AttributeExplorer should be in the same frame as the calling method.

 

Please check.

 

In any case this is where you can find what license you are using and how it works (s. attachment)

 

Unbenannt.PNG