command "AFG_CMD_BreakReuseMember" is not availalable within either "OnActivateCommand" or "OnPopulateFileMetadata".
This means that any automated file renaming or part number renaming cannot be done to this newly created frame member by a routine using the API.
Can this please be supported?
Dave
Envisage UK Ltd
Hi Dave,
Using the event watcher sample (C:\Users\Public\Documents\Autodesk\Inventor 2015\SDK\DeveloperTools\Tools\EventWatcher\bin\Release) I can see that you are correct that those events do not fire. However, AssemblyEvents do fire (e.g. about Occurrence getting deleted) so you might be able to find a workaround that way.
We can definitely log a wish-list item for this functionality, but not sure when it would get implemented.
I'll let you know the change-request ID here once it's logged.
Cheers,
Many thanks Adam,
Break reuse members is a Frame Generator command to break the reuse member and to rename the new member
I wish to support this in a file naming system, (you probably want to support renaming of this in Vault Pro etc. as well).
I use FileUIEvents to do the naming of files similar to this VBA script:
Private Sub fileUIEvts_OnPopulateFileMetadata(ByVal FileMetadataObjects As ObjectsEnumerator, ByVal Formulae As String, ByVal Context As NameValueMap, HandlingCode As HandlingCodeEnum)
Dim oMetaData As FileMetadata
Dim str As String
Dim comstr As String
'comstr = ThisApplication.CommandManager.ActiveCommand
'str = ThisApplication.CommandManager.ActiveCommand
If FileMetadataObjects.Count > 0 Then
For Each oMetaData In FileMetadataObjects
oMetaData.FileName = "asdk_" & oMetaData.FileName
oMetaData.FileNameOverridden = True
Next oMetaData
HandlingCode = kEventHandled
End If
End Sub
Can I request that you ask for a change request ID for "AFG_CMD_BreakReuseMember" (which I believe is the correct command name for this) so that it is supported by OnPopulateFileMetadata.
A bonus would be to support the command through OnActivateCommand" as well.
I should then be able to rename the newly created frame member, and you guys could with Vault Pro as well.
Many thanks,
Dave W
Envisage UK Ltd
Hi,
see also Inventor 2015 Beta Forum:
Best regards
Detlef