Share

ModelingEvents.OnNewParameter Event

Parent Object: ModelingEvents

Description

The OnNewParameter event notifies the client when a new parameter is created.

Remarks

New parameters can be created explicitly by the end-user using the Add button on the Parameters dialog and they are also created implicitly as the result of placing dimension constraints and constructing features. This event provides notification is both cases.

Syntax

ModelingEvents.OnNewParameter( DocumentObject As Document, Parameter As Parameter, BeforeOrAfter As EventTimingEnum, Context As NameValueMap, HandlingCode As HandlingCodeEnum )

Parameters

Name Type Description
DocumentObject Document The Document object the parameter is contained within.
Parameter Parameter The Parameter object that has just been created. When the BeforeOrAfter argument is kBefore, the value of this argument is Nothing since the Parameter does not yet exist.
BeforeOrAfter EventTimingEnum Input EventTimingEnum indicating when the event is being fired. Notification is sent before and after the parameter has been created. Generally, you should only perform query operations in Inventor when the value of this argument is kBefore. Inventor is not in a state to correctly handle edit operations after that point.
Context NameValueMap Input NameValueMap object that can be used to determine the context of why the event fired. No context information is provided for this event.
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 11

Was this information helpful?