Add
Overloads
| Name | Description |
|---|---|
| Add(List<string> files) | Add Models |
| Add(List<string> files, string password) | Add Files |
| Add(List<string> files, bool updateData) | Add Models |
[Add(List<string> files, Dictionary2& addedNodes)](#addliststring-files-dictionary2&-addednodes) | Add Models |
[Add(List<string> files, Dictionary2& addedNodes, bool updateData)](#addliststring-files-dictionary2&-addednodes-bool-updatedata) | Add Models |
| Add(string[] files) | Add Models |
| Add(string[] files, string password) | Add Files |
| Add(string[] files, bool updateData) | Add Models |
[Add(string[] files, Dictionary2& addedNodes)](#addstring[]-files-dictionary2&-addednodes) | Add Models |
[Add(string[] files, Dictionary2& addedNodes, bool updateData)](#addstring[]-files-dictionary2&-addednodes-bool-updatedata) | Add Models |
Add(List<string> files)
public bool Add(List<string> files)
Add Models
Parameters
| Name | Type | Description |
|---|---|---|
| files | List<string> | Model Files |
Returns
| Type | Description |
|---|---|
| bool | True : Sucess / False : Fail |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void AddFile()
{
List<string> files = new List<string>();
files.Add("C:\\Model\\100.viz");
files.Add("C:\\Model\\101.viz");
files.Add("C:\\Model\\102.viz");
files.Add("C:\\Model\\103.viz");
files.Add("C:\\Model\\104.viz");
vizcore3d.Model.Add(files);
}
Add(List<string> files, string password)
public bool Add(List<string> files, string password)
Add Files
Parameters
| Name | Type | Description |
|---|---|---|
| files | List<string> | File List |
| password | string | Password |
Returns
| Type | Description |
|---|---|
| bool | Return |
Add(List<string> files, bool updateData)
public bool Add(List<string> files, bool updateData)
Add Models
Parameters
| Name | Type | Description |
|---|---|---|
| files | List<string> | Model Files |
| updateData | bool | Update Data |
Returns
| Type | Description |
|---|---|
| bool | Result |
Add(List<string> files, Dictionary`2& addedNodes)
public bool Add(List<string> files, Dictionary`2& addedNodes)
Add Models
Parameters
| Name | Type | Description |
|---|---|---|
| files | List<string> | Model Files |
| addedNodes | [Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2[[system.string, mscorlib, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089],[vizcore3d.net.data.node, vizcore3d..net, version=1.0.26.325, culture=neutral, publickeytoken=null]]&) | Added Nodes - Key (FileName) / Value (Node) |
Returns
| Type | Description |
|---|---|
| bool | True : Sucess / False : Fail |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
if (vizcore3d.Model.IsOpen() == false) return;
List<string> models = new List<string>();
models.Add("C:\\Model\\BLOCK1.viz");
models.Add("C:\\Model\\BLOCK2.viz");
models.Add("C:\\Model\\BLOCK3.viz");
Dictionary<string, VIZCore3D.NET.Data.Node> nodes =
new Dictionary<string, VIZCore3D.NET.Data.Node>();
bool result = vizcore3d.Model.Add(models, out nodes);
if (result == false) return;
foreach (KeyValuePair<string, VIZCore3D.NET.Data.Node> node in nodes)
{
string file = node.Key;
int index = node.Value.Index;
string name = node.Value.NodeName;
}
}
Add(List<string> files, Dictionary`2& addedNodes, bool updateData)
public bool Add(List<string> files, Dictionary`2& addedNodes, bool updateData)
Add Models
Parameters
| Name | Type | Description |
|---|---|---|
| files | List<string> | Model Files |
| addedNodes | [Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2[[system.string, mscorlib, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089],[vizcore3d.net.data.node, vizcore3d..net, version=1.0.26.325, culture=neutral, publickeytoken=null]]&) | Added Nodes |
| updateData | bool | Update Data |
Returns
| Type | Description |
|---|---|
| bool | Result |
Add(string[] files)
public bool Add(string[] files)
Add Models
Parameters
| Name | Type | Description |
|---|---|---|
| files | String[] | Model Files |
Returns
| Type | Description |
|---|---|
| bool | True : Sucess / False : Fail |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
List<string> files = new List<string>();
files.Add("C:\\Model\\A.viz");
files.Add("C:\\Model\\B.viz");
files.Add("C:\\Model\\C.viz");
files.Add("C:\\Model\\D.viz");
// Case 1 : File Path
vizcore3d.Model.Add(files);
// Case 2 : File Stream
List<VIZCore3D.NET.Data.StreamData> items = new List<VIZCore3D.NET.Data.StreamData>();
foreach (string item in files)
{
VIZCore3D.NET.Data.StreamData stream = new Data.StreamData(
System.IO.File.ReadAllBytes(item)
, System.IO.Path.GetFileNameWithoutExtension(item).ToUpper()
);
items.Add(stream);
}
vizcore3d.Model.AddStream(items);
}
Add(string[] files, string password)
public bool Add(string[] files, string password)
Add Files
Parameters
| Name | Type | Description |
|---|---|---|
| files | String[] | File List |
| password | string | Password |
Returns
| Type | Description |
|---|---|
| bool | Result |
Add(string[] files, bool updateData)
public bool Add(string[] files, bool updateData)
Add Models
Parameters
| Name | Type | Description |
|---|---|---|
| files | String[] | Model Files |
| updateData | bool | Update Data |
Returns
| Type | Description |
|---|---|
| bool | Result |
Add(string[] files, Dictionary`2& addedNodes)
public bool Add(string[] files, Dictionary`2& addedNodes)
Add Models
Parameters
| Name | Type | Description |
|---|---|---|
| files | String[] | Model Files |
| addedNodes | [Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2[[system.string, mscorlib, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089],[vizcore3d.net.data.node, vizcore3d..net, version=1.0.26.325, culture=neutral, publickeytoken=null]]&) | Added Nodes - Key (FileName) / Value (Node) |
Returns
| Type | Description |
|---|---|
| bool | True : Sucess / False : Fail |
Add(string[] files, Dictionary`2& addedNodes, bool updateData)
public bool Add(string[] files, Dictionary`2& addedNodes, bool updateData)
Add Models
Parameters
| Name | Type | Description |
|---|---|---|
| files | String[] | Model Files |
| addedNodes | [Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2[[system.string, mscorlib, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089],[vizcore3d.net.data.node, vizcore3d..net, version=1.0.26.325, culture=neutral, publickeytoken=null]]&) | Added Nodes |
| updateData | bool | Update Data |
Returns
| Type | Description |
|---|---|
| bool | Result |