PC-Dmis 2010 Object Library | Send comments on this topic. | See Object Hierarchy Chart
CADProjectPoint Method
See Also

Collapse All Expand All

pointX

pointY

pointZ

geometryFilterFlags

vectorOption

surfaceBoundaryOption

pProjectPointX

pProjectPointY

pProjectPointZ

pProjectVectorI

pProjectVectorJ

pProjectVectorK

pCadHandle

# Description

Project a point onto the CAD model. Geometry that is on a hidden level or a hidden assembly component is not checked.

# Syntax

Visual Basic

    Public Function CADProjectPoint( _
       ByVal pointX As Double, _
       ByVal pointY As Double, _
       ByVal pointZ As Double, _
       ByVal geometryFilterFlags As ENUM_CAD_GEOMETRY_FILTER_FLAGS, _
       ByVal vectorOption As ENUM_CAD_VECTOR_OPTION, _
       ByVal surfaceBoundaryOption As ENUM_CAD_SURFACE_BOUNDARY_OPTION, _
       ByRef pProjectPointX As Double, _
       ByRef pProjectPointY As Double, _
       ByRef pProjectPointZ As Double, _
       ByRef pProjectVectorI As Double, _
       ByRef pProjectVectorJ As Double, _
       ByRef pProjectVectorK As Double, _
       ByVal pCadHandle As CadHandle _
    ) As ENUM_CAD_RESULT

# Parameters

pointX
pointY
pointZ
geometryFilterFlags

  Value | Description
  --- | ---
  CAD_POINT_GEOMETRY | Only test point geometry
  CAD_CURVE_GEOMETRY | Only test curve geometry
  CAD_SURFACE_GEOMETRY | Only test surface geometry
  CAD_ALL_GEOMETRY | Test all geometry

vectorOption

  Value | Description
  --- | ---
  CAD_RETURN_TANGENT_TO_CURVES | Return the tangent to curves (including boundaries). This is the default option.
  CAD_RETURN_NORMAL_TO_CURVES | Return the normal to curves or, for surface boundaries, the surface normal. The curve normal is defined as the curve's second derivative vector negated.

surfaceBoundaryOption

  Value | Description
  --- | ---
  CAD_SURFACE_DEFAULT | For surfaces, constrain the result to the surface itself, within the surface boundaries. Does not affect curves. This is the default option.
  CAD_SURFACE_BOUNDARIES | For surfaces, constrain the result to the surface boundaries (inner or outer). Does not affect curves.
  CAD_SURFACE_OUTER_BOUNDARIES | For surfaces, constrain the result to the outer surface boundary. Does not affect curves.

pProjectPointX
pProjectPointY
pProjectPointZ
pProjectVectorI
pProjectVectorJ
pProjectVectorK
pCadHandle

# See Also

CadModel Object

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.