×
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

SNAP Coping Text to Other Sheets

SNAP Coping Text to Other Sheets

SNAP Coping Text to Other Sheets

(OP)
This Snap program works, and came from the Snap Reference Guide. Everything is all right with one exception. When running this journal the fruits are straight across on a "D" size drawing and price, interest, and vendor are away and form a general note ON THE DRAWING. My objective is to have what is run on the 1st sheet and only the fruits (Apple, Banana, and Cherry) take over on the rest of the sheets in the NX9 spec file.I could have a 100 sheets so who cares how many sheets there are.

I do believe once finished this will help others including myself with other programs needed FOR multiple sheets

Could somebody help me with the rest of the puzzle.

Imports Snap, Snap.Create

Public Class MyProgram

Public Shared Sub Main()

' Create a very simple one-line note.
' We pass "Nothing", so formatting will be controlled by preferences
Dim p As New Position(30, 65)
Note(p, Nothing, "Hello")

' A more interesting three-line note,
' again using formatting from annotation preferences
Dim lines As String() = New String(3) {}
lines(0) = "Price: €247 ± €5 for 25cm³"
lines(1) = "Interest: about ¼% per month"
lines(2) = "Vendor: Nuñez Mfg, Grüberstraße"
Note(New Position(10, 10), Nothing, lines)

' Create a TextStyle object representing annotation preferences,
' and modify a few things about it (color, font, size)
Dim blueCambria12 As New NX.TextStyle()
blueCambria12.Color = System.Drawing.Color.Blue
blueCambria12.FontName = "Cambria"
blueCambria12.FontSize = 12

' Now use this TextStyle to create three notes
Note(New Position(10, 20), blueCambria12, "Apple")
Note(New Position(20, 20), blueCambria12, "Banana")
Note(New Position(30, 20), blueCambria12, "Cherry")

End Sub

End Class

RE: SNAP Coping Text to Other Sheets

The Snap.Create.Note function always creates notes on the current drawing sheet. So, if you want to put notes on several different sheets, you have to insert logic to change the current sheet.

RE: SNAP Coping Text to Other Sheets

(OP)
got it

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