Siemens NX | Change colour via expression

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024
  • T&T-3 | Siemens NX Tutorial Tips and Tricks |Products with identification colours have the same geometry, but different colours. There are many possible solutions for this, but the best would be to be able to change the colour via an expression.
    Here is the code:
    setColor=ug_setObjectColor(First(ug_cycleObjectsByType({ug_body}, "")), colorID)
    ▬about this channel▬▬▬▬▬▬▬
    With LearnNX you will learn Siemens NX step-by-step from the beginning. The basic course consists of learning videos that build on each other. (marked blue)
    You start here: • Siemens NX Tutorial | ...
    In between you can check your knowledge with tests. (marked green)
    Expert exercises impart special knowledge. (marked red)
    All learning videos are available for free. We look forward to your comments on RUclips. (and about your subscription ;-)
    / @learnnx
    ▬about our free learning platform▬▬
    😃 All tutorials, clearly arranged, can be found here: learnnx.com
    Learning videos with a short description, together with the exercise materials as download.
    You can also search 🔎 for commands or topics.
    And all according to the motto: step by step / for free / for all 🎈
    ▬Links▬▬▬▬▬▬▬▬▬▬▬▬▬
    learnnx.com/do...
    ▬chapter▬▬▬▬▬▬▬▬▬▬▬▬
    to short for chapter
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    #learnNX #SiemensNXfreeCourse

Комментарии • 15

  • @cadcaetutorial2039
    @cadcaetutorial2039 3 месяца назад +1

    Very amazing this lecture sir

  • @cadcaetutorial2039
    @cadcaetutorial2039 3 месяца назад +1

    So weldon sir

  • @tnvm.9026
    @tnvm.9026 3 месяца назад

    What is this code from "setColor=ug_setObjectColor(First(ug_cycleObjectsByType({ug_body}, "")), colorID)". It syntax like journal? I find it very interesting to code in an expression. By the way thank to very cool tips I never know that NX can do this in expression.

  • @LofEtmaz
    @LofEtmaz 3 месяца назад

    Very useful thanks

  • @PuratchiEppothumVellum
    @PuratchiEppothumVellum 3 месяца назад +1

    Great trick 👌

  • @jaypanchal1997
    @jaypanchal1997 3 месяца назад

    Please start surfacing training series in NX.

    • @learnNX
      @learnNX  3 месяца назад

      Thank you for your suggestion about freeform.

  • @AmanKumar-cb3zc
    @AmanKumar-cb3zc 3 месяца назад +1

    Please make video on nx prepost application, thermal, structural etc simulations.

    • @learnNX
      @learnNX  3 месяца назад +1

      Thank you for your suggestion

  • @lb3d650
    @lb3d650 3 месяца назад

    Is it possible to rewrite the expression to paint multiple objetcs-bodies-components in an assembly? I tried it in parts and it works great. We use many assemblies for welding and they usually go to a paint proccess, with these expression modified to work with assemblies I can have conditionals on the attribute that indicates the color and run it automatically

    • @learnNX
      @learnNX  3 месяца назад

      It's possible, but you (or I) have to write a small program.

    • @lb3d650
      @lb3d650 3 месяца назад

      ​@@learnNX​ If I would know how to, I will be doing it no dubts, but my programming skills are not that good. Let me know if I can get in touch with you for doing it.

    • @learnNX
      @learnNX  3 месяца назад

      @@lb3d650 Send me an email to info@learnNX.com and explain your wishes in detail. I will then send you a quote.

  • @nikossiopis8181
    @nikossiopis8181 3 месяца назад

    Great video well done! Is there any similar way to change the material through expression?

    • @learnNX
      @learnNX  3 месяца назад

      There is always a way. But why do you want to choose expressions instead of attributes?