Share

IManagedHoleThreadNotes.Add Method

Adds or edits a hole or thread note. Different results are possible depending on the input provided, as discussed below.

Namespace:  Autodesk.iLogic.Interfaces
Assembly:  Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 30.0

Syntax

VB

Function Add ( 
	name As String,
	position As DiameterDimensionTextPositionSpec,
	holeOrThreadEdge As Object,
	Optional linearDiameterType As Boolean = false,
	Optional dimensionStyle As Object = Nothing
) As IManagedHoleThreadNote

C#

IManagedHoleThreadNote Add(
	string name,
	DiameterDimensionTextPositionSpec position,
	Object holeOrThreadEdge,
	bool linearDiameterType = false,
	Object dimensionStyle = null
)

Parameters

name
Type: System.String
The name of the managed hole or thread note.
position
Type: Autodesk.iLogic.Types.DiameterDimensionTextPositionSpec
The position of the hole or thread note on the sheet.
holeOrThreadEdge
Type: System.Object
Input DrawingCurve or GeometryIntent object that specifies the edge to create the note for and the location along the edge the note points to. If the drawing curve or geometry intent does not represent a hole or thread edge, the method returns an error. For more information about how to get different results by providing different inputs for this argument, see the discussion on the HoleThreadNotes.Add page in the Inventor API help.
linearDiameterType (Optional)
Type: System.Boolean
dimensionStyle (Optional)
Type: System.Object
Optional input that specifies which dimension style to use for the note. The dimension style can be specified by providing the name of an existing style or by supplying a DimensionStyle object. Default = Nothing : uses the default hole or thread note style.

Return Value

Type: IManagedHoleThreadNote
The managed hole or thread note.

See Also

Reference

Was this information helpful?