Initialized
- Konvertiert eine Expressionvariable in einen Wert
This commit is contained in:
commit
23e6a5966d
BIN
.vs/ConvertExpressionInValue/v16/.suo
Normal file
BIN
.vs/ConvertExpressionInValue/v16/.suo
Normal file
Binary file not shown.
BIN
.vs/Test_ConvertExpressionInValue/v17/.suo
Normal file
BIN
.vs/Test_ConvertExpressionInValue/v17/.suo
Normal file
Binary file not shown.
25
Test_ConvertExpressionInValue.sln
Normal file
25
Test_ConvertExpressionInValue.sln
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.31729.503
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Test_ConvertExpressionInValue.git", "Test_ConvertExpressionInValue\Test_ConvertExpressionInValue.vbproj", "{3CF7CD38-5B28-4726-9A00-EF81A22991D7}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|x64 = Debug|x64
|
||||||
|
Release|x64 = Release|x64
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{3CF7CD38-5B28-4726-9A00-EF81A22991D7}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{3CF7CD38-5B28-4726-9A00-EF81A22991D7}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{3CF7CD38-5B28-4726-9A00-EF81A22991D7}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{3CF7CD38-5B28-4726-9A00-EF81A22991D7}.Release|x64.Build.0 = Release|x64
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {16377F5E-977A-4BEB-AF01-9AC5356F284D}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
13
Test_ConvertExpressionInValue/My Project/Application.Designer.vb
generated
Normal file
13
Test_ConvertExpressionInValue/My Project/Application.Designer.vb
generated
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <auto-generated>
|
||||||
|
' Dieser Code wurde von einem Tool generiert.
|
||||||
|
' Laufzeitversion:4.0.30319.42000
|
||||||
|
'
|
||||||
|
' Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||||
|
' der Code erneut generiert wird.
|
||||||
|
' </auto-generated>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
10
Test_ConvertExpressionInValue/My Project/Application.myapp
Normal file
10
Test_ConvertExpressionInValue/My Project/Application.myapp
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
|
<MySubMain>false</MySubMain>
|
||||||
|
<SingleInstance>false</SingleInstance>
|
||||||
|
<ShutdownMode>0</ShutdownMode>
|
||||||
|
<EnableVisualStyles>true</EnableVisualStyles>
|
||||||
|
<AuthenticationMode>0</AuthenticationMode>
|
||||||
|
<ApplicationType>1</ApplicationType>
|
||||||
|
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
||||||
|
</MyApplicationData>
|
||||||
35
Test_ConvertExpressionInValue/My Project/AssemblyInfo.vb
Normal file
35
Test_ConvertExpressionInValue/My Project/AssemblyInfo.vb
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
Imports System
|
||||||
|
Imports System.Reflection
|
||||||
|
Imports System.Runtime.InteropServices
|
||||||
|
|
||||||
|
' General Information about an assembly is controlled through the following
|
||||||
|
' set of attributes. Change these attribute values to modify the information
|
||||||
|
' associated with an assembly.
|
||||||
|
|
||||||
|
' Review the values of the assembly attributes
|
||||||
|
|
||||||
|
<Assembly: AssemblyTitle("ConvertExpressionInValue")>
|
||||||
|
<Assembly: AssemblyDescription("")>
|
||||||
|
<Assembly: AssemblyCompany("")>
|
||||||
|
<Assembly: AssemblyProduct("ConvertExpressionInValue")>
|
||||||
|
<Assembly: AssemblyCopyright("Copyright © 2022")>
|
||||||
|
<Assembly: AssemblyTrademark("")>
|
||||||
|
|
||||||
|
<Assembly: ComVisible(False)>
|
||||||
|
|
||||||
|
'The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
|
<Assembly: Guid("3cf7cd38-5b28-4726-9a00-ef81a22991d7")>
|
||||||
|
|
||||||
|
' Version information for an assembly consists of the following four values:
|
||||||
|
'
|
||||||
|
' Major Version
|
||||||
|
' Minor Version
|
||||||
|
' Build Number
|
||||||
|
' Revision
|
||||||
|
'
|
||||||
|
' 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("1.0.0.0")>
|
||||||
|
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
||||||
63
Test_ConvertExpressionInValue/My Project/Resources.Designer.vb
generated
Normal file
63
Test_ConvertExpressionInValue/My Project/Resources.Designer.vb
generated
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <auto-generated>
|
||||||
|
' Dieser Code wurde von einem Tool generiert.
|
||||||
|
' Laufzeitversion:4.0.30319.42000
|
||||||
|
'
|
||||||
|
' Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||||
|
' der Code erneut generiert wird.
|
||||||
|
' </auto-generated>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
|
Imports System
|
||||||
|
|
||||||
|
Namespace My.Resources
|
||||||
|
|
||||||
|
'Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
|
||||||
|
'-Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
||||||
|
'Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
||||||
|
'mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
|
||||||
|
'''<summary>
|
||||||
|
''' Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
||||||
|
'''</summary>
|
||||||
|
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0"), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
|
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
|
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
||||||
|
Friend Module Resources
|
||||||
|
|
||||||
|
Private resourceMan As Global.System.Resources.ResourceManager
|
||||||
|
|
||||||
|
Private resourceCulture As Global.System.Globalization.CultureInfo
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
||||||
|
'''</summary>
|
||||||
|
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
||||||
|
Get
|
||||||
|
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
||||||
|
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Test_ConvertExpressionInValue.Resources", GetType(Resources).Assembly)
|
||||||
|
resourceMan = temp
|
||||||
|
End If
|
||||||
|
Return resourceMan
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
|
||||||
|
''' Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
|
||||||
|
'''</summary>
|
||||||
|
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Friend Property Culture() As Global.System.Globalization.CultureInfo
|
||||||
|
Get
|
||||||
|
Return resourceCulture
|
||||||
|
End Get
|
||||||
|
Set
|
||||||
|
resourceCulture = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
End Module
|
||||||
|
End Namespace
|
||||||
117
Test_ConvertExpressionInValue/My Project/Resources.resx
Normal file
117
Test_ConvertExpressionInValue/My Project/Resources.resx
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
73
Test_ConvertExpressionInValue/My Project/Settings.Designer.vb
generated
Normal file
73
Test_ConvertExpressionInValue/My Project/Settings.Designer.vb
generated
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <auto-generated>
|
||||||
|
' Dieser Code wurde von einem Tool generiert.
|
||||||
|
' Laufzeitversion:4.0.30319.42000
|
||||||
|
'
|
||||||
|
' Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||||
|
' der Code erneut generiert wird.
|
||||||
|
' </auto-generated>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
|
|
||||||
|
Namespace My
|
||||||
|
|
||||||
|
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.1.0.0"), _
|
||||||
|
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Partial Friend NotInheritable Class MySettings
|
||||||
|
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||||
|
|
||||||
|
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
|
||||||
|
|
||||||
|
#Region "Automatische My.Settings-Speicherfunktion"
|
||||||
|
#If _MyType = "WindowsForms" Then
|
||||||
|
Private Shared addedHandler As Boolean
|
||||||
|
|
||||||
|
Private Shared addedHandlerLockObject As New Object
|
||||||
|
|
||||||
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Private Shared Sub AutoSaveSettings(sender As Global.System.Object, e As Global.System.EventArgs)
|
||||||
|
If My.Application.SaveMySettingsOnExit Then
|
||||||
|
My.Settings.Save()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
#End If
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
Public Shared ReadOnly Property [Default]() As MySettings
|
||||||
|
Get
|
||||||
|
|
||||||
|
#If _MyType = "WindowsForms" Then
|
||||||
|
If Not addedHandler Then
|
||||||
|
SyncLock addedHandlerLockObject
|
||||||
|
If Not addedHandler Then
|
||||||
|
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
||||||
|
addedHandler = True
|
||||||
|
End If
|
||||||
|
End SyncLock
|
||||||
|
End If
|
||||||
|
#End If
|
||||||
|
Return defaultInstance
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
End Class
|
||||||
|
End Namespace
|
||||||
|
|
||||||
|
Namespace My
|
||||||
|
|
||||||
|
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
|
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
||||||
|
Friend Module MySettingsProperty
|
||||||
|
|
||||||
|
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
||||||
|
Friend ReadOnly Property Settings() As Global.Test_ConvertExpressionInValue.My.MySettings
|
||||||
|
Get
|
||||||
|
Return Global.Test_ConvertExpressionInValue.My.MySettings.Default
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
End Module
|
||||||
|
End Namespace
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
|
||||||
|
<Profiles>
|
||||||
|
<Profile Name="(Default)" />
|
||||||
|
</Profiles>
|
||||||
|
<Settings />
|
||||||
|
</SettingsFile>
|
||||||
103
Test_ConvertExpressionInValue/ReadMe.txt
Normal file
103
Test_ConvertExpressionInValue/ReadMe.txt
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
========================================================================
|
||||||
|
NX_OPEN : ConvertExpressionInValue Project Overview
|
||||||
|
========================================================================
|
||||||
|
|
||||||
|
NXOpen Visual Basic Wizard has created this ConvertExpressionInValue 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.
|
||||||
|
|
||||||
|
ConvertExpressionInValue.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
|
||||||
|
|
||||||
@ -0,0 +1,49 @@
|
|||||||
|
Option Strict Off
|
||||||
|
Option Explicit On
|
||||||
|
Imports System
|
||||||
|
Imports NXOpen
|
||||||
|
Imports NXOpen.UF
|
||||||
|
Imports NXOpen.UI
|
||||||
|
Imports NXOpen.Utilities
|
||||||
|
|
||||||
|
Module ConvertExpressionToValue
|
||||||
|
Dim s As Session = Session.GetSession()
|
||||||
|
|
||||||
|
' Explicit Activation
|
||||||
|
' This entry point is used to activate the application explicitly
|
||||||
|
Sub Main()
|
||||||
|
|
||||||
|
Dim theSession As Session = Session.GetSession()
|
||||||
|
|
||||||
|
Dim theUI As UI = UI.GetUI()
|
||||||
|
|
||||||
|
Dim theUfSession As UFSession = UFSession.GetUFSession()
|
||||||
|
|
||||||
|
' TODO: Add your application code here
|
||||||
|
|
||||||
|
Dim dp As Part = s.Parts.Display
|
||||||
|
Dim exps() As Expression = dp.Expressions.ToArray()
|
||||||
|
For Each thisExp As Expression In exps
|
||||||
|
If thisExp.Type.ToString().Contains("Number") Then
|
||||||
|
dp.Expressions.Edit(thisExp, thisExp.Value().ToString())
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Function GetUnloadOption(ByVal dummy As String) As Integer
|
||||||
|
|
||||||
|
'Unloads the image when the NX session terminates
|
||||||
|
'GetUnloadOption = NXOpen.Session.LibraryUnloadOption.AtTermination
|
||||||
|
|
||||||
|
'----Other unload options-------
|
||||||
|
'Unloads the image immediately after execution within NX
|
||||||
|
GetUnloadOption = NXOpen.Session.LibraryUnloadOption.Immediately
|
||||||
|
|
||||||
|
'Unloads the image explicitly, via an unload dialog
|
||||||
|
'GetUnloadOption = NXOpen.Session.LibraryUnloadOption.Explicitly
|
||||||
|
'-------------------------------
|
||||||
|
|
||||||
|
End Function
|
||||||
|
|
||||||
|
End Module
|
||||||
@ -0,0 +1,136 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">x64</Platform>
|
||||||
|
<ProductVersion>
|
||||||
|
</ProductVersion>
|
||||||
|
<SchemaVersion>
|
||||||
|
</SchemaVersion>
|
||||||
|
<ProjectGuid>{3CF7CD38-5B28-4726-9A00-EF81A22991D7}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<RootNamespace>Test_ConvertExpressionInValue</RootNamespace>
|
||||||
|
<AssemblyName>Test_ConvertExpressionInValue</AssemblyName>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<MyType>Windows</MyType>
|
||||||
|
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<DefineDebug>true</DefineDebug>
|
||||||
|
<DefineTrace>true</DefineTrace>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DocumentationFile>Test_ConvertExpressionInValue.xml</DocumentationFile>
|
||||||
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<DefineDebug>false</DefineDebug>
|
||||||
|
<DefineTrace>true</DefineTrace>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DocumentationFile>Test_ConvertExpressionInValue.xml</DocumentationFile>
|
||||||
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionExplicit>On</OptionExplicit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionCompare>Binary</OptionCompare>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionStrict>Off</OptionStrict>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionInfer>On</OptionInfer>
|
||||||
|
</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" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Import Include="Microsoft.VisualBasic" />
|
||||||
|
<Import Include="System" />
|
||||||
|
<Import Include="System.Collections" />
|
||||||
|
<Import Include="System.Collections.Generic" />
|
||||||
|
<Import Include="System.Data" />
|
||||||
|
<Import Include="System.Diagnostics" />
|
||||||
|
<Import Include="System.Linq" />
|
||||||
|
<Import Include="System.Xml.Linq" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||||
|
<Compile Include="My Project\Application.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Application.myapp</DependentUpon>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\Resources.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\Settings.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Settings.settings</DependentUpon>
|
||||||
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Test_ConvertExpressionInValue.vb" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<EmbeddedResource Include="My Project\Resources.resx">
|
||||||
|
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
||||||
|
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</EmbeddedResource>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="My Project\Application.myapp">
|
||||||
|
<Generator>MyApplicationCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Application.Designer.vb</LastGenOutput>
|
||||||
|
</None>
|
||||||
|
<None Include="My Project\Settings.settings">
|
||||||
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
|
<CustomToolNamespace>My</CustomToolNamespace>
|
||||||
|
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Text Include="ReadMe.txt" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.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>
|
||||||
Binary file not shown.
Binary file not shown.
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<doc>
|
||||||
|
<assembly>
|
||||||
|
<name>
|
||||||
|
Test_ConvertExpressionInValue
|
||||||
|
</name>
|
||||||
|
</assembly>
|
||||||
|
<members>
|
||||||
|
<member name="T:Test_ConvertExpressionInValue.My.Resources.Resources">
|
||||||
|
<summary>
|
||||||
|
Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:Test_ConvertExpressionInValue.My.Resources.Resources.ResourceManager">
|
||||||
|
<summary>
|
||||||
|
Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:Test_ConvertExpressionInValue.My.Resources.Resources.Culture">
|
||||||
|
<summary>
|
||||||
|
Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
|
||||||
|
Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
</members>
|
||||||
|
</doc>
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
' <autogenerated/>
|
||||||
|
Option Strict Off
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
|
Imports System
|
||||||
|
Imports System.Reflection
|
||||||
|
<Assembly: Global.System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName:=".NET Framework 4.8")>
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
e4d6e1f47852c192389ce78d5f7b1c2b4f8eab47
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_ConvertExpressionInValue.git\Test_ConvertExpressionInValue\bin\Debug\Test_ConvertExpressionInValue.dll
|
||||||
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_ConvertExpressionInValue.git\Test_ConvertExpressionInValue\bin\Debug\Test_ConvertExpressionInValue.pdb
|
||||||
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_ConvertExpressionInValue.git\Test_ConvertExpressionInValue\bin\Debug\Test_ConvertExpressionInValue.xml
|
||||||
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_ConvertExpressionInValue.git\Test_ConvertExpressionInValue\obj\x64\Debug\Test_ConvertExpressionInValue.vbproj.AssemblyReference.cache
|
||||||
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_ConvertExpressionInValue.git\Test_ConvertExpressionInValue\obj\x64\Debug\Test_ConvertExpressionInValue.Resources.resources
|
||||||
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_ConvertExpressionInValue.git\Test_ConvertExpressionInValue\obj\x64\Debug\Test_ConvertExpressionInValue.vbproj.GenerateResource.cache
|
||||||
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_ConvertExpressionInValue.git\Test_ConvertExpressionInValue\obj\x64\Debug\Test_ConvertExpressionInValue.vbproj.CoreCompileInputs.cache
|
||||||
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_ConvertExpressionInValue.git\Test_ConvertExpressionInValue\obj\x64\Debug\Test_ConvertExpressionInValue.dll
|
||||||
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_ConvertExpressionInValue.git\Test_ConvertExpressionInValue\obj\x64\Debug\Test_ConvertExpressionInValue.xml
|
||||||
|
H:\Programmieren\Git-WorkRepository\VisualStudio\_TEST\Test_ConvertExpressionInValue.git\Test_ConvertExpressionInValue\obj\x64\Debug\Test_ConvertExpressionInValue.pdb
|
||||||
Binary file not shown.
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<doc>
|
||||||
|
<assembly>
|
||||||
|
<name>
|
||||||
|
Test_ConvertExpressionInValue
|
||||||
|
</name>
|
||||||
|
</assembly>
|
||||||
|
<members>
|
||||||
|
<member name="T:Test_ConvertExpressionInValue.My.Resources.Resources">
|
||||||
|
<summary>
|
||||||
|
Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:Test_ConvertExpressionInValue.My.Resources.Resources.ResourceManager">
|
||||||
|
<summary>
|
||||||
|
Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:Test_ConvertExpressionInValue.My.Resources.Resources.Culture">
|
||||||
|
<summary>
|
||||||
|
Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
|
||||||
|
Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
</members>
|
||||||
|
</doc>
|
||||||
Loading…
Reference in New Issue
Block a user