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: 

Delete Translation report

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
CadUser46
584 Views, 3 Replies

Delete Translation report

We have loads of imported files that have the translation report in the model browser under the 3rd Party browser node.  I'd like to delete it while doing some other housekeeping tasks but so far i cant figure out how this is done.  Trying to delete the browser nodes results in an error.  Any clues?

 

Cheers

 

Craig

 


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------------------------------------------------------------------------------------------------------------------------
Inventor 2010 Certified Professional
Currently using 2023 Pro
3 REPLIES 3
Message 2 of 4

References to the embedded translation reports are stored in the ReferencedOLEFileDescriptors collection and could be deleted using ReferencedOLEFileDescriptor.Delete method:

 

Sub Test()
    Dim oDoc As PartDocument
    Set oDoc = ThisApplication.ActiveDocument
 
    Dim oDescr As ReferencedOLEFileDescriptor
    Set oDescr = oDoc.ReferencedOLEFileDescriptors.Item(1)
    
    Debug.Print "Display name: " & oDescr.DisplayName
    oDescr.Delete
End Sub

So it could be easily included into your workflow.

Best regards,


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

Message 3 of 4

Vladimir thank you.  Works perfect.


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------------------------------------------------------------------------------------------------------------------------
Inventor 2010 Certified Professional
Currently using 2023 Pro
Message 4 of 4

Hey, 

 

This iLogc rule is exactly what i need. 

I get the following error 

 

Errror on line 3: Set instructions arren't longer supported 

Errror on line 6: Set instructions arren't longer supported 

Errror on line 8: Method argument must be in parentheses

 

I couldn't discover why the  set instruction isn't longer supported.

Anybody suggestions?

 

 

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

Post to forums  

Autodesk Design & Make Report