Gets an intent for a drawing curve created by model geometry which is in a component within the assembly 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 ( component As ComponentArgument, entityName As String, Optional intent As PointIntentEnum = , Optional nearPoint As CurveChoiceSpec = Nothing ) As GeometryIntent
C#
GeometryIntent GetIntentOrDefault( ComponentArgument component, string entityName, PointIntentEnum intent = , CurveChoiceSpec nearPoint = null )
Parameters
- component
- Type: Autodesk.iLogic.Types.ComponentArgument
The component within the model document - 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(ComponentArgument, String, PointIntentEnum, CurveChoiceSpec) function.