×
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

NXOpen curvecollector

NXOpen curvecollector

NXOpen curvecollector

(OP)
Run into a problem with using the curve collector in the snap block based dialog. When prompted to select a curve and I select one, a linked composite curve appears in the part navigator of the workpart as desired. As soon as I hit OK on the dialog the linked composite curve feature disappears. I am used to the regular NXOpen builders with having to commit an object and I don't see that same functionality in the snap wrapped functions.

I hacked together a workaround that "works" but is very flawed. I basically found the composite curve feature in the tree (all within the OnOK sub) linked it to a composite curve builder, did a commit() and dispose() on the object, and like that a linked composite curve is now a feature in my part navigator.

I realize that this method is not correct and that this should work using the code below but I can't seem to get the linked composite curve feature to stay otherwise. Combed through countless documentation and still turning up empty. Any insights on what I'm missing?

CODE --> vb.net

curveCollector.AllowMultiple = True
curveCollector.CurveRules = 4
curveCollector.EntityType = 4
curveCollector.InterpartSelection = Snap.UI.Block.InterPartSelectionCopy.Controlled
curveCollector.CreateInterpartLink = True
Me.AddBlocks(curveCollector) 

Thanks in advance

RE: NXOpen curvecollector

(OP)
Solved my problem, looped through the selectedObjects of the curveCollector, assigned to an array of regular nxopen.objects and was able to manipulate from there for what I need.

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