Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

How do I find the value names for a NameValueMap in VBA?

Status
Not open for further replies.

mojojojo69

Marine/Ocean
Mar 7, 2006
23
0
0
US
I'm trying to decipher the code to translate an Iges file.

Dim oOptions As NameValueMap
Set oOptions = ThisApplication.TransientObjects.CreateNameValueMap
If oIGESTranslator.HasSaveCopyAsOptions(ThisApplication.ActiveDocument, oContext, oOptions) Then
' Set geometry type for wireframe.
' 0 = Surfaces, 1 = Solids, 2 = Wireframe

oOptions.Value("GeometryType") = 1

The problem I have is how do find out that "GeometryType" corresponds to the option "Output Solids As". How do I find the NameValueMap value ID for "tolerance" and "include sketches"? I've been looking everywhere I can in the help, but to no end.
 
Replies continue below

Recommended for you

For those with a similar problem I found that the issue is the layout and mindset of help. For finding the options for NameValueMap looking up NameValueMap.Value gets you a bunch of examples. However what you need is to do is search for TranslatorAddIn>Remarks,Translator Options using Index or search with "Search titles only" for Translator Options.

While this may not help directly for future searches it does (I think) help w/ the mindset toward finding things.
 
Status
Not open for further replies.
Back
Top