×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

NX symbols referrence in Journal

NX symbols referrence in Journal

NX symbols referrence in Journal

(OP)
How to ref the symbols in journal


i created one journal to move all the symbols to layer 254 as following. but it is showing an error symbol is not a part of NXOPEN.Annotations.AnnotationManager


I dont know how it will read in jornal for symbols i want all the subtypes needs to be selected in this method. like crosshatch, id symbols, centerlines etc.

When i do only for centerlines or id symbols i am getting the action. But not for all.....


Option Strict Off
Imports System
Imports NXOpen
Imports System.Collections.Generic

Module NXJournal
Sub Main

Dim theSession As Session = Session.GetSession()
Dim workpart As Part = theSession.Parts.Display
Dim hatch1 As Annotations.Hatch

Const SymLayer as Integer = 254

For each CrosshatchObj as DisplayableObject In workpart.Annotations.symbols
'if typeof(CrosshatchObj) is Crosshatch then
CrosshatchObj.Layer = CrosshatchLayer
CrosshatchObj.RedisplayObject
'end if
next
End Sub
End Module

RE: NX symbols referrence in Journal

There is no master collection that references all the symbols; each symbol type has its own collection, such as:
  • workpart.Annotations.IdSymbols
  • workpart.Annotations.Hatches
  • workpart.Annotations.Centerlines
etc, etc.

www.nxjournaling.com

RE: NX symbols referrence in Journal

(OP)
Thanks Cowski.. Can you please give the required names for this list like .Idsymbols


GD&T Symbols
Surface Finish
Intersection
Target Point
Offset Center Point
Userdefined symbols
Area fill
DMV Faceted Representation
Dim by parts
label on parent

So that I can able to extend the journal to select all individually.

RE: NX symbols referrence in Journal

If you open the API reference document (found in the help files), you can find these under the 'annotation manager' class.

www.nxjournaling.com

RE: NX symbols referrence in Journal

(OP)
thanks a lot Cowski

RE: NX symbols referrence in Journal

(OP)
2thumbsupThanks a lot for the guidance instead of helipng.....Cheers

RE: NX symbols referrence in Journal

(OP)
Option Strict Off
Imports System
Imports NXOpen
Imports System.Collections.Generic

Module NXJournal
Sub Main

Dim theSession As Session = Session.GetSession()
Dim workpart As Part = theSession.Parts.Display

Const SymbolsLayer as Integer = 254

For each SymbolsObj as DisplayableObject In workPart.Annotations.Idsymbols
SymbolsObj.Layer = SymbolsLayer
SymbolsObj.RedisplayObject
next
For each SymbolsObj as DisplayableObject In workPart.Annotations.centerlines
SymbolsObj.Layer = SymbolsLayer
SymbolsObj.RedisplayObject
next
For each SymbolsObj as DisplayableObject In workPart.Annotations.intersectionSymbols
SymbolsObj.Layer = SymbolsLayer
SymbolsObj.RedisplayObject
next
For each SymbolsObj as DisplayableObject In workPart.Annotations.customSymbols
SymbolsObj.Layer = SymbolsLayer
SymbolsObj.RedisplayObject
next
For each SymbolsObj as DisplayableObject In workPart.Annotations.targetPoints
SymbolsObj.Layer = SymbolsLayer
SymbolsObj.RedisplayObject
next
For each SymbolsObj as DisplayableObject In workPart.Annotations.hatches
SymbolsObj.Layer = SymbolsLayer
SymbolsObj.RedisplayObject
next
For each SymbolsObj as DisplayableObject In workPart.Annotations.draftingSurfaceFinishSymbols
SymbolsObj.Layer = SymbolsLayer
SymbolsObj.RedisplayObject
next
End Sub
End Module

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources