Share

NameValueMap Object


Description

The NameValueMap object. This object provides context-specific information, usually the context in which an event occurred. For more information, see the Event Context Information article in the overview section.

Methods

Name Description
Add Add a value associated to the specified key name.
Clear Removes all objects from the map.
Insert Insert a name value pair into the name value map with specified location.
Remove Removes the specified object from the map.

Properties

Name Description
Count Property that returns the count of name - value pairs in the map.
Item Gets the value at the specified index number or key name.
Name Property that returns the name associated with the specified integer index.
Value Gets and sets the value of the item associated with the specified name. If the item with the specified name does not exist, it is added to the map.

Accessed From

AssemblyDocument.GetSelectedObject, ControlDefinitionEvents.FireOnCommandInputs, ControlDefinitionEvents.OnCommandInputs, DSValueGraph.GetSegmentInterpolationType, FileDialog.OptionValues, FileManager.GetRevitEngineInstallationStatus, OnFaceCurve.Faces, OnFaceCurveProxy.Faces, PartDocument.GetSelectedObject, PartsListFilterItem.Options, RigidBodyJoint.GetJointData, SurfaceBodyDefinition.CreateTransientSurfaceBody, TransientObjects.CreateNameValueMap

Samples

Name Description
Creation a balloon This sample demonstrates the creation of a balloon.
Open a Catia file using the Catia Translator Sample This sample demonstrates how open an Catia file using the Catia translator add-in.
Open an NX file suing the NX Translator Sample This sample demonstrates how open an NX file using the NX translator add-in.
Open Rhino Translator Sample This sample demonstrates how to opening a Rhino file using the Rhino translator add-in.
Open an STL file using the STL Translator Sample This sample demonstrates how open an STL file using the STL translator add-in.
Create assembly occurrence with representations This sample demonstrates how to create an assembly occurrence by specifying various representations.
Save as DWF Translator Sample This sample demonstrates how to save a DWF file using the DWF translator add-in.
Save as DWG Translator Sample This sample demonstrates how to save a DWG file using the DWG translator add-in.
Save as DXF Translator Sample This sample demonstrates how to save a DXF file using the DXF translator add-in.
Save as IGES Translator Sample This sample demonstrates how to save a IGES file using the IGES translator add-in.
Save as PDF Translator Sample This sample demonstrates how to save a PDF file using the PDF translator add-in.
Save as STEP Translator Sample This sample demonstrates how to save a STEP file using the STEP translator add-in.
Transient solid body creation The following sample demonstrates the creation of a transient solid block body. The newly created body is then displayed using client graphics in a part.
Transient surface body creation The following sample demonstrates the creation of a transient surface body consisting of a single rectangular face. The body is created in transient space and then copied over to a part document as a base feature.
Export to DWF This sample demonstrates publishing of Inventor files in DWF format.
Export to DWG This sample uses the DWG Translator Addin to publish to DWG.
Export to DXF This sample uses the DXF Translator Addin to publish to DXF.
Export to IGES This sample demonstrates exporting of Inventor files in IGES format.
Export to STEP This sample demonstrates exporting of Inventor files in STEP format.
Export to PDF This sample demonstrates exporting of Inventor files in PDF format.

Version

Introduced in version 4

Was this information helpful?