All Frameworks  Class Hierarchy  This Framework  Next  Indexes

Drafting2DLInterfaces Class CAT2DLDrawingServices

CAT2DLDrawingServices
 

Usage: you must use this class as is. You should never derive it.


public class CAT2DLDrawingServices

Class of services providing a method to extract a drawing from a 2D Layout.


Method Index


o Extract2DLayoutToDrawing(CATBaseUnknown*,CATBaseUnknown*,CATBoolean)
Extracts the content of a 2D Layout toward an existing drawing.

Methods


o Extract2DLayoutToDrawing
public static HRESULT Extract2DLayoutToDrawing(CATBaseUnknown* ipi2DLayout,
CATBaseUnknown* ipiDftDrawing,
const CATBoolean ibExtract2DGeom)
Extracts the content of a 2D Layout toward an existing drawing.
Role: This service creates generative drawing views linked to the views of a reference 2D Layout. It also copies the content of this 2DLayout main and background views to the drawing main and background views. The drawing result has the same graphical representation than its related 2D Layout; 2D Layout filters are taken into account. Generated annotations are isolated; graphical and positional overloads are not kept at next update. 2D component references in layout detail sheets are not generated in drawings. Likewise, detail sheets are not taken into account during the extraction. Extracted views are located in the drawing at the same location than their related 2DL views (sheet index and position in sheet). If the drawing does not have enough sheets to accomodate these views, then new sheets are created in the drawing document.
Parameters:
ipi2DLayout
[in] The 2D Layout to extract.
ipiDftDrawing
[in] The drawing in which the generative views are created.
ibExtract2DGeom
[in] Specifies if the 2D geometry of 2D Layout view has to be extracted. TRUE: the 2D geometry is extracted FALSE: the 2D geometry is not extracted
Returns:
S_OK if everything ran ok, otherwise...

This object is included in the file: CAT2DLDrawingServices.h
If needed, your Imakefile.mk should include the module: CATDrafting2DLItfCPP

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