<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Modify default values in dialog boxes in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3623644#M134404</link>
    <description>&lt;P&gt;When you create a new Frame Generator assembly, you have a dialog box with Frame name, Path to frame file, Skeleton name, path to skeleton file. Inventor propose default values. Is there a way to automatically modify these default values ? For example, instead Inventor propose "New Frame file name&amp;nbsp;= Frame0001.iam", I want a custom calculated file name. Is it possible ?&lt;/P&gt;</description>
    <pubDate>Tue, 18 Sep 2012 09:23:13 GMT</pubDate>
    <dc:creator>TONELLAL</dc:creator>
    <dc:date>2012-09-18T09:23:13Z</dc:date>
    <item>
      <title>Modify default values in dialog boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3623644#M134404</link>
      <description>&lt;P&gt;When you create a new Frame Generator assembly, you have a dialog box with Frame name, Path to frame file, Skeleton name, path to skeleton file. Inventor propose default values. Is there a way to automatically modify these default values ? For example, instead Inventor propose "New Frame file name&amp;nbsp;= Frame0001.iam", I want a custom calculated file name. Is it possible ?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2012 09:23:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3623644#M134404</guid>
      <dc:creator>TONELLAL</dc:creator>
      <dc:date>2012-09-18T09:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Modify default values in dialog boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3628652#M134405</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The event FileUIEvents.OnPopulateFileMetadata provides you to suggest the name when&amp;nbsp;file names and properties are being generated by a command. Hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Class1 code: 
Option Explicit 

Private WithEvents fileUIEvts As FileUIEvents 

Private Sub Class_Initialize() 
   Set fileUIEvts = ThisApplication.FileUIEvents 
End Sub 

Private Sub Class_Terminate() 
   Set fileUIEvts = Nothing 
End Sub 

Private Sub fileUIEvts_OnPopulateFileMetadata(ByVal FileMetadataObjects As ObjectsEnumerator, ByVal Formulae As String, ByVal Context As NameValueMap, HandlingCode As HandlingCodeEnum) 
   Dim oMetaData As FileMetadata 
   If FileMetadataObjects.Count 0 Then 
   For Each oMetaData In FileMetadataObjects 
          oMetaData.FileName = "asdk_" &amp;amp; oMetaData.FileName 
         oMetaData.FileNameOverridden = True 
   Next oMetaData 
   HandlingCode = kEventHandled 
  End If 
End Sub 

Module code: 
Private cls As Class1 

Sub startcmd() 
Set cls = New Class1 
End Sub 

Sub Endcmd() 
Set cls = Nothing 
End Sub 
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2012 04:04:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3628652#M134405</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2012-09-21T04:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Modify default values in dialog boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3628782#M134406</link>
      <description>&lt;P&gt;This seems to be what I'm looking for !&lt;/P&gt;&lt;P&gt;But I'm not really a programmer, so it is difficult for me to use it . Do you have a more detailed example, where you effectively modify dialog box values ?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2012 07:58:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3628782#M134406</guid>
      <dc:creator>TONELLAL</dc:creator>
      <dc:date>2012-09-21T07:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Modify default values in dialog boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3628874#M134407</link>
      <description>&lt;P&gt;I finally found how to use it, but :&lt;/P&gt;&lt;P&gt;-how can I use Context ? I think it is used to know why the event fired, but Its value is always 0.&lt;/P&gt;&lt;P&gt;-what is the format and how function Formulae ?&lt;/P&gt;&lt;P&gt;-if I have a dialog box with several FileMetaData objects (for example when using Frame generator : in the same dialog box, you have the skeleton properties (name/path) and the frame properties (name/path)) . How can I make the difference ?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2012 10:05:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3628874#M134407</guid>
      <dc:creator>TONELLAL</dc:creator>
      <dc:date>2012-09-21T10:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Modify default values in dialog boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3632212#M134408</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Context:&amp;nbsp; you have the correct understanding. The attachments are my test. The context tells why the event fires. It is NOT empty&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;&lt;SPAN&gt;Formulae: from help reference, this is &amp;nbsp;an input String that specifies XML-based formulae for generating file name, display name and file properties. This can be a null string. Sorry I have not a sample at hand&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. This question is not clear to me. When FG is insterted, the event fires twice (see attached snapshots), in each, you have the chance to modify the name for FG assembly. FG skeleton and the FG element.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2012 03:55:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3632212#M134408</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2012-09-25T03:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Modify default values in dialog boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3634246#M134409</link>
      <description>&lt;P&gt;Thanks for your informations !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1-Ok, I was not watching on the right place. I suppose Context.Item(1) is the "type", and Context.Item(2) is the "sub-type" ?&lt;/P&gt;&lt;P&gt;2-Formulae : I read the help, do you know if I can found more information about this ?&lt;/P&gt;&lt;P&gt;3-Effectively, using Context.item I can diffrentiate&amp;nbsp;FG assembly, FG skeleton and the FG element, and modify name/path. So it is ok for FG. But what about Piping ? In this case, I have a similar dialog box with name/path for the piping and for the routing, but Context is empty. The event is yet fired twice (see screen shots).&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2012 10:27:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3634246#M134409</guid>
      <dc:creator>TONELLAL</dc:creator>
      <dc:date>2012-09-26T10:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Modify default values in dialog boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3636390#M134410</link>
      <description>&lt;P&gt;Hello Tonellal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to share the working code? because I can't get the sample given above working properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it actually possible to use the same principle to populate differnt fields in different commands?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2012 11:14:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3636390#M134410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-27T11:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Modify default values in dialog boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3636456#M134411</link>
      <description>&lt;P&gt;Here is the code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'in module&lt;/P&gt;&lt;P&gt;Private Sub startcmd()&lt;/P&gt;&lt;P&gt;Dim dd&lt;/P&gt;&lt;P&gt;Set cls = New Class2&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'in "Class2" class module&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Private Sub fileUIEvts_OnPopulateFileMetadata(ByVal FileMetadataObjects As ObjectsEnumerator, ByVal Formulae As String, ByVal Context As NameValueMap, HandlingCode As HandlingCodeEnum)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Dim oMetaData As FileMetadata&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Dim str As String&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; str = ThisApplication.CommandManager.ActiveCommand &lt;FONT color="#ff0000"&gt;'Put here a breakpoint to watch Context&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; If FileMetadataObjects.Count &amp;gt; 0 Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; For Each oMetaData In FileMetadataObjects&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oMetaData.FileName = "FG filename" &amp;amp; oMetaData.FileName&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oMetaData.FullFileName = "FG fullfilename"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oMetaData.FileNameOverridden = True&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Next oMetaData&lt;BR /&gt;&amp;nbsp;&amp;nbsp; HandlingCode = kEventHandled&lt;BR /&gt;&amp;nbsp; End If&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1/ You use the command "Insert a profile" :&lt;/P&gt;&lt;P&gt;-in the FG dialog box, select the profile and place it&lt;/P&gt;&lt;P&gt;-when you "Apply" or "OK", you stop on the breakpoint, so you ca watch Context, wich contains Item 1 = "Frame Generator" and item 2 = "Frame".&lt;/P&gt;&lt;P&gt;-the event fire several times, you can know why by testing Item 2 : frame, skeleton or member, then for each&amp;nbsp;set values for oMetadata.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2/ You use the command "Create a piping route" :&lt;/P&gt;&lt;P&gt;-the event fire, so you stop on the breakpoint. Problem : Context = 0 !! So, how can you know if you are on the Piping assembly, or on the piping route ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2012 12:03:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3636456#M134411</guid>
      <dc:creator>TONELLAL</dc:creator>
      <dc:date>2012-09-27T12:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Modify default values in dialog boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3653440#M134412</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hum...sorry, it is also true to me the context is empty for Pipe/Cable. But we have way to know if the current assembly is pipe.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;By using the respective GUID for the ADD-In, it&amp;#146;s possible to determine the type of document. Following are GUID for the Cable and Harness, Tube and Piping ,Frame Generator and Design Accelator Add-in&amp;#146;s. Using these GUID in the DocumentInterests.HasInterest property, we can determine the type of the document.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'Cable &amp;amp; Harness routing - {C6107C9D-C53F-4323-8768-F65F857F9F5A}&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Tube &amp;amp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Pipe&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;routing - {4D39D5F1-0985-4783-AA5A-FC16C288418C}&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Autodesk Frame Generator Add-in - {AC211AE0-A7A5-4589-916D-81C529DA6D17}&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Design Accelerator Add-in - {BB8FE430-83BF-418D-8DF9-9B323D3DB9B9}&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub DocHasInteres()&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim odocints As DocumentInterests&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set odocints = ThisApplication.ActiveDocument.DocumentInterests&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim hasinterest As Boolean&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Check for Tube and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Pipe&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;routing&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;hasinterest = odocints.hasinterest("{4D39D5F1-0985-4783-AA5A-FC16C288418C}")&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If hasinterest Then&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim odocint As&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DocumentInterest&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For Each odocint In odocints&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Will be FrameDoc for the frame document&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Debug.Print odocint.Name&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Next&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2012 10:32:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3653440#M134412</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2012-10-10T10:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Modify default values in dialog boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3655464#M134413</link>
      <description>&lt;P&gt;Ok, this indicate if the active document use a particular add-in. But I don't understand how I can use this to know, when there is a OnPopulateFileMetadata event, that this event come from this add-in ?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2012 13:33:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3655464#M134413</guid>
      <dc:creator>TONELLAL</dc:creator>
      <dc:date>2012-10-11T13:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Modify default values in dialog boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3661010#M134414</link>
      <description>&lt;P&gt;&lt;SPAN&gt;from help doc: DocumentInterest p&lt;/SPAN&gt;rovides a means for an application to register an interest in a document. In another words, to flag the document as containing application-specific data, and to set the data version (for example, so Inventor can determine whether data migration is required and so fire the appropriate event).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While&amp;nbsp;&lt;SPAN&gt;OnPopulateFileMetadata is just an event when&amp;nbsp;file names and properties are being generated.&amp;nbsp;&lt;SPAN&gt;So, you should be able to use it anytime.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2012 10:16:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/3661010#M134414</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2012-10-16T10:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Modify default values in dialog boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/6986132#M134415</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will you please help me out with frame generator default values.&lt;/P&gt;&lt;P&gt;I have create an ilogic rule that opens an assembly file asks you for a part number to save it. Then adds a part into the assembly as a phantom part and with the same part number as the assembly.&lt;/P&gt;&lt;P&gt;Then when we enter frame parts I want the create new frame dialog box to default to Frame &amp;amp; part number and also the skeleton &amp;amp; part number.&lt;/P&gt;&lt;P&gt;Then if possible when placing the member if the filename of the members can default to part number &amp;amp; 001,002 etc.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fg dialog box.JPG" style="width: 634px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/339640i679F27A111DC88A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="fg dialog box.JPG" alt="fg dialog box.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fg dialog box2.JPG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/339641iB324214511C0DC1F/image-size/large?v=v2&amp;amp;px=999" role="button" title="fg dialog box2.JPG" alt="fg dialog box2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 00:07:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/6986132#M134415</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-31T00:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Modify default values in dialog boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/6986725#M134416</link>
      <description>&lt;P&gt;Hi Tony,&lt;/P&gt;
&lt;P&gt;I use&amp;nbsp;fileUIEvts_OnPopulateFileMetadata to detect if you are creating aFrame iam or inserting a Frame member. I see you are able to modify &amp;nbsp;frame and skeleton name, it is the same thing for frrame member name : with context(1) you detect if &amp;nbsp;you are in FG, if yes with context(2) you detect if you are creating frame/skeleton or inserting a member.&lt;/P&gt;
&lt;P&gt;I think what your are searching is in bold :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Private Sub fileUIEvts_OnPopulateFileMetadata(ByVal FileMetadataObjects As ObjectsEnumerator, ByVal Formulae As String, ByVal Context As NameValueMap, HandlingCode As HandlingCodeEnum)
'Modifie les noms des fichiers Frame, Squelette et des membres FG, en fonction de ce qui est défini dans le formulaire Form_Renommage_FG_Actif_Inactif

Dim oMetaData As FileMetadata
Dim NomProjet As String
Dim NomStruct As String
Dim NomSousEnsemble As String
Dim Increment As String
Dim newFilename As String
Dim SplitFilename() As String
Dim NumFer As String
Dim i 'As Integer

If Context.Count &amp;lt;&amp;gt; 0 Then
    If Context.item(1) = "Frame Generator" Then 'If context is FG
        
        HandlingCode = kEventHandled

        Select Case Context.item(2)
            Case "Frame, Skeleton" 'Frame and Skeleton treatment
                'FG iam name
                Set oMetaData = FileMetadataObjects.item(1)
                oMetaData.DisplayName = .....
                oMetaData.FileName = .....

                'Skeleton name
                Set oMetaData = FileMetadataObjects.item(2)
                oMetaData.FileName = .....

            &lt;STRONG&gt;Case "Frame Member" 'Frame member treatment
                For Each oMetaData In FileMetadataObjects
                    newFilename = ""
                    SplitFilename = Split(oMetaData.FileName, " ")
                   
                    'Get only the last 3 digits from the default name
                    NumFer = Right(SplitFilename(UBound(SplitFilename)), 3)
    
                   'Get here the part number from your phantom part
                    PartNumber = .....

                   'Create the new filename
                    newFilename =PartNumber &amp;amp; NumFer
    
                    oMetaData.DisplayName = newFilename
                    oMetaData.FileName = newFilename
                Next oMetaData
        End Select&lt;/STRONG&gt;

    End If
End If

End Sub&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Mar 2017 09:04:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/6986725#M134416</guid>
      <dc:creator>TONELLAL</dc:creator>
      <dc:date>2017-03-31T09:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Modify default values in dialog boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/7060313#M134417</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not that good in VBA can you help me a bit further.&lt;/P&gt;&lt;P&gt;If you edit the code so that it works I could probably then work out what I need to change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 03:55:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/7060313#M134417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T03:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Modify default values in dialog boxes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/7070453#M134418</link>
      <description>&lt;P&gt;I have it working exactly as I wanted it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 22:35:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-default-values-in-dialog-boxes/m-p/7070453#M134418</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-08T22:35:26Z</dc:date>
    </item>
  </channel>
</rss>

