Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Recent content by BubbaK

  1. BubbaK

    Journal Obfuscation

    One method of obfuscation is to replace all your variable names by ridiculous and similar ones. So, for example, you replace “midPoint” by “xxxxxxxxxxx” (11 x’s) and “endPoint” by “xxxxxxxxxxxx” (12 x’s) and so on. This will make your code very difficult to read.
  2. BubbaK

    Examples of KF functions used in Expressions

    You can write KF functions which you can then “call” from NX expressions, in much the same way that you can call built-in functions. I tried doing this, and it kinda works, but it’s not behaving as I would expect. Does anyone have any examples of these user-written functions?
  3. BubbaK

    NX Open , .Net , Point3d

    Just cycle through and measure the distance to each point. You can compare squared distances, instead of actual distances, which will avoid a square root calculation. I’d expect that you can cycle through millions of points per second; performance is not likely to be a big problem.
  4. BubbaK

    VisBasic in NX??

    There are many programming/automation options with NX. You can write your code in any one of several languages, including C++, any .NET language (VB,C#, F#, etc.), Python, or Java. All these languages give you access to roughly the same NX functionality. Also, you can record interactive steps...
  5. BubbaK

    NX implicit modeling

    I prefer x^2, too. I notice that one of the built-in examples uses "hypsin" instead of the more usual "sinh". This suggests that the syntax is either KF or a regular old NX expression (the two are almost the same, anyway). Here's a few fun ones to play with x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)...
  6. BubbaK

    NX implicit modeling

    Thanks @CADPat. The format of the equation is interesting. Looks like I’m supposed to write “x^2” for the square of x. Not many languages work that way. The only two I know are Visual Basic and Knowledge Fusion. So, I wonder how I should write cosine, sinh, square root, absolute value, etc. Am I...
  7. BubbaK

    NX implicit modeling

    NX 1953 has a new implicit modeling capability. Has anyone used it? I’m especially interested in the “general equation” option. How do you enter the equation? The documentation says nothing, except that some built-in examples are available. What do these examples look like?
  8. BubbaK

    NX Open use selfwritten methods in different classes

    Make a new project containing the methods you want to share, build a DLL from that project. Reference that DLL in the projects that need to use the shared methods. This is just a standard .NET development methodology. It has no relationship to NX.
  9. BubbaK

    Hide all but selected wish command.

    Select Invert selection Hide
  10. BubbaK

    Nx Journaling - Orient WCS as per User selected Cylindrical Edge.

    What do you mean “Orient my WCS as per selected cylindrical edge” ?? Where do you want the origin, the x-axis, and the y-axis to go?
  11. BubbaK

    Controlling a spline shape

    Divide the arc at the points where you want spline knot-points. Then use Join Curves. I don't understand what you're doing with constraints. The spline you're getting exactly replicates the shape of the original arcs(s). If that's not acceptable, then I need more info about what you want.
  12. BubbaK

    Controlling a spline shape

    You can convert an arc to a spline automatically. Use the "Join Curves" command.
  13. BubbaK

    NXOpen class override

    The answer is in the reference guide, which describes all NX/Open types,properties, etc. In most cases, the NX/Open classes are "sealed" (in .NET jargon) which means that you can not derive subclasses from them. Many of the classes in the SNAP API are not sealed, but this will only help you if...
  14. BubbaK

    Need help - unable to execute the Journal file in the command line mode

    As the error says, there is probably no part with the name "Part2" when you re-run the journal. The Getting Started with NX/Open guide has a section describing various ways to deal with FindObject problems.
  15. BubbaK

    setting ToString() decimal places

    Alternatively: ToString("F4") will give you four digits.

Part and Inventory Search