Gets an intent for a drawing curve created by model geometry which is in the model document shown in the drawing view.
Namespace: Autodesk.iLogic.Interfaces
Assembly: Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 30.0
Syntax
VB
Function GetIntentOrDefault ( entityName As String, Optional intent As PointIntentEnum = , Optional nearPoint As CurveChoiceSpec = Nothing ) As GeometryIntent
C#
GeometryIntent GetIntentOrDefault( string entityName, PointIntentEnum intent = , CurveChoiceSpec nearPoint = null )
Parameters
- entityName
- Type: System.String
The name of the model geometry (face, edge, vertex or work feature). - intent (Optional)
- Type: PointIntentEnum
The type of GeometryIntent wanted. - nearPoint (Optional)
- Type: Autodesk.iLogic.Types.CurveChoiceSpec
If more than one drawing curve is found, chooses the one whose bounding box center is closest to this point.
Return Value
Type: GeometryIntentThe GeometryIntent that was created, or Nothing if there was an error and it could not be created. If you need more detail about the error, use the GetIntent(String, PointIntentEnum, CurveChoiceSpec) function.