Salome HOME
DCQ:prepare 2.0.0
[modules/kernel.git] / doc / html / INPUT / exemple / Example10.html
diff --git a/doc/html/INPUT/exemple/Example10.html b/doc/html/INPUT/exemple/Example10.html
deleted file mode 100755 (executable)
index fde0125..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML>\r
-<HEAD>\r
-<!-- hennerik CVSweb $Revision$ -->\r
-<TITLE>Example</TITLE></HEAD>\r
-<BODY BGCOLOR="#eeeeee">\r
-<HR noshade><PRE>#%AttributeExpandable interface(creations/saving/restoring)%\r
-#%SALOMEDS methods : SaveAs FindComponent &nbsp;FindAttribute Open%\r
-#%Attribute methods : SetExpandable IsExpandable%\r
-\r
-# &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;create &nbsp; &nbsp;AttributeExpandable\r
-#===========================================================\r
-A = batchmode_geompy.myBuilder.FindOrCreateAttribute( batchmode_geompy.father, &quot;AttributeExpandable&quot;)\r
-if A == None :\r
- &nbsp; &nbsp; &nbsp; &nbsp;raise &nbsp;RuntimeError, &quot;Can't create AttributeExpandable attribute&quot;\r
-A = A._narrow(SALOMEDS.AttributeExpandable)\r
-\r
-if A == None :\r
- &nbsp; &nbsp; &nbsp; &nbsp;raise &nbsp;RuntimeError, &quot;Can't create AttributeExpandable attribute&quot;\r
-\r
-A.SetExpandable(1)\r
-\r
-if A.IsExpandable() == 0:\r
- &nbsp; &nbsp; &nbsp; &nbsp;&quot;Error: wrong value of AttributeExpandable&quot;\r
-\r
-\r
-# &nbsp; &nbsp; &nbsp;save / restore study &nbsp; &nbsp; &nbsp;\r
-#============================================================\r
-str= os.getenv(&quot;TmpDir&quot;)\r
-if str == None:\r
- &nbsp; &nbsp; &nbsp; &nbsp;str = &quot;/tmp&quot;\r
-file = str+&quot;/test.hdf&quot;\r
-\r
-batchmode_geompy.myStudyManager.SaveAs(file, &nbsp;batchmode_geompy.myStudy)\r
-openedStudy = batchmode_geompy.myStudyManager.Open(file);\r
-\r
-if openedStudy == None:\r
- &nbsp; &nbsp; &nbsp; &nbsp;raise &nbsp;RuntimeError, &quot;Can't open saved study!&quot;\r
-\r
-father = openedStudy.FindComponent(&quot;GEOM&quot;)\r
-if father is None:\r
- &nbsp; &nbsp; &nbsp; &nbsp; raise &nbsp;RuntimeError, &quot;Geom component is not found! &nbsp;Wrong study is opened.&quot; \r
-\r
-\r
-# &nbsp; &nbsp; find &nbsp; AttributeExpandable\r
-#============================================================\r
-\r
-res,A=father.FindAttribute(&quot;AttributeExpandable&quot;)\r
-if res == 0 or A == None:\r
- &nbsp; &nbsp; &nbsp; &nbsp;raise &nbsp;RuntimeError, &quot;Error: &nbsp;not found AttributeExpandable&quot;\r
-\r
-A = A._narrow(SALOMEDS.AttributeExpandable)\r
-\r
-if A == None :\r
- &nbsp; &nbsp; &nbsp; &nbsp;raise &nbsp;RuntimeError, &quot;Can't create AttributeExpandable attribute&quot;\r
-\r
-if A.IsExpandable() == 0:\r
- &nbsp; &nbsp; &nbsp; &nbsp;&quot;Error: wrong value of AttributeExpandable&quot;\r
-\r
-</PRE>
\ No newline at end of file