Projekt neu angelegt.
This commit is contained in:
commit
e2fdcbf29a
32
.gitignore
vendored
Normal file
32
.gitignore
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
|
||||
#Ignore thumbnails created by Windows
|
||||
Thumbs.db
|
||||
#Ignore files built by Visual Studio
|
||||
*.obj
|
||||
*.exe
|
||||
*.pdb
|
||||
*.user
|
||||
*.aps
|
||||
*.pch
|
||||
*.vspscc
|
||||
*_i.c
|
||||
*_p.c
|
||||
*.ncb
|
||||
*.suo
|
||||
*.tlb
|
||||
*.tlh
|
||||
*.bak
|
||||
*.cache
|
||||
*.ilk
|
||||
*.log
|
||||
[Bb]in
|
||||
[Dd]ebug*/
|
||||
*.lib
|
||||
*.sbr
|
||||
obj/
|
||||
[Rr]elease*/
|
||||
_ReSharper*/
|
||||
[Tt]est[Rr]esult*
|
||||
.vs/
|
||||
#Nuget packages folder
|
||||
packages/
|
||||
25
NXOpen_CS_Wizard1/NXOpen_CS_Wizard1.sln
Normal file
25
NXOpen_CS_Wizard1/NXOpen_CS_Wizard1.sln
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.28307.572
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NXOpen_CS_Wizard1", "NXOpen_CS_Wizard1\NXOpen_CS_Wizard1.csproj", "{187C3625-C4FE-4289-8F0E-EC21550B248D}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Release|x64 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{187C3625-C4FE-4289-8F0E-EC21550B248D}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{187C3625-C4FE-4289-8F0E-EC21550B248D}.Debug|x64.Build.0 = Debug|x64
|
||||
{187C3625-C4FE-4289-8F0E-EC21550B248D}.Release|x64.ActiveCfg = Release|x64
|
||||
{187C3625-C4FE-4289-8F0E-EC21550B248D}.Release|x64.Build.0 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {458A3DAF-104D-4BF5-AEEB-939EA59D0339}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
71
NXOpen_CS_Wizard1/NXOpen_CS_Wizard1/NXOpen_CS_Wizard1.csproj
Normal file
71
NXOpen_CS_Wizard1/NXOpen_CS_Wizard1/NXOpen_CS_Wizard1.csproj
Normal file
@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">x64</Platform>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>NXOpen_CS_Wizard1</RootNamespace>
|
||||
<AssemblyName>$(PROJECT_NAME)</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<ProjectGuid>{187C3625-C4FE-4289-8F0E-EC21550B248D}</ProjectGuid>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="NXOpen, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>$(UGII_BASE_DIR)\nxbin\managed\NXOpen.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="NXOpen.UF, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>$(UGII_BASE_DIR)\nxbin\managed\NXOpen.UF.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="NXOpen.Utilities, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>$(UGII_BASE_DIR)\nxbin\managed\NXOpen.Utilities.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="NXOpenUI, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>$(UGII_BASE_DIR)\nxbin\managed\NXOpenUI.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="ReadMe.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
88
NXOpen_CS_Wizard1/NXOpen_CS_Wizard1/Program.cs
Normal file
88
NXOpen_CS_Wizard1/NXOpen_CS_Wizard1/Program.cs
Normal file
@ -0,0 +1,88 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using NXOpen;
|
||||
using NXOpen.UF;
|
||||
|
||||
public class Program
|
||||
{
|
||||
// class members
|
||||
private static Session theSession;
|
||||
private static UFSession theUfSession;
|
||||
public static Program theProgram;
|
||||
public static bool isDisposeCalled;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Constructor
|
||||
//------------------------------------------------------------------------------
|
||||
public Program()
|
||||
{
|
||||
try
|
||||
{
|
||||
theSession = Session.GetSession();
|
||||
theUfSession = UFSession.GetUFSession();
|
||||
isDisposeCalled = false;
|
||||
}
|
||||
catch (NXOpen.NXException ex)
|
||||
{
|
||||
// ---- Enter your exception handling code here -----
|
||||
// UI.GetUI().NXMessageBox.Show("Message", NXMessageBox.DialogType.Error, ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Explicit Activation
|
||||
// This entry point is used to activate the application explicitly
|
||||
//------------------------------------------------------------------------------
|
||||
public static int Main(string[] args)
|
||||
{
|
||||
int retValue = 0;
|
||||
try
|
||||
{
|
||||
theProgram = new Program();
|
||||
|
||||
//TODO: Add your application code here
|
||||
|
||||
theProgram.Dispose();
|
||||
}
|
||||
catch (NXOpen.NXException ex)
|
||||
{
|
||||
// ---- Enter your exception handling code here -----
|
||||
|
||||
}
|
||||
return retValue;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Following method disposes all the class members
|
||||
//------------------------------------------------------------------------------
|
||||
public void Dispose()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (isDisposeCalled == false)
|
||||
{
|
||||
//TODO: Add your application code here
|
||||
}
|
||||
isDisposeCalled = true;
|
||||
}
|
||||
catch (NXOpen.NXException ex)
|
||||
{
|
||||
// ---- Enter your exception handling code here -----
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public static int GetUnloadOption(string arg)
|
||||
{
|
||||
//Unloads the image explicitly, via an unload dialog
|
||||
//return System.Convert.ToInt32(Session.LibraryUnloadOption.Explicitly);
|
||||
|
||||
//Unloads the image immediately after execution within NX
|
||||
// return System.Convert.ToInt32(Session.LibraryUnloadOption.Immediately);
|
||||
|
||||
//Unloads the image when the NX session terminates
|
||||
return System.Convert.ToInt32(Session.LibraryUnloadOption.AtTermination);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
103
NXOpen_CS_Wizard1/NXOpen_CS_Wizard1/ReadMe.txt
Normal file
103
NXOpen_CS_Wizard1/NXOpen_CS_Wizard1/ReadMe.txt
Normal file
@ -0,0 +1,103 @@
|
||||
========================================================================
|
||||
NX_OPEN : NXOpen_CS_Wizard1 Project Overview
|
||||
========================================================================
|
||||
|
||||
NX12 Open C# Wizard has created this NXOpen_CS_Wizard1 project for you as a starting point.
|
||||
|
||||
This file contains a summary of what you will find in each of the files that make up your project.
|
||||
|
||||
NXOpen_CS_Wizard1.vbproj
|
||||
This is the main project file for projects generated using an Application Wizard.
|
||||
It contains information about the version of the product that generated the file, and
|
||||
information about the platforms, configurations, and project features selected with the
|
||||
Application Wizard.
|
||||
|
||||
Executing User Exit Functions
|
||||
-----------------------------
|
||||
|
||||
For execution of each user exit, corresponding Environment Variable need to be set with the full path
|
||||
of the dll.
|
||||
|
||||
The following environment variables are used to point to user exit executables.
|
||||
Alternatively a single Environment Variable USER_DEFAULT can be set for all the Entry point.
|
||||
|
||||
User Exit Environment Variable Entry Point
|
||||
|
||||
Open Part USER_RETRIEVE ufget
|
||||
|
||||
New Part USER_CREATE ufcre
|
||||
|
||||
Save Part USER_FILE ufput
|
||||
|
||||
Save Part As USER_SAVEAS ufsvas
|
||||
|
||||
Import Part USER_MERGE ufmrg
|
||||
|
||||
Execute GRIP Program USER_GRIP ufgrp
|
||||
|
||||
Add Existing Part USER_RCOMP ufrcp
|
||||
|
||||
Export Part USER_FCOMP uffcp
|
||||
|
||||
Component Where-used USER_WHERE_USED ufusd
|
||||
|
||||
Plot File USER_PLOT ufplt
|
||||
|
||||
2D Analysis Using
|
||||
Curves USER_AREAPROPCRV uf2da
|
||||
|
||||
User Defined Symbols USER_UDSYMBOL ufuds
|
||||
|
||||
Open CLSF USER_CLS_OPEN ufclso
|
||||
|
||||
Save CLSF USER_CLS_SAVE ufclss
|
||||
|
||||
Rename CLSF USER_CLS_RENAME ufclsr
|
||||
|
||||
Generate CLF USER_CL_GEN ufclg
|
||||
|
||||
Postprocess CLSF USER_POST ufpost
|
||||
|
||||
Create Component USER_CCOMP ufccp
|
||||
|
||||
Change Displayed Part USER_CDISP ufcdp
|
||||
|
||||
Change Work Part USER_CWORK ufcwp
|
||||
|
||||
Remove Component USER_DCOMP ufdcp
|
||||
|
||||
Reposition Component USER_MCOMP ufmcp
|
||||
|
||||
Substitute Component
|
||||
Out USER_SCOMP1 ufscpo
|
||||
|
||||
Substitute Component In USER_SCOMP2 ufscpi
|
||||
|
||||
Open Spreadsheet USER_SPRD_OPN ufspop
|
||||
|
||||
Close Spreadsheet USER_SPRD_CLO ufspcl
|
||||
|
||||
Update Spreadsheet USER_SPRD_UPD ufspup
|
||||
|
||||
Finish Updating
|
||||
Spreadsheet USER_SPRD_UPF ufspuf
|
||||
|
||||
Replace Reference Set USER_RRSET ufrrs
|
||||
|
||||
Rename Component USER_NCOMP ufncp
|
||||
|
||||
NX Startup USER_STARTUP ufsta
|
||||
|
||||
Access Genius Library
|
||||
Management System USER_GENIUS ufgen
|
||||
|
||||
Execute Debug GRIP USER_GRIPDEBUG ufgrpd
|
||||
|
||||
Execute User Function USER_UFUN ufufun
|
||||
|
||||
Initialize new operation
|
||||
Re-initialize an
|
||||
existing operation USER_CREATE_OPER ufnopr
|
||||
|
||||
CAM Startup USER_CAM_STARTUP ufcams
|
||||
|
||||
Loading…
Reference in New Issue
Block a user