Hide Table of Contents
ICreatePlaneFixed2 Method (IModelDoc2)

Obsolete. Superseded by IFeatureManager::InsertRefPlane.

.NET Syntax

Visual Basic (Declaration) 
Function ICreatePlaneFixed2( _
   ByRef P1 As System.Double, _
   ByRef P2 As System.Double, _
   ByRef P3 As System.Double, _
   ByVal UseGlobal As System.Boolean _
) As RefPlane
Visual Basic (Usage) 
Dim instance As IModelDoc2
Dim P1 As System.Double
Dim P2 As System.Double
Dim P3 As System.Double
Dim UseGlobal As System.Boolean
Dim value As RefPlane
 
value = instance.ICreatePlaneFixed2(P1, P2, P3, UseGlobal)
C# 
RefPlane ICreatePlaneFixed2( 
   ref System.double P1,
   ref System.double P2,
   ref System.double P3,
   System.bool UseGlobal
)
C++/CLI 
RefPlane^ ICreatePlaneFixed2( 
&   System.double% P1,
&   System.double% P2,
&   System.double% P3,
&   System.bool UseGlobal
) 

Parameters

P1
Array of 3 doubles (x, y, z) in meters; this is the first of three model-space points used to define the plane orientation; it is also used as the origin for the plane coordinate system
P2
Array of 3 doubles (x, y, z) in meters; this is the second of three model-space points used to define the plane orientation; the planes X-axis is directed from P1 to P2 unless useGlobal is set to True
P3
Array of 3 doubles (x, y, z) in meters; this is the final model-space point used to define the plane orientation
UseGlobal
Controls x-axis orientation (see Remarks)

Return Value

Newly created reference plane or NULL if the creation of the plan fails

Remarks

The resulting plane is not parametric.

The planes normal vector is calculated using the cross product of the vectors (P2 - P1) and (P3 - P1), respectively.

The x-axis of the planes' coordinate system are a vector from P1 to P2 or a vector projected from the x-axis of the global coordinate system onto the plane.

The useGlobal argument denotes whether to align the x-axis of the plane with global orientation.

If useGlobal...

Then x-axis of the...

True

global (model) coordinate system is projected onto the plane. That vector is used to determine the direction of the plane's x-axis. This does not reorient the plane. Instead, it rotates the plane coordinate system about P1 until the x-axis of the plane aligns with the projected vector.  P1, P2, and P3 are still required because they define the plane.  

false

plane is aligned based on your input points, P1 and P2.

This method creates the plane in the model that is currently being edited. This behavior is consistent with the other plane creation APIs, but it is different from the original IModelDoc2::ICreatePlaneFixed, which created the plane in this model, regardless of whether a component was currently being edited.

 

See Also

Availability

SOLIDWORKS 2001Plus SP1, Revision Number 10.1


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   ICreatePlaneFixed2 Method (IModelDoc2)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2019 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.