IManagedDrawing.AddManagedEntity Method (String, Func(Object, Boolean), Func(Object))

Adds or edits a generic managed entity (e.g. an annotation) created by the Inventor API.

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

Syntax

VB

Function AddManagedEntity ( 
	entityName As String,
	editFunction As Func(Of Object, Boolean),
	factoryFunction As Func(Of Object)
) As IManagedEntity

C#

IManagedEntity AddManagedEntity(
	string entityName,
	Func<Object, bool> editFunction,
	Func<Object> factoryFunction
)

Parameters

entityName
Type: System.String
The name of the entity.
editFunction
Type: System.Func(Object, Boolean)
A function that will edit the entity, or check to see if it requires editing. This should return True if the entity has been edited satisfactorily, and can be kept. If the entity needs to be modified but the API doesn't allow the required edits, then this should return False. If this returns False, then the factory function will be called to create a new entity.
factoryFunction
Type: System.Func(Object)
A function that will create the entity.

Return Value

Type: IManagedEntity
A managed entity.

See Also

Reference

IManagedDrawing Interface
AddManagedEntity Overload
Autodesk.iLogic.Interfaces Namespace