MeasureEvents Object


Description

The MeasureEvents object provides the ability to invoke the measure and show dimension commands during InteractionEvents.

Methods

Name Description
ListParameters Method that invokes the 'List Parameters' command, prompting the user to select a parameter from a list.
Measure Method that invokes the 'Measure' command and prompts the user to select entities for measure. The OnMeasure event fires as a result of the user action.
ShowDimensions Method that invokes the 'Show Dimensions' command, prompting the user to select a feature to show the dimensions for.

Properties

Name Description
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
Enabled
Parent Gets the parent object from whom this object can logically be reached.
Type Returns an ObjectTypeEnum indicating this object's type.

Events

Name Description
OnMeasure Event that fires when the user selects entities for measure..
OnSelectParameter Event that fires when the user selects a parameter. The selected object can be a feature dimension, a 2d sketch dimension, a 3d sketch dimension or a parameter from the parameters list box.

Accessed From

InteractionEvents.MeasureEvents

Samples

Name Description
Using measure events This sample demonstrates using the measure events to measure distance and angle. Interactive measure is dependent on events and VB only supports events within a class module. To use the sample copy the InteractiveMeasureDistance and InteractiveMeasureAngle subs into a code module. Create a new class module called clsMeasure and copy all of the rest of the code into it.

Version

Introduced in version 2009