Skip to content

Commit 78ebf9c

Browse files
committed
File upload added
1 parent b8f143c commit 78ebf9c

File tree

10 files changed

+12542
-5
lines changed

10 files changed

+12542
-5
lines changed

CompHoundInv/CompHoundInv.csproj

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,12 @@
8585
</Reference>
8686
<Reference Include="Microsoft.CSharp" />
8787
<Reference Include="Microsoft.VisualBasic.Compatibility" />
88-
<Reference Include="RestSharp">
89-
<HintPath>lib\RestSharp.dll</HintPath>
88+
<Reference Include="Newtonsoft.Json">
89+
<HintPath>..\packages\Newtonsoft.Json.7.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
90+
</Reference>
91+
<Reference Include="RestSharp, Version=105.2.3.0, Culture=neutral, processorArchitecture=MSIL">
92+
<SpecificVersion>False</SpecificVersion>
93+
<HintPath>..\packages\RestSharp.105.2.3\lib\net45\RestSharp.dll</HintPath>
9094
</Reference>
9195
<Reference Include="stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
9296
<SpecificVersion>False</SpecificVersion>
@@ -97,13 +101,16 @@
97101
<Name>System</Name>
98102
</Reference>
99103
<Reference Include="System.Drawing" />
104+
<Reference Include="System.Web" />
100105
<Reference Include="System.Windows.Forms" />
101106
</ItemGroup>
102107
<ItemGroup>
103108
<Compile Include="AssemblyInfo.cs">
104109
<SubType>Code</SubType>
105110
</Compile>
106111
<Compile Include="InstanceData.cs" />
112+
<Compile Include="MultiFileUploader\MultiFileUploader-Models.cs" />
113+
<Compile Include="MultiFileUploader\MultiFileUploader-Util.cs" />
107114
<Compile Include="StandardAddInServer.cs">
108115
<SubType>Code</SubType>
109116
</Compile>
@@ -116,6 +123,7 @@
116123
<None Include="Autodesk.CompHoundInv.Inventor.addin" />
117124
</ItemGroup>
118125
<ItemGroup>
126+
<None Include="packages.config" />
119127
<None Include="Readme.txt" />
120128
</ItemGroup>
121129
<ItemGroup>

CompHoundInv/InstanceData.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public InstanceData(
4141
AssemblyDocument asm = occ.ContextDefinition.Document as AssemblyDocument;
4242

4343
// occurrences have no unique ID, only documents have
44-
// let's create it based on doc ID + component index
45-
string internalName = doc.InternalName + "-" + index.ToString(); // Returns GUID
44+
// let's create it based on the top assembly doc ID + component index
45+
string internalName = asm.InternalName + "-" + index.ToString(); // Returns GUID + index
4646
Debug.Print(internalName);
4747

4848
Vector pos = occ.Transformation.Translation;
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
6+
namespace MultiFileUploader.Models
7+
{
8+
public class AccessToken
9+
{
10+
public string token_type { get; set; }
11+
public int expires_in { get; set; }
12+
public string access_token { get; set; }
13+
}
14+
15+
public class ServicesAllowed
16+
{
17+
public string serviceId { get; set; }
18+
public string access { get; set; }
19+
}
20+
21+
public class BucketDetails
22+
{
23+
public string key { get; set; }
24+
public string owner { get; set; }
25+
public DateTime createdDate { get; set; }
26+
public List<ServicesAllowed> permissions { get; set; }
27+
public string policy { get; set; }
28+
}
29+
30+
public class BubbleStatus
31+
{
32+
public string guid { get; set; }
33+
public string type { get; set; }
34+
public string hasThumbnail { get; set; }
35+
public string progress { get; set; }
36+
public string startedAt { get; set; }
37+
public string status { get; set; }
38+
public string success { get; set; }
39+
public string urn { get; set; }
40+
}
41+
}

0 commit comments

Comments
 (0)