Sections of a View
Functions Introduced:
The function
ProDrawingViewSectionTypeGet() retrieves the section type for a specified drawing view in terms of the enumerated type
ProDrawingViewSectionType. A section can be of the following types:
• PRO_VIEW_NO_SECTION—Specifies no section.
• PRO_VIEW_TOTAL_SECTION—Specifies the complete drawing view.
• PRO_VIEW_AREA_SECTION—Specifies a 2D cross section.
• PRO_VIEW_3D_SECTION—Specifies a 3D cross section.
• PRO_VIEW_PART_SURF_SECTION—Specifies a section created out of a solid surface or a datum quilt in the model.
A drawing can have many 2D cross sections defined in it. These cross sections are indexed. The first cross section has its index number set to 0. Depending on which 2D cross section you want to work with, specify the index number.
The function
ProDrawingView2DSectionGet() retrieves the 2D cross section for a specified drawing view.
The function
ProDrawingView2DSectionSet() assigns the following arguments to define the 2D cross section for a drawing view:
• sec_name—Specifies the name of the 2D cross section.
• sec_area_type—Specifies the type of section area. The section area is given by the enumerated type ProDrawingViewSectionAreaType and can be of the following types:
◦ PRO_VIEW_SECTION_AREA_FULL—Sectioning is applied to full drawing view.
◦ PRO_VIEW_SECTION_AREA_HALF—Sectioning is applied to half drawing view depending upon the inputs for half side.
◦ PRO_VIEW_SECTION_AREA_LOCAL—Specifies local sectioning.
◦ PRO_VIEW_SECTION_AREA_UNFOLD—Unfold the drawing view and section it.
◦ PRO_VIEW_SECTION_AREA_ALIGNED—Sectioning is as per the aligned views.
• ref_sel—Specifies the selection reference in terms of the ProSelection object.
• curve_data—Specifies the spline curve data in terms of the ProCurvedata handle.
• arrow_display_view—Specifies the drawing view, that is, either the parent or child view, where the section arrow is to be displayed.
|
Note:
|
For a section area of type PRO_VIEW_SECTION_AREA_FULL in the above function, you can pass the input arguments ref_sel, curve_data, and arrow_display_view as NULL.
|
The function
ProDrawingView2DSectionNumberGet() retrieves the number of 2D cross sections defined for a drawing view.
The function
ProDrawingView2DSectionFlip() flips the direction of 2D cross section in a drawing view. Specify the index of the 2D cross section that you want to flip.
Use the function
ProDrawingView2DSectionFlipGet() returns a boolean value that indicates the direction in which the 2D cross section has been clipped. Depending on the type of cross section, the boolean value indicates different direction of clipping as below:
• Planar cross section—The boolean value:
◦ PRO_B_FALSE indicates that the cross section has been clipped in the direction of the positive normal to the cross section plane.
◦ PRO_B_TRUE indicates that the cross section has been clipped in the opposite direction of the positive normal.
• Offset cross section—The integer value:
◦ PRO_B_FALSE indicates that material has been removed from the left of the cross section entities if the viewing direction is from the positive side of the entity plane.
◦ PRO_B_TRUE indicates that the material has been retained from the left of the cross section entities and rest of the material has been removed.
The function
ProDrawingView3DSectionGet() retrieves the 3D cross section for a specified drawing view.
The function
ProDrawingView3DSectionSet() assigns the following arguments to define a 3D cross section for a view:
• sec_name —Specifies the name of the 3D cross section.
• show_x_hatch—Specifies a ProBoolean value that determines whether X-hatching is displayed in the 3D cross-sectional view. Set this argument to PRO_B_TRUE to display X-hatching.
The function
ProDrawingViewSinglepartSectionGet() retrieves the section created out of a solid surface or a datum quilt in the model for a specified drawing view.
The function
ProDrawingViewSinglepartSectionSet() assigns the reference selection in terms of the
ProSelection object for the solid surface or datum quilt that is used to create the section in the view.
The functions
ProDrawingView2DSectionTotalSet() and
ProDrawingView2DSectionAreaSet() enable you to set the visibility of model edges in a 2D cross section view of a drawing.
The function
ProDrawingView2DSectionTotalSet() sets the visibility of model edges to
Total. A total cross section shows not only the cross-sectioned area, but also the edges of the model that become visible when a cross section is made. Here model edges behind the section planes as well as section edges are displayed.
The function
ProDrawingView2DSectionAreaSet() sets the visibility of model edges to
Area. An area cross section displays only the cross section without the geometry, that is, only section edges are displayed.