pycatia.drafting_interfaces.drawing_view_generative_behavior¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
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_interfaces.drawing_view_generative_behavior.DrawingViewGenerativeBehavior(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchDrawingViewGenerativeBehaviorRepresents the generative behavior of a drawing view.The generative behavior of a drawing view is an object that defines theparameters used to generate the drawing view from the document it represents.Main parameters include the type of the view, the plane on which the view isprojected, the document to represent, and additional parameters depending onthe view type.- apply_breakout_to(i_parent_view: DrawingViewGenerativeBehavior) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub ApplyBreakoutTo(DrawingViewGenerativeBehavioriParentView)If a view have gone through a breakout view operation, this method realizea breakout view on the view given as parameter, and the other types of the viewremain.Example:This example apply the last breakout view done on MyView, ifso,on the view MyDestinationView.MyView.GenerativeBehavior.ApplyBreakoutTo(MyDestinationView)
- Parameters:
i_parent_view (DrawingViewGenerativeBehavior) –
- Return type:
None
- property color_inheritance_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property ColorInheritanceMode() AsCat3DColorInheritanceModeReturns or sets the view color inheritance mode.Example:This example sets the view color inheritance mode of theMyViewdrawing view to cat3DColorInheritanceModeOn to indicatethatgenerated items inherit the color of the 3D elements they comefrom.MyView.GenerativeBehavior.ColorInheritanceMode(cat3DColorInheritanceModeOn)
- Returns:
enum cat_3d_color_inheritance_mode
- Return type:
int
- define_auxiliary_view(i_x_start_point: float, i_y_start_point: float, i_x_end_point: float, y_end_point: float, i_side_to_draw: int, i_parent_view_generative_behavior: DrawingViewGenerativeBehavior) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub DefineAuxiliaryView(double iXStartPoint,double iYStartPoint,double iXEndPoint,double YEndPoint,short iSideToDraw,DrawingViewGenerativeBehavior iParentViewGenerativeBehavior)Defines an auxiliary drawing view. The projection plane of this auxiliarydrawing view is defined in its parent view using a line segment whichrepresents the trace of the projection plane, considered as being normal tothis parent view projection plane.Parameters:iXStartPoint,iYStartPointThe coordinates of the trace line segment start point, expressedwith respect of the parent view axis systemiXEndPoint,iYEndPointThe coordinates of the trace line segment end point, expressed withrespect of the parent view axis systemiSideToDrawThis side is defined according to the trace line segment. Thissegment is oriented from its start point to its end point. When looking alongthis segment, from its start point towards its end point, setting iSideToDrawto 0 (clockwise) draws the auxiliary view as if it were seen from the left ofthe segment in the parent view. Setting iSideToDraw to 1 (counterclockwise)draws the auxiliary view as if it were seen from the right of thesegment.0 Clockwise1 CounterclockwiseiParentViewGenerativeBehaviorThe generative behavior of the parent view in which the linesegment representing the projection plane trace is definedExample:This example defines MyView as an auxiliary view ofits parent view whose generative behavior isMyParentViewGB.The trace of the auxiliary view projection plane passes by thepointsof coordinates (100., 50.) and (500., 250.)respectively.The section is seen from the right of the trace line segmentdefiningthe auxiliary view projection plane.MyView.GenerativeBehavior.DefineAuxiliaryView 100., 50., 500., 250.,1, MyParentViewGB
- Parameters:
i_x_start_point (float) –
i_y_start_point (float) –
i_x_end_point (float) –
y_end_point (float) –
i_side_to_draw (int) –
i_parent_view_generative_behavior (DrawingViewGenerativeBehavior) –
- Return type:
None
- define_box_3d_view(i_boxable_object: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub DefineBox3DView(AnyObject iBoxableObject)Defines a drawing view intersected with a 3D box. The 3D box is defined bythe interface CATIASectionParameters:iBoxableObjectThe 3D box object which must implement the CATIASectioninterface
- Parameters:
i_boxable_object (AnyObject) –
- Return type:
None
- define_breakout(i_profil: tuple, i_plane1: tuple, i_plane2: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub DefineBreakout(CATSafeArrayVariant iProfil,CATSafeArrayVariant iPlane1,CATSafeArrayVariant iPlane2)Defines a breakout on the current view.Parameters:Profilthe profile used, stored as a CATSafeArrayVariant of 2Dcoordinates, of dimension 2*n, n the number of control points on profile.Plane1the first reference plane, stored as a CATSafeArrayVariant [9] : Plane1 [0…2] : Planeorigine coordinates Plane1 [3…5] : First direction vector coordinates Plane1 [6…8] :Second direction vector coordinates. This plane must intersect the 3D Volume.Plane2the second reference plane, stored as a CATSafeArrayVariant [9] : This plane2 is not used.ReturnsLegal values : S_OK if breakout definition succeeded or E_FAIL if the breakout definitionfailed
- Parameters:
i_profil (tuple) –
i_plane1 (tuple) –
i_plane2 (tuple) –
- Return type:
None
- define_broken_view(i_broken_lines_extremities: tuple, i_x_direction: float, i_y_direction: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub DefineBrokenView(CATSafeArrayVariantiBrokenLinesExtremities,double iXDirection,double iYDirection)Defines a broken drawing view. The broken area is represented by two linesand a direction in the source view.Parameters:iBrokenLinesExtremitiesThe lines defining the broken profile. This lines is passed as itspoint coordinate table. Only two lines have to be defined. It has the followingcontents:iBrokenLinesExtremities[0] = X1x coordinate of the first point for the first lineiBrokenLinesExtremities[1] = Y1y coordinate of the first point for the first lineiBrokenLinesExtremities[2] = X2x coordinate of the second point for the first lineiBrokenLinesExtremities[3] = Y2y coordinate of the second point for the first lineiBrokenLinesExtremities[4] = X3x coordinate of the first point for the second lineiBrokenLinesExtremities[5] = Y3y coordinate of the first point for the second lineiBrokenLinesExtremities[6] = X4x coordinate of the second point for the second lineiBrokenLinesExtremities[7] = Y4y coordinate of the second point for the second lineiXDirection,iYDirectionThe direction stands for the translation. The direction must behorizontal or vertical.Example:This example defines MyView as a broken view.The direction for the translation is horizontal.The broken area is defined by to vertical lines.MyView.GenerativeBehavior.DefineBrokenView X1, Y1, X2, Y2, X3, Y3, X4,Y4, XDirection, YDirection
- Parameters:
i_broken_lines_extremities (tuple) –
i_x_direction (float) –
i_y_direction (float) –
- Return type:
None
- define_circular_clipping_view(x_center: float, y_center: float, radius: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub DefineCircularClippingView(double XCenter,double YCenter,double Radius)Defines a Circular clipping on the current view.Parameters:XCenter,YCenter clipping circle center position.Radiusclipping circle radius. ReturnsLegal values : S_OK if clipping definition succeeded or E_FAIL if the clipping definitionfailed
- Parameters:
x_center (float) –
y_center (float) –
radius (float) –
- Return type:
None
- define_circular_detail_view(i_x_center: float, i_y_center: float, i_radius: float, i_parent_view_generative_behavior: DrawingViewGenerativeBehavior) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub DefineCircularDetailView(double iXCenter,double iYCenter,double iRadius,DrawingViewGenerativeBehavior iParentViewGenerativeBehavior)Defines a detail or a clipped drawing view. The clipped area is representedby a circle in the parent view.Parameters:iXCenter,iYCenterThe circle center coordinates, expressed in the parent view axissystemiRadiusThe circle radiusiParentViewGenerativeBehaviorThe generative behavior of the parent view in which the circularclipping is defined. For a clipped view, iParentViewGenerativeBehavior must beset to the current drawing view.Example:This example defines MyView as a detail view of theviewconsidered as its parent view whose generative behaviorisMyParentViewGB.The clipped area is a circle defined using its center coordinates(100.,150.), and its radius (75.) with respect to the parent view axissystem.MyView.GenerativeBehavior.DefineCircularDetailView 100., 150., 75.,MyParentViewGB
- Parameters:
i_x_center (float) –
i_y_center (float) –
i_radius (float) –
i_parent_view_generative_behavior (DrawingViewGenerativeBehavior) –
- Return type:
None
- define_circular_exact_clipping_view(x_center: float, y_center: float, radius: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub DefineCircularExactClippingView(double XCenter,double YCenter,double Radius)Defines a Circular exact clipping on the current view.Parameters:XCenter,YCenter clipping circle center position.Radiusclipping circle radius. ReturnsLegal values : S_OK if clipping definition succeeded or E_FAIL if the clipping definitionfailed
- Parameters:
x_center (float) –
y_center (float) –
radius (float) –
- Return type:
None
- define_front_view(i_x1: float, i_y1: float, i_z1: float, i_x2: float, i_y2: float, i_z2: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub DefineFrontView(double iX1,double iY1,double iZ1,double iX2,double iY2,double iZ2)Defines a front drawing view. The front view is defined using itsprojection plane, passed as the components of two vectors V1 and V2. The crossproduct of vector V1(X1, Y1, Z1) by vector V2(X2, Y2, Z2) defines theprojection direction.Parameters:iX1,iY1,iZ1The components of the first vector with respect to the document 3Daxis systemiX2,iY2,iZ2The components of the second vector with respect to the document 3Daxis systemExample:This example defines MyView as a front view by projectingtherepresented document in the YZ 3D plane.MyView.GenerativeBehavior.DefineFrontView 0., 1., 0., 0., 0.,1.
- Parameters:
i_x1 (float) –
i_y1 (float) –
i_z1 (float) –
i_x2 (float) –
i_y2 (float) –
i_z2 (float) –
- Return type:
None
- define_isometric_view(i_x1: float, i_y1: float, i_z1: float, i_x2: float, i_y2: float, i_z2: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub DefineIsometricView(double iX1,double iY1,double iZ1,double iX2,double iY2,double iZ2)Defines an isometric drawing view. The isometric view is defined using itsprojection plane, passed as the components of two vectors V1 and V2. The crossproduct of vector V1(X1, Y1, Z1) by vector V2(X2, Y2, Z2) defines theprojection direction.Parameters:iX1,iY1,iZ1The components of the first vector with respect to the document 3Daxis systemiX2,iY2,iZ2The components of the second vector with respect to the document 3Daxis systemExample:This example defines MyView as an isometric view by projectingtherepresented document in the vertical plane making an angle of -45degreeswith respect to the X axis.MyView.GenerativeBehavior.DefineIsometricView -0.707, 0.707, 0., 0.,0., 1.
- Parameters:
i_x1 (float) –
i_y1 (float) –
i_z1 (float) –
i_x2 (float) –
i_y2 (float) –
i_z2 (float) –
- Return type:
None
- define_polygonal_clipping_view(profile: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub DefinePolygonalClippingView(CATSafeArrayVariantprofil)Defines a polygonal clipping on the current view.Parameters:profilthe profile used, stored as a CATSafeArrayVariant of 2Dcoordinates, of dimension 2*n, n the number of control points on profile.ReturnsLegal values : S_OK if clipping definition succeeded or E_FAIL if the clipping definitionfailed
- Parameters:
profile (tuple) –
- Return type:
None
- define_polygonal_detail_view(i_profile: tuple, i_parent_view_generative_behavior: DrawingViewGenerativeBehavior) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub DefinePolygonalDetailView(CATSafeArrayVariantiProfile,DrawingViewGenerativeBehavior iParentViewGenerativeBehavior)Defines a detail or a clipped drawing view. The clipped area is representedby a circle in the parent view.Parameters:iProfileThe polyline defining the detail profile. This polyline is passedas its point coordinate table. The polyline is automatically closed. It has thefollowing contents:iProfile[0] = X1x coordinate of the first pointiProfile[1] = Y1y coordinate of the first pointiProfile[2] = X2x coordinate of the second pointiProfile[3] = Y2y coordinate of the second point…iProfile[2n-2] = Xnx coordinate of the nth and last pointiProfile[2n-1] = Yny coordinate of the nth and last pointiParentViewGenerativeBehaviorThe generative behavior of the parent view in which the poligonalclipping is defined. For a clipped view, iParentViewGenerativeBehavior must beset to the current drawing view.Example:This example defines MyView as a detail view of theviewconsidered as its parent view whose generative behaviorisMyParentViewGB.The clipped area is a square defined using its four corners withrespsect to the parent view axis system.MyView.GenerativeBehavior.DefinePolygonalDetailView 0., 0., 100., 0.,100., 100., 0., 100., MyParentViewGB
- Parameters:
i_profile (tuple) –
i_parent_view_generative_behavior (DrawingViewGenerativeBehavior) –
- Return type:
None
- define_polygonal_exact_clipping_view(profile: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub DefinePolygonalExactClippingView(CATSafeArrayVariantprofil)Defines a polygonal exact clipping on the current view.Parameters:profilthe profile used, stored as a CATSafeArrayVariant of 2Dcoordinates, of dimension 2*n, n the number of control points on profile.ReturnsLegal values : S_OK if clipping definition succeeded or E_FAIL if the clipping definition | failed
- Parameters:
profile (tuple) –
- Return type:
None
- define_projection_view(i_parent_view_generative_behavior: DrawingViewGenerativeBehavior, i_type: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub DefineProjectionView(DrawingViewGenerativeBehavioriParentViewGenerativeBehavior,CatProjViewType iType)Defines a projection drawing view.Parameters:iParentViewGenerativeBehaviorThe generative behavior of the parent view.iTypeThe type of the drawing view with respect to its parent viewExample:This example defines MyView as a right view of the frontviewconsidered as its parent view whose generative behaviorisMyParentViewGB.MyView.GenerativeBehavior.DefineProjectionView MyParentViewGB,catRightView
- Parameters:
i_parent_view_generative_behavior (DrawingViewGenerativeBehavior) –
i_type (int) – enum cat_proj_view_type
- Return type:
None
- define_section_view(i_profile: tuple, i_section_type: str, i_profile_type: str, i_side_to_draw: int, i_parent_view_generative_behavior: DrawingViewGenerativeBehavior) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub DefineSectionView(CATSafeArrayVariant iProfile,CATBSTR iSectionType,CATBSTR iProfileType,short iSideToDraw,DrawingViewGenerativeBehavior iParentViewGenerativeBehavior)Defines a section drawing view. A section drawing view is defined using asection profile defined itself as a polyline, a section type to indicatewhether to draw the section or only the section cut, a section profile typethat can be offset or aligned, the side of the section to draw, and thegenerative behavior of the parent view.Parameters:iProfileThe polyline defining the section profile. This polyline is passedas its point coordinate table. It has the followingcontents:iProfile[0] = X1x coordinate of the first pointiProfile[1] = Y1y coordinate of the first pointiProfile[2] = X2x coordinate of the second pointiProfile[3] = Y2y coordinate of the second point…iProfile[2n-2] = Xnx coordinate of the nth and last pointiProfile[2n-1] = Yny coordinate of the nth and last pointiSectionTypeThe section type: SectionCut or SectionViewiProfileTypeThe cutting profile type: Offset or AlignediSideToDrawThe side of the section to draw. This side is defined according tothe first segment of the section profile. This segment is oriented from itsstart point to its end point. When looking along this segment, from its startpoint towards its end point, setting iSideToDraw to 0 (clockwise) draws thesection seen from the left of the segment. Setting iSideToDraw to 1(counterclockwise)draws the section seen from the right of thesegment.0 Clockwise1 CounterclockwiseiParentViewGenerativeBehaviorThe generative behavior of the parent view. The section profile isdefined with respect to this parent view axis systemExample:This example defines MyView as an offset section view of theviewconsidered as its parent view whose generative behaviorisMyParentViewGB.The section is seen from the left of the first section profilesegment.The section profile is defined in the SectionProfilearray.Dim SectionProfileReDim SectionProfile(7)SectionProfile(0) = 10.SectionProfile(1) = 200.SectionProfile(2) = 100.SectionProfile(3) = 200.SectionProfile(4) = 100.SectionProfile(5) = 50.SectionProfile(6) = 300.SectionProfile(7) = 50.MyView.GenerativeBehavior.DefineSectionView SectionProfile,SectionView, Offset, 0, MyParentViewGB
- Parameters:
i_profile (tuple) –
i_section_type (str) –
i_profile_type (str) –
i_side_to_draw (int) –
i_parent_view_generative_behavior (DrawingViewGenerativeBehavior) –
- Return type:
None
- define_stand_alone_section(profile: tuple, type_of_section: str, type_of_profile: str, i_plane: tuple, i_side: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub DefineStandAloneSection(CATSafeArrayVariant profil,CATBSTR type_of_section,CATBSTR type_of_profile,CATSafeArrayVariant iPlane,short iSide)Defines a section view without a reference view.Parameters:profilthe profile used, stored as a CATSafeArrayVariant of 2Dcoordinates, of dimension 2*n, n the number of control points on profile.type_of_sectionLegal values : SectionCut SectionViewtype_of_profileLegal values : Aligned OffsetiPlanethe reference plane, on which the profile lies Plane1 [0…2] : Plane origine coordinatesPlane1 [3…5] : First direction vector coordinates Plane1 [6…8] : Second directionvector coordinates.iSideLegal values : 1 -1Returns:S_OKif the section was correctly definedE_FAILif the operation failed.Example:// 3 points profileDim arrayOfVariantOfDouble1(5)arrayOfVariantOfDouble1(0) = -30.000000arrayOfVariantOfDouble1(1) = -150.000000arrayOfVariantOfDouble1(2) = -30.000000arrayOfVariantOfDouble1(3) = -50.000000arrayOfVariantOfDouble1(4) = 21.997045arrayOfVariantOfDouble1(5) = -50.000000// XY planeDim arrayOfVariantOfDouble2(8)arrayOfVariantOfDouble2(0) = 0.000000arrayOfVariantOfDouble2(1) = 0.000000arrayOfVariantOfDouble2(2) = 0.000000arrayOfVariantOfDouble2(3) = 1.000000arrayOfVariantOfDouble2(4) = 0.000000arrayOfVariantOfDouble2(5) = 0.000000arrayOfVariantOfDouble2(6) = 0.000000arrayOfVariantOfDouble2(7) = 1.000000arrayOfVariantOfDouble2(8) = 0.000000// defines offset sectionviewdrawingViewGenerativeBehavior1.DefineStandAloneSectionarrayOfVariantOfDouble1, “SectionView”, “Offset”, arrayOfVariantOfDouble2,1
- Parameters:
profile (tuple) –
type_of_section (str) –
type_of_profile (str) –
i_plane (tuple) –
i_side (int) –
- Return type:
None
- define_tps_section_view(i_profile: tuple, i_section_type: str, i_profile_type: str, i_side_to_draw: int, i_parent_view_generative_behavior: DrawingViewGenerativeBehavior) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub DefineTPSSectionView(CATSafeArrayVariant iProfile,CATBSTR iSectionType,CATBSTR iProfileType,short iSideToDraw,DrawingViewGenerativeBehavior iParentViewGenerativeBehavior)Defines a TPS section drawing view. A section TPS drawing view is definedusing a section profile defined itself as a polyline, a section type toindicate whether to draw the section or only the section cut, a section profiletype that can be offset or aligned, the side of the section to draw, and thegenerative behavior of the parent view.Parameters:iProfileThe polyline defining the section profile. This polyline is passedas its point coordinate table. It has the followingcontents:iProfile[0] = X1x coordinate of the first pointiProfile[1] = Y1y coordinate of the first pointiProfile[2] = X2x coordinate of the second pointiProfile[3] = Y2y coordinate of the second point…iProfile[2n-2] = Xnx coordinate of the nth and last pointiProfile[2n-1] = Yny coordinate of the nth and last pointiSectionTypeThe section type: SectionCut or SectionViewiProfileTypeThe cutting profile type: Offset or AlignediSideToDrawThe side of the section to draw. This side is defined according tothe first segment of the section profile. This segment is oriented from itsstart point to its end point. When looking along this segment, from its startpoint towards its end point, setting iSideToDraw to 0 (clockwise) draws thesection seen from the left of the segment. Setting iSideToDraw to 1(counterclockwise)draws the section seen from the right of thesegment.0 Clockwise1 CounterclockwiseiParentViewGenerativeBehaviorThe generative behavior of the parent view. The section profile isdefined with respect to this parent view axis systemExample:This example defines MyView as an offset section view of theviewconsidered as its parent view whose generative behaviorisMyParentViewGB.The section is seen from the left of the first section profilesegment.The section profile is defined in the SectionProfilearray.Dim SectionProfileReDim SectionProfile(7)SectionProfile(0) = 10.SectionProfile(1) = 200.SectionProfile(2) = 100.SectionProfile(3) = 200.SectionProfile(4) = 100.SectionProfile(5) = 50.SectionProfile(6) = 300.SectionProfile(7) = 50.MyView.GenerativeBehavior.DefineSectionView SectionProfile,SectionView, Offset, 0, MyParentViewGB
- Parameters:
i_profile (tuple) –
i_section_type (str) –
i_profile_type (str) –
i_side_to_draw (int) –
i_parent_view_generative_behavior (DrawingViewGenerativeBehavior) –
- Return type:
None
- define_unfolded_view(i_x1: float, i_y1: float, i_z1: float, i_x2: float, i_y2: float, i_z2: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub DefineUnfoldedView(double iX1,double iY1,double iZ1,double iX2,double iY2,double iZ2)Defines a unfolded drawing view. The unfolded view is defined using itsprojection plane, passed as the components of two vectors V1 and V2. The crossproduct of vector V1(X1, Y1, Z1) by vector V2(X2, Y2, Z2) defines theprojection direction.Parameters:iX1,iY1,iZ1The components of the first vector with respect to the document 3Daxis systemiX2,iY2,iZ2The components of the second vector with respect to the document 3Daxis systemExample:This example defines MyView as a unfolded view by projectingtherepresented document in the YZ 3D plane.MyView.GenerativeBehavior.DefineUnfoldedView 0., 1., 0., 0., 0.,1.
- Parameters:
i_x1 (float) –
i_y1 (float) –
i_z1 (float) –
i_x2 (float) –
i_y2 (float) –
i_z2 (float) –
- Return type:
None
- property document: AnyObject¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Document() As AnyObjectReturns or sets the document used to generate the drawing view. Thisdocument can be a CATIA Version 4 model, a CATIA Version 5 part or assembly.But it can be also just a body(partbody), according to the view links (then thedocument is the parent object). The document must be already loaded, that is itcan be retrieved from the document collection managed by the CATIAapplication.Example:This example sets the document that the MyView drawing viewshouldrepresent to the CATPart1 CATIA Version 5 part.Dim PartToDraw As DocumentSet PartToDraw = CATIA.Documents.Item(“CATPart1”)MyView.GenerativeBehavior.Document = PartToDraw
- Return type:
- property fillet_representation: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property FilletRepresentation() As CatFilletRepresentationReturns or sets the view Fillet representation mode. The Filletrepresentation indicates how to draw lines coming fromfillets.Example:This example sets the view Fillet representation of theMyViewdrawing view to catFilletRepBoundaryMyView.GenerativeBehavior.FilletRepresentation = catFilletRepBoundary
- Returns:
enum cat_fillet_representation
- Return type:
int
- force_update() None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub ForceUpdate()Forces the Update the drawing view even if not necessary.Example:This example updates the MyView drawing view.MyView.GenerativeBehavior.ForceUpdate()
- Return type:
None
- get_axis_system(o_product: AnyObject, o_axis_system: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub GetAxisSysteme(AnyObject oProduct,AnyObject oAxisSysteme)Retrieves the axis systeme associated with the view.Parameters:oProductThe reference product stored as a CATIABase.oAxisSystemeThe axis system stored as a CATIABase.
- get_gps_name() str ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func GetGPSName() As CATBSTRRetrieves the set of generative parameters currently applied to the view.Parameters will be taken into account at view update time.Parameters:ioGPSNameThe XML file where generative parameters are retrieved fromReturns:S_OKif the operation succeeded.E_FAILExample:This example retrieves the generative parameters file applied to theMyView drawing view as GPSFile.MyView.GenerativeBehavior.GetGPSName GPSFile
- Return type:
str
- get_projection_plane(o_x1: float, o_y1: float, o_z1: float, o_x2: float, o_y2: float, o_z2: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub GetProjectionPlane(double oX1,double oY1,double oZ1,double oX2,double oY2,double oZ2)Returns the drawing view projection plane.Parameters:oX1,oY1,oZ1The components of the first vector with respect to the document 3Daxis systemoX2,oY2,oZ2The components of the second vector with respect to the document 3Daxis systemExample:This example retrieves the projection plane of the MyViewdrawingview as two sets of components, X1, Y1, and Z1 for the firstvector,X2, Y2, and Z2 for the second vector.MyView.GenerativeBehavior.GetProjectionPlane X1, Y1, Z1, X2, Y2, Z2
- Parameters:
o_x1 (float) –
o_y1 (float) –
o_z1 (float) –
o_x2 (float) –
o_y2 (float) –
o_z2 (float) –
- Return type:
None
- get_projection_plane_normal(o_x_normal: float, o_y_normal: float, o_z_normal: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub GetProjectionPlaneNormal(double oXNormal,double oYNormal,double oZNormal)Returns the normal vector of the drawing view projection plane. Thisrepresents the direction of projection.Parameters:oXNormal,oYNormal,oZNormalThe components of the projection plane normal vector with respectto the document 3D axis systemExample:This example retrieves the projection plane normal vector oftheMyView drawing view as three components Xn, Yn, andZn.MyView.GenerativeBehavior.GetProjectionPlaneNormal Xn, Yn, Zn
- Parameters:
o_x_normal (float) –
o_y_normal (float) –
o_z_normal (float) –
- Return type:
None
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property HiddenLineMode() As CatHiddenLineModeReturns or sets the view hidden line drawing mode. The hidden line drawingmode indicates whether to draw the hidden lines.Example:This example sets the view hidden line drawing mode of theMyViewdrawing view to catHLRModeOn to indicate that hidden lines mustnotbe drawn.MyView.GenerativeBehavior.HiddenLineMode = catHLRModeOn
- Returns:
enum cat_hidden_line_mode
- Return type:
int
- property image_view_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property ImageViewMode() As CatImageViewModeReturns or sets the view generation mode as pixel image.Returns:S_OKif the operation succeeded.E_FAILFor both methods, if an unspecified failure has occurredExample:This example sets the view image generation mode of theMyViewdrawing view to catImageModeHRD to indicate that view is generated asanHRD image.MyView.GenerativeBehavior.CatImageViewMode(catImageModeHRD)
- Returns:
enum cat_image_view_mode
- Return type:
int
- property limit_bounding_box: float¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property LimitBoundingBox() As doubleReturns or sets the bounding box limits under which a part. will not betaken into account during view generation. The value 0. means that no part willbe filtered.Returns:S_OKif the operation succeeded.E_FAILFor both methods, if an unspecified failure has occurred
- Return type:
float
- property parent_view: DrawingView¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property ParentView() As DrawingView (Read Only)Returns the parent view.Example:This example returns in MyParentView the parent view oftheMyView drawing view.Dim MyParentView As DrawingViewSet MyParentView = MyView.GenerativeBehavior.ParentView
- Return type:
- property points_projection_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property PointsProjectionMode() As CatPointsProjectionModeReturns or sets projection mode for 3D points. This mode indicates whetherto project 3D points.Example:This example sets the points projection mode of theMyViewdrawing view to catPointsProjectionModeOn to indicate that3D points must be projected.MyView.GenerativeBehavior.PointsProjectionMode = catPointsProjectionModeOn
- Returns:
enum cat_points_projection_mode
- Return type:
int
- property points_symbol: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property PointsSymbol() As shortReturns or sets symbol for projected points. The 0 value means thatprojected points inherit the symbol of 3D points they come from.
- Return type:
int
- property representation_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property RepresentationMode() As CatRepresentationModeReturns or sets generated geometry representation mode.Returns:S_OKif the operation succeeded.E_FAILFor both methods, if an unspecified failure has occurred and for theput_RepresentationMode method if the drawing view owns a detail, section orbreakout specification.Example:This example sets the representation mode of the MyViewdrawing view to catPolyhedricMode to indicate thatit is generated from CGR data.MyView.GenerativeBehavior.RepresentationMode = catPolyhedricMode
- Returns:
enum cat_representation_mode
- Return type:
int
- set_axis_systeme(i_product: AnyObject, i_axis_systeme: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub SetAxisSysteme(AnyObject iProduct,AnyObject iAxisSysteme)Defines an axis systeme in the view.Parameters:iProductThe reference product stored as a CATIABase.iAxisSystemeThe axis system stored as a CATIABase.
- set_gps_name(i_gps_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub SetGPSName(CATBSTR iGPSName)Applies a set of generative parameters to the current view. Parameters willbe taken into account at view update time.Parameters:iGPSNameThe XML file where generative parameters are retrieved fromReturns:S_OKif the operation succeeded.E_FAILExample:This example applied the GPSFile1 to the MyView drawingview.MyView.GenerativeBehavior.SetGPSName “GPSFile1.xml”
- Parameters:
i_gps_name (str) –
- Return type:
None
- set_projection_plane(i_x1: float, i_y1: float, i_z1: float, i_x2: float, i_y2: float, i_z2: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub SetProjectionPlane(double iX1,double iY1,double iZ1,double iX2,double iY2,double iZ2)Sets the drawing view projection plane. The projection plane is the planeto which the document’s geometrical objects are projected and is used as thedrawing view plane. This plane is defined in the document 3D space using thecomponents of two of its vectors. The cross product of vector V1(X1, Y1, Z1) byvector V2(X2, Y2, Z2) defines the projection direction. This method can be usedwith front views and isometric views to change the projection plane definedwhen such views were created. It should not be used with the other types ofviews, since their projection planes are defined with respect to their parentview projection plane.Parameters:iX1,iY1,iZ1The components of the first vector with respect to the document 3Daxis systemiX2,iY2,iZ2The components of the second vector with respect to the document 3Daxis systemExample:This example sets the projection plane of the MyView drawingviewto the XY plane, that is the plane defined with the vectors (1., 0.,0.) and(0., 1., 0.).MyView.GenerativeBehavior.SetProjectionPlane 1., 0., 0., 0., 1., 0.
- Parameters:
i_x1 (float) –
i_y1 (float) –
i_z1 (float) –
i_x2 (float) –
i_y2 (float) –
i_z2 (float) –
- Return type:
None
- un_break() None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub UnBreak()If a view have been broken with lines in order to hide an area of thisview, this method undoes this modification of the view, and the other types ofview remain.Example:This example removes the BrokenView type from MyView ifso.MyView.GenerativeBehavior.UnBreak()
- Return type:
None
- un_breakout() None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub UnBreakout()If a view have gone through a breakout view operation, this method removesall the breakout view done on this view, and the other types of viewremain.Example:This example removes all the breakouts view done on MyView ifso.MyView.GenerativeBehavior.UnBreakout()
- Return type:
None
- un_breakout_num(i_breakout_number: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub UnBreakoutNum(short iBreakoutNumber)If a view have gone through a breakout view operation, this method removesthe specified breakout view done on this view, and the other types of viewremain.Parameters:iBreakoutNumberThe reference number of the breakout view to be removed (1 to n)Example:This example removes the first breakout view done on MyView ifso.MyView.GenerativeBehavior.UnBreakout(1)
- Parameters:
i_breakout_number (int) –
- Returns:
None
- un_clip() None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub UnClip()If a view have been clipped, this method removes the last clipping viewdone on this view, and the other types of view remain.Example:This example removes the last clipping view done on MyView ifso.MyView.GenerativeBehavior.UnClip()
- Return type:
None
- update() None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub Update()Updates the drawing view. This update is performed with respect to anymodification of its DrawingView.GenerativeBehaviorproperty.Example:This example updates the MyView drawing view.MyView.GenerativeBehavior.Update()
- Return type:
None