Skip to content

Commit

Permalink
fixed BOM Object issue on check-out/in of files with associations; re…
Browse files Browse the repository at this point in the history
…move BOM in any case to avoid wrong Item BOM.
  • Loading branch information
koechlm committed Mar 13, 2023
1 parent 7976708 commit a13ae9a
Show file tree
Hide file tree
Showing 4 changed files with 1,632 additions and 149 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -258,4 +258,5 @@ paket-files/

# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
*.pyc
/Setup1/Release 2022
4 changes: 2 additions & 2 deletions Autodesk.VltInvSrv.iLogicSampleJob/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2022.0.3.2")]
[assembly: AssemblyFileVersion("2022.0.3.2")]
[assembly: AssemblyVersion("2022.0.4.0")]
[assembly: AssemblyFileVersion("2022.0.4.0")]
4 changes: 2 additions & 2 deletions Autodesk.VltInvSrv.iLogicSampleJob/iLogicJobExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -717,15 +717,15 @@ public JobOutcome Execute(IJobProcessorServices context, IJob job)
}
if(mJobCheckInResult == true && mNewFileIteration.IsCheckedOut == true)
{
// checkin new file version
// checkin new file version, note: the new file will refuse to assign/update items, as item data are removed
VDF.Currency.FilePathAbsolute vdfPath = new VDF.Currency.FilePathAbsolute(mLocalFileFullName);
FileIteration mUploadedFile = null;
try
{
if (mFileAssocParams.Count > 0)
{
mUploadedFile = mConnection.FileManager.CheckinFile(mNewFileIteration, "Created by Custom Job executing iLogic : " + mAllRulesTextWrp,
false, mFileAssocParams.ToArray(), null, true, null, mFileIteration.FileClassification, false, vdfPath);
false, mFileAssocParams.ToArray(), null, false, null, mFileIteration.FileClassification, false, vdfPath);
}
else
{
Expand Down
Loading

0 comments on commit a13ae9a

Please sign in to comment.