Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations LittleInch on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I find lines & notes in a Drawing template in order to change their positions using NXOp

Status
Not open for further replies.

rickyrdzs

Mechanical
Joined
Jan 17, 2013
Messages
1
Location
US
Hi All,
I´m doing an application with NXOPEN .NET in order to customize a template size.
I want to move lines, notes and tabular notes and give them a new position in the same sheet, after the template has been added.


I try to use JournalIdentifier ID, but this number always change.
EXAMPLE
Try
Dim line1 As Line = CType(workPart.Lines.FindObject("ENTITY 3 14 1"), Line)
obj = line1

Dim lp As UFCurve.Line
Dim sp(2) As Double
Dim ep(2) As Double
lp.start_point = sp
lp.end_point = ep

lp.start_point(0) = 1189
lp.start_point(1) = 841
lp.start_point(2) = 0
lp.end_point(0) = 0
lp.end_point(1) = 841
lp.end_point(2) = 0

ufs.Curve.EditLineData(line1.Tag, lp)
Catch ex As Exception
' MsgBox("Borraste la Linea", MsgBoxStyle.Information)
End Try


Any help will be appreciated

Regards
 
Can you name the objects before you create the journal, then in the journal instead call the existing names to select ?

Regards,
Tomas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top