Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

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

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

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

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.

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

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close