VISU::DumpContainersToPython(aStudy,theIsPublished,theIsValidScript,aComponent.in(),aStr,aName2EntryMap,aEntry2NameMap,"",aPrefix);
//Output the script that sets up the visul parameters.
- _PTR(Study) study(new SALOMEDS_Study(aStudy));
- string defScript = SALOMEDS_IParameters::getDefaultScript(study, "Interface Applicative", "Post-Pro", aPrefix);
- if(defScript != "") aStr << defScript;
+ if(theIsPublished) {
+ _PTR(Study) study(new SALOMEDS_Study(aStudy));
+ string defScript = SALOMEDS_IParameters::getDefaultScript(study, "Interface Applicative", "Post-Pro", aPrefix);
+ if(defScript != "") aStr << defScript;
+ }
aStr<<aPrefix<<"pass"<<endl;