All Frameworks  Object Hierarchy  This Framework  Indexes   

Layout2DFactory (Object)



Method Index

Create2DLayout
Create the 2DLayout associated to the 3D mechanical feature tha implement this interface.

Methods


o Func Create2DLayout( iStandardName) As
Create the 2DLayout associated to the 3D mechanical feature tha implement this interface. E.g. a Mechanical Part.
Parameters:
CATBSTR
iStandardName The standard name to apply to the new layout.
oLayout
The created 2DLayout. This feature is unique for a given 3D context feature. Consequently requesting this interface on a 3D feature that is already associated to a 2DLayout feature will fail. You must first request for any existing 2DLayout via
AnyObject.GetItem method using CATLayoutRoot key parameter to check for 2DLayout pre-existing feature as follow :
 Dim MyRoot As Layout2DRoot
 Set MyRoot = CATIA.ActiveDocument.Part.GetItem("CATLayoutRoot")
 if MyRoot Is Nothing then
   Dim MyRootFact As Layout2DFactory
   Set MyRootFact = CATIA.ActiveDocument.Part.GetItem("CATLayoutRootFactory")
   Set MyRoot = MyRootFact.Create2DLayout("ISO_3D")
 end if
 

Copyright © 2003, Dassault Systèmes. All rights reserved.