Share

ModelingEvents.OnNewFeature Event

Parent Object: ModelingEvents

Description

Event that is fired whenever a feature is created.

Syntax

ModelingEvents.OnNewFeature( DocumentObject As Document, Feature As PartFeature, BeforeOrAfter As EventTimingEnum, Context As NameValueMap, HandlingCode As HandlingCodeEnum )

Parameters

Name Type Description
DocumentObject Document Input Document object that indicates the document in which the change occurred.
Feature PartFeature Input PartFeature object that was just created. Nothing in the kBefore case.
BeforeOrAfter EventTimingEnum Notification is sent before and after the feature has been created. You should only perform query operations when the valueof this argument is kBefore. Inventor is not in a state to correctly handle edit operations at that point.
Context NameValueMap Input NameValueMap object that can be used to determine the context of why the event fired.
HandlingCode HandlingCodeEnum Output HandlingCodeEnum that indicates how you are handling the event. The value of this argument is currently ignored for this event.

Version

Introduced in version 2008

Was this information helpful?