Part: expose geometry clone support to python

=============================================

>>> geometries = ActiveSketch.Geometry
>>> geo0 = geometries[0]
>>> geo0.Tag
'a2b6883e-64d6-4348-b567-8b5e0a4896a0'
>>> geo1 = geo0.clone()
>>> geo1.Tag
'a2b6883e-64d6-4348-b567-8b5e0a4896a0'
>>> geo1.Radius = 3
>>> geo0.Tag
'a2b6883e-64d6-4348-b567-8b5e0a4896a0'
>>> geo0.Radius
30.157883192724587
>>> geo1.Tag
'a2b6883e-64d6-4348-b567-8b5e0a4896a0'
>>> geo1.Radius
3.0
This commit is contained in:
Abdullah Tahiri
2019-01-27 10:25:36 +01:00
committed by wmayer
parent f4e4f3441f
commit dbbb1df6f8
2 changed files with 43 additions and 11 deletions

View File

@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
<PythonExport
Father="PyObjectBase"
Name="GeometryPy"
Twin="Geometry"
TwinPointer="Geometry"
Include="Mod/Part/App/Geometry.h"
Namespace="Part"
FatherInclude="Base/PyObjectBase.h"
<PythonExport
Father="PyObjectBase"
Name="GeometryPy"
Twin="Geometry"
TwinPointer="Geometry"
Include="Mod/Part/App/Geometry.h"
Namespace="Part"
FatherInclude="Base/PyObjectBase.h"
FatherNamespace="Base"
Constructor="true"
Delete="true">
@@ -48,6 +48,11 @@ It describes the common behavior of these objects when:
<UserDocu>Create a copy of this geometry</UserDocu>
</Documentation>
</Methode>
<Methode Name="clone" Const="true">
<Documentation>
<UserDocu>Create a clone of this geometry with the same Tag</UserDocu>
</Documentation>
</Methode>
<Attribute Name="Construction" ReadOnly="false">
<Documentation>
<UserDocu>Defines this geometry as a construction one which