How to add a new assembly and children to vault 2024?

massimomgrs13
Contributor
Contributor

How to add a new assembly and children to vault 2024?

massimomgrs13
Contributor
Contributor

Hello,

 

in c# how to add a new assembly from workingfolder to vault basic using VDF?

 

thanks for info.

best regards

 

 

 

 

0 Likes
Reply
Accepted solutions (1)
331 Views
2 Replies
Replies (2)

Markus.Koechl
Autodesk
Autodesk
Accepted solution

We recommend doing this through the CAD application; for example, the Inventor command manager API allows you to call the check-in all command. It is a default iLogic snippet in Inventor-Vault 2024 Vault Pro and newer versions. For Vault Basic, you can call it also if you use this code (instead of the iLogic delivered snippet:

Try
			ThisDoc.Save
			Dim oControlDef As Inventor.ControlDefinition
			oControlDef = ThisApplication.CommandManager.ControlDefinitions.Item("VaultCheckinTop")
			oControlDef.Execute2(True)
		Catch ex As Exception
			Logger.Error("Undo Check-In failed; likely, the file wasn't checked out.")
		End Try

 



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe

massimomgrs13
Contributor
Contributor
Hello Markus, thanks for the info. regards
0 Likes