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
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
Your kLine array size is wrong and it should be of type Curve.
Attached is the corrected code.
Suresh
www.technisites.com.au
RE: Journal - CrosHatch
- 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
I have corrected your code. You should be passing the kLine as an array of curves by reference as shown in the attached code.
Suresh
www.technisites.com.au
RE: Journal - CrosHatch
RE: Journal - CrosHatch
Suresh
www.technisites.com.au
RE: Journal - CrosHatch
Best Regards.
RE: Journal - CrosHatch
Regards