×
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

Journal - CrosHatch

Journal - CrosHatch

Journal - CrosHatch

(OP)
Hello Eng-Tips.
I am trying to use CrossHatch on a curve array (representing a letter) thru a journal but NX report an error: "Unable to cast object of type NXOpen.NXObject[] to type NXOpen.Curve[]" .See attached journal (VB) to find mistake.

Regards

RE: Journal - CrosHatch

(OP)
Thanks ufsure!!! just a few questions...
- Which is the difference between declaring kLine as Curve and as Line? So far there is no problem with code, where is the advantage?
-Im trying to made this crosshatch as a Function, what could change in the code?. Attached you will find the code (with some issues).

Regards

RE: Journal - CrosHatch

(OP)
Thanks ufsure!!! It really helps. I managed to add a couple of arcs to the kLine array and solved some issues regarding the CurveDumbRule, I fixed this by changing the MidPoint of the arc (try and error); now I add a new letter (three more in the way) with arcs I get the same issue and I cant manged to solved. I'm using the NXOpen .Net API Reference but there isn't much information to understand CurveDumbRule Method (a few Do's or Don'ts would help in this document).

RE: Journal - CrosHatch

The array length declaration is wrong. nLine(9) should be nLine(7). In VB the array length should be declared 'the number of elements - 1'.

Suresh
www.technisites.com.au

RE: Journal - CrosHatch

(OP)
Thanks ufsure for your help!!! Now I can correct the rest of the letters without issues. 2thumbsup

Best Regards.

RE: Journal - CrosHatch

(OP)
Hello ufsure, thanks for your support on this thread. Now that I have time to go back to this journal I found an issue with the cross hacth when I try "move" by code the lines (region) involved on the crosshatch. Attach you will find the journal that i'm working on.

Regards

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