Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ilogic and vault. place and replace.

1 REPLY 1
Reply
Message 1 of 2
waynehelley
745 Views, 1 Reply

ilogic and vault. place and replace.

Hi all,

 

I currently using Inventor 2013 and rely on the following commands in ilogic;

 

Replace component-

Component.Replace("Part Name", "File name, location and extension", True)

 

Place component with iMates

oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition
Dim oOccEnumerator As ComponentOccurrencesEnumerator
oOccEnumerator = oAsmCompDef.Occurrences.AddUsingiMates("File name, location and extension", False)

 

The problem I have is if a file doesn't exist on my C drive, ilogic will error out.  I have heard mention in other threads that in Inventor 2014, Inventor will know to try and look for parts in Vault before erroring out.

 

Would anybody be able to tell me more details about this??  Is it just for the 'Replace' command or is it likely to work for the 'Place component with iMates' command I use too??

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit
1 REPLY 1
Message 2 of 2
DRLTKSE
in reply to: waynehelley

" I have heard mention in other threads that in Inventor 2014, Inventor will know to try and look for parts in Vault before erroring out."

 

Did you find out if this is true?

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

Post to forums  

Autodesk Design & Make Report