User's Guide > Drawings > Modifying Views
Modifying Views
 
Functions Introduced:
The function ProDrawingViewMove() moves the specified drawing view and its child views by a vector to a new position in screen coordinates. This function performs the same operation as the Creo Parametric command Sketch > Edit > Move Special.
The function ProDrawingViewDelete() deletes the drawing view and any of its child views, or fails if the view has any children.
The function ProDrawingViewErase() erases a specified drawing view.
The function ProDrawingViewResume() resumes the specified drawing view.
ProDrawingViewOriginSet() assigns the location of the origin in terms of the ProPoint3d object and the selection reference in terms of the ProSelection object for a specified drawing view.
The function ProDrawingViewAlignmentSet() assigns the alignment of a drawing view with respect to another view. This function assigns the following input arguments related to alignment:
view_reference—Specifies the reference view to which the drawing view is aligned.
align_style—Specifies the alignment style in terms of the enumerated type ProDrawingViewAlignStyle. The alignment style can be either horizontal or vertical. In case of horizontal alignment, the drawing view and the view it is aligned to lie on the same horizontal line. In case of vertical alignment, the drawing view and the view it is aligned to lie on the same vertical line.
align_ref_1—Specifies the alignment reference of the referenced view. If this is set to NULL, the reference view is aligned according to its view origin.
align_ref_2—Specifies the alignment reference of the aligned view. If this is set to NULL, the aligned view is aligned according to its view origin.
The function ProDrawingViewScaleSet() modifies the scale of a scaled view. If you want to set the drawing view to use the default scale, use PRO_DRAWING_SCALE_DEFAULT. The function ProDrawingScaleSet() modifies the overall drawing scale that is applied to all unscaled views.
The function ProDrawingViewProjectionSet() assigns the specified drawing view as a projection.
The function ProDrawingViewFlagSet() sets the projection arrow flag to TRUE for a projected or detailed drawing view.
The function ProDrawingViewDisplaySet() assigns the fields in the ProDrawingViewDisplay structure that describe the display status of the drawing view. This function does not repaint the drawing view, use the function ProWindowRepaint() to repaint the view.
Note:
 
In order to modify the concept_model field in the ProDrawingViewDisplay structure, you require an Assembly license.
The function ProDrawingViewNameSet() assigns a name to a specified drawing view.
Note:
 
The configuration option allow_duplicate_view_names enables you to set duplicate names for drawing views. When the configuration option is set to no, the function returns an error if another drawing view in the specified drawing exists with the same name.
The function ProDrawingViewZclippingSet() sets the Z-clipping on the drawing view to reference a given edge, datum, or point on the surface that is parallel to the view. Geometry contained in the Z-clipping plane and in front of the plane appears, but geometry behind the plane does not appear. The system clips geometry that intersects the plane.
The function ProDrawingViewPipingdisplaySet() assigns the piping display option for a drawing view. The piping display options are as follows:
PRO_PIPINGDISP_DEFAULT—Displays the default appearance of pipes for the piping assembly.
PRO_PIPINGDISP_CENTERLINE—Displays pipes as centerlines without insulation.
PRO_PIPINGDISP_THICK_PIPES—Displays thick pipes without insulation.
PRO_PIPINGDISP_THICK_PIPES_AND_INSULATION—Displays thick pipes and insulation.
The function ProDrawingViewRegenerate() regenerates the drawing view specified by the ProView view handle.
The function ProDwgViewRegenerate() erases the displayed view of the current object, regenerates the view from the current drawing, then redisplays the view.
The function ProDrawingViewXhatchDependentSet() sets the section hatching dependency on the parent view. The input arguments are:
drawing—Specify the drawing using the ProDrawing handle.
view—Specify the view using the ProView handle.
dependent—If the section hatching should be dependent on the parent view, pass a ProBoolean with the value as PRO_B_TRUE. Else, pass PRO_B_FALSE.
這是否有幫助?