pycatia.drafting_2dL_interfaces.layout_2d_factory¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.drafting_2dL_interfaces.layout_2d_factory.Layout2DFactory(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectLayout2DFactory- create_2d_layout(i_standard_name: str) Layout2DRoot ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Create2DLayout(CATBSTR iStandardName) As Layout2DRootCreate the 2DLayout associated to the 3D mechanical feature tha implementthis interface. E.g. a Mechanical Part.Parameters:CATBSTRiStandardName The standard name to apply to the new layout.oLayoutThe created 2DLayout. This feature is unique for a given 3D contextfeature. Consequently requesting this interface on a 3D feature that is alreadyassociated to a 2DLayout feature will fail. You must first request for anyexisting 2DLayout viaAnyObject.GetItem method using CATLayoutRoot key parameter to check for2DLayout pre-existing feature as follow :Dim MyRoot As Layout2DRootSet MyRoot = CATIA.ActiveDocument.Part.GetItem(“CATLayoutRoot”)if MyRoot Is Nothing thenDim MyRootFact As Layout2DFactorySet MyRootFact = CATIA.ActiveDocument.Part.GetItem(“CATLayoutRootFactory”)Set MyRoot = MyRootFact.Create2DLayout(“ISO_3D”)end if
- Parameters:
i_standard_name (str) –
- Return type: