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: 

upgrade frustrations......

2 REPLIES 2
Reply
Message 1 of 3
NachitoMax
163 Views, 2 Replies

upgrade frustrations......

why why why do you insist on changing things that are not broken when you should really apply your time on trhings that need fixing??

 

Problem:

this worked just fine in 2013

Dim oFileLocations As FileLocations
    Set oFileLocations = ThisApplication.FileLocations

            Dim FolderPath As String
            FolderPath = oFileLocations.Workspace

            Shell "explorer.exe" & " " & FolderPath & "", vbNormalFocus

 it allowed us to open the current project folder instead of ardulously trawling through the server the get to the folder

 

in 2015, ThisApplication.FileLocations doesnt even exist! why?

 

on the other hand, Presentation files still continue to randomly remove the textures all on their own without any changes being made to assemblies or parts. 

 

fix what needs fixing, leave what works just fine.

 

Can you please direct me to the alternaive for FileLocations?

 

 

 

Thanks

 

Nacho

Automation & Design Engineer

Inventor Programmer (C#, VB.Net / iLogic)


EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


2 REPLIES 2
Message 2 of 3
pball
in reply to: NachitoMax

Your code works perfectly for me in 2015. I have a few functions that use ThisApplication.FileLocations without issue. It seems you might have another issue outside of that code.

 

 

edit:

wow my english is horrible this morning

Message 3 of 3
NachitoMax
in reply to: pball

hmmmmm i got errors on every tool at the point of declariing as FileLocation.

 

not to worry, i have created a workaround anyway by truncating the filename 🙂

 

 

 

Cheers

 

 

Nigel

Nacho

Automation & Design Engineer

Inventor Programmer (C#, VB.Net / iLogic)


EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


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

Post to forums  

Autodesk Design & Make Report