NX Journal Enter attributes

2019/12/09 categories:NX Journal| tags:NX Journal|VB|

I have created a program to enter a value for an attribute. Enter the attribute in “attribute” and enter the value you want to set in the attribute of “attribute” in “my_text”. “Attribute” is generally set with attributes such as material and surface treatment.

VB Code

Option Strict Off
Imports NXOpen
 
Module NXJournal
    Sub Main (ByVal args() As String)
        Dim theSession As Session = Session.GetSession()
        Dim workPart As Part = theSession.Parts.Work
 
        workPart.SetAttribute("attribute", "my_text")
    End Sub
End Module

Share post

Related Posts

コメント