Salome HOME
DCQ:prepare 2.0.0
[modules/kernel.git] / doc / html / INPUT / exemple / Example9.html
diff --git a/doc/html/INPUT/exemple/Example9.html b/doc/html/INPUT/exemple/Example9.html
deleted file mode 100755 (executable)
index 6809dab..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>#%AttributeSelectable interface(creations/saving/restoring)%\r
-#%SALOMEDS methods: FindOrCreateAttribute, SaveAs, FindComponent, FindAttribute, Open%\r
-#%Attribute methods: SetSelectable, IsSelectable%\r
-\r
-# &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;create &nbsp; &nbsp;AttributeSelectable &nbsp;\r
-#===========================================================\r
-A = batchmode_geompy.myBuilder.FindOrCreateAttribute(batchmode_geompy.father, &quot;AttributeSelectable&quot;)\r
-if A == None :\r
- &nbsp; &nbsp; &nbsp; &nbsp;raise &nbsp;RuntimeError, &quot;Can't create AttributeSelectable attribute&quot;\r
-A = A._narrow(SALOMEDS.AttributeSelectable)\r
-\r
-if A == None :\r
- &nbsp; &nbsp; &nbsp; &nbsp;raise &nbsp;RuntimeError, &quot;Can't create AttributeSelectable attribute&quot;\r
-\r
-A.SetSelectable(1)\r
-\r
-if A.IsSelectable() == 0:\r
- &nbsp; &nbsp; &nbsp; &nbsp;&quot;Error: wrong value of AttributeSelectable&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, 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; AttributeSelectable\r
-#============================================================\r
-\r
-res,A=father.FindAttribute(&quot;AttributeSelectable&quot;)\r
-if res == 0 or A == None:\r
- &nbsp; &nbsp; &nbsp; &nbsp;raise &nbsp;RuntimeError, &quot;Error: &nbsp;not found AttributeSelectable&quot;\r
-\r
-A = A._narrow(SALOMEDS.AttributeSelectable)\r
-\r
-if A == None :\r
- &nbsp; &nbsp; &nbsp; &nbsp;raise &nbsp;RuntimeError, &quot;Can't create AttributeSelectable attribute&quot;\r
-\r
-if A.IsSelectable() == 0:\r
- &nbsp; &nbsp; &nbsp; &nbsp;&quot;Error: wrong value of AttributeSelectable&quot;\r
-\r
-</PRE>
\ No newline at end of file