Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Frame generator command "break reuse member" not available in API

5 REPLIES 5
Reply
Message 1 of 6
DWhiteley
483 Views, 5 Replies

Frame generator command "break reuse member" not available in API

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

5 REPLIES 5
Message 2 of 6
adam.nagy
in reply to: DWhiteley

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, 



Adam Nagy
Autodesk Platform Services
Message 3 of 6
DWhiteley
in reply to: adam.nagy

Many thanks Adam,

 

Break reuse members  is a Frame Generator command to break the reuse member and to rename the new member

 

breakmemebr.png

 

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

Message 4 of 6
adam.nagy
in reply to: DWhiteley

Hi Dave,

 

Logged it with ID 32652.

 

Cheers,



Adam Nagy
Autodesk Platform Services
Message 5 of 6
DWhiteley
in reply to: DWhiteley

Nice one!



Thanks Adam.



Regards



Dave






Dave Whiteley

Technical Director



Tel 01656 662414

Fax 01656 662415





E-mail dave@envisageuk.com

Webwww.envisageuk.com



Description: Description: Description:cid:image001.jpg@01CE39DB.28DC4B70Description: Description: Description:
cid:image002.jpg@01CE39DB.28DC4B70


Description: Description: Description:Description: Description: Description: Description: Description:
Description: http://www.envisageuk.com/images/blogspotlogo.jpg
aq=f&aqi=&aql=&gs_l=youtube.3...53014.55175.0.55331.13.12.0.1.1.0.79.818.12.
12.0...0.0.TEN-Z0WbvI0> Description: Description: Description: Description:
Description: Description: Description: cid:image002.jpg@01CD34DE.99949CD0
Description: Description: Description:
Description: Description: Description: Description: Description:
Description: Description: Description: Description: Description:
cid:image002.png@01CD1C96.A4B219E0
Description: Description: Description: Description: Description:
Description: cid:image004.jpg@01CD34E9.BDA7AF80



Envisage UK Limited, Avon Court, Cowbridge Road, Bridgend, Mid Glamorgan,
CF31 3SR

Company Registration: 2962716



P Save a tree...please don't print this e-mail unless you really need to



This e-mail transmission is intended only for the use of the individual or
entity named above and may contain information that is confidential,
privileged, and exempt from disclosure under applicable law.

If you are not the intended recipient, you are hereby notified that any
disclosure, copying, distribution, or use of any of the information
contained in this transmission is strictly PROHIBITED.

If you have received this transmission in error, please immediately notify
me by e-mail at the above address. Thank you.
Message 6 of 6
detlef_ballack
in reply to: DWhiteley

Hi,

see also Inventor 2015 Beta Forum:

Best regards

Detlef

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report