Lesson 15: Export OpenCascade assemblies to STEP with names and colors

Поделиться
HTML-код
  • Опубликовано: 11 янв 2025

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

  • @tobi3068
    @tobi3068 3 года назад +8

    Hello Quaoar,
    Thank you very much for doing this video Series. Open Cascade is a very special topic and it is not that easy to find access to it. So thank you very much for that effort, it it highly appreciated by the few folks, that are interested in it.

    • @QuaoarWorkshop
      @QuaoarWorkshop  3 года назад +1

      Thanks, I appreciate that. Such feedback keeps me motivated :)

    • @danielgiesbrecht9701
      @danielgiesbrecht9701 Год назад

      I came here to say this. OCC is pretty intimidating for newcomers, especially those like me that haven't touched software development in over 5 years. These videos have been a life-saver. I got to the point where I could write simple shapes to STEP files, but I hit a wall with the documentation when I wanted to go further (add colour) and realized that I needed to learn about XDE and OCAF.

  • @Vladimir-ky3nets
    @Vladimir-ky3nets Месяц назад

    Hello, please tell me. How to create and save the cylinder shell, i.e. to have the top and bottom open, just one side surface

  • @bioanu
    @bioanu 3 года назад +1

    HI!
    I like to thank you for all your effort and time related to OpenCascade usage! One important question: it is not clear to me if I can include the official OpenCascade Libraries in a commercial product. Let me know your opinion about that.

    • @QuaoarWorkshop
      @QuaoarWorkshop  3 года назад +1

      Yes, you can build commercial software using OpenCascade. OpenCascade is licensed under LGPL license terms considered as a "good" license (unlike GPL that "infects" your product to be GPL as well).

    • @bioanu
      @bioanu 3 года назад

      @@QuaoarWorkshop Thank you very much!!!

  • @DheebikhaK
    @DheebikhaK 9 месяцев назад

    Hi Sir, Thank you very much for this Open Cascade Video series. In Lesson15, I'm stuck with error "E0864 NCollection_DataMap is not a template". How to solve this Sir. Thank you Sir..

  • @Vinz410
    @Vinz410 2 года назад

    Hello Quaoar,
    Thank you for your`s videos. It helps me a lot in my current project. Also I would ask you for help. How can I setup color for TopoDs_Compound shape that was imported from STEP file ? I just want to open step file, perform some simple transformation and export it but with the custom color. Thank you!

    • @QuaoarWorkshop
      @QuaoarWorkshop  2 года назад

      Hello Илья,
      Have you tried the approach demonstrated in this video? Here is the link to the particular episode: ruclips.net/video/dq2-evewPeA/видео.html

  • @КириллЖильников-х7р

    Hello! Give me please a little tip. Is there a way to read already saved xbf file in order to visualize a model? I want to do it in order to visualize a step model faster (I want to create a document based on the step model only once, save it in a folder and then just use this saved document in order to visualize the model)

    • @QuaoarWorkshop
      @QuaoarWorkshop  2 года назад

      You can use Draw console for that. E.g.:
      pload ALL
      Open C:/users/serge/desktop/doc.xbf doc
      DFBrowse doc
      XShow doc
      Feel free to join our forum which is a better place to discuss things: analysissitus.org/forum/index.php

  • @pierregarnier3218
    @pierregarnier3218 3 года назад

    Hi ! Thank you so much for this series, it helps a lot. I have a general question about OCCT : Is it possible to do "User friendly CAD" (with gui, tools, just like CAD Builder in the end) natively ? You have to use other frameworks right ? If so, what would you use ?

    • @QuaoarWorkshop
      @QuaoarWorkshop  3 года назад +2

      For something like CAD Builder you'd need Qt for UI, FreeCAD's PlaneGCS for a constraint solver, OpenCascade for visualization, data model (OCAF), and modeling, and also Python for scripting. These are more or less principal dependencies. If you want to build something nice looking, given that you've got tons of time/money, you can also consider Qt/Qml which is way more flexible than Qt Widgets for UI.

  • @ustczzh
    @ustczzh 3 года назад

    Is there any way to add TDataStd_Name to Face Label and export it to STEP file? It seems that the tagname of ADVANCED_FACE(' ',(#18),#32,.F.) is always empty.

    • @QuaoarWorkshop
      @QuaoarWorkshop  3 года назад +1

      That should be possible, but I have to check it in the code. Will come back to you soon.

    • @QuaoarWorkshop
      @QuaoarWorkshop  3 года назад +1

      Okay, there's one variable you have to set to make this work: Interface_Static::SetIVal("write.stepcaf.subshapes.name", 1);
      Having this variable enabled, you can attach names with TDataStd_Name to the subshape labels.
      #145 = ADVANCED_FACE('front-face',(#146),#83,.T.);
      gitlab.com/ssv/lessons/-/blob/master/Lesson15_compose-XDE/main.cpp#L31
      gitlab.com/ssv/lessons/-/blob/master/Lesson15_compose-XDE/main.cpp#L220

  • @0x334-i5o
    @0x334-i5o 3 года назад

    In a multipart STEP file, I've been trying to figure out how to open it and export one STP file per entity name in a vehicle design, is this doable?
    #xx=MANIFOLD_SOLID_BREP('Foo1', #xx);
    #xx=MANIFOLD_SOLID_BREP('Foo2',#xx);
    etc
    to Foo1.stp, Foo2.stp...etc
    Thank you for the lessons ❤️

    • @juliaslyadnevaquaoarstudio6068
      @juliaslyadnevaquaoarstudio6068 3 года назад

      Looks like my previous reply was lost, so I'll try to repeat it. If put in short, what you're asking is doable. For that, you'll need to use STEPCAFControl_Reader for transferring .Step file to OCCT document called TDocStd_Document, then iterate through it gathering labels representing the solids you're interested in and then contract TopoDS_Shapes and output them to .Step files utilizing STEPControl_Writer.

    • @juliaslyadnevaquaoarstudio6068
      @juliaslyadnevaquaoarstudio6068 3 года назад

      You might want to consider sharing the .Step file with us so that we could prepare the video exploring your point. You might contact us by e-mail (see "About" section) or in the forum (see the link under the description to videos).

    • @0x334-i5o
      @0x334-i5o 3 года назад

      @@juliaslyadnevaquaoarstudio6068 ty so much for the reply, unfortunately I am not allowed to share the file. Keep up with the great work, this channel is unique and it will keep on growing as the training material on occt is very limited online. I so appreciate the tips in the previous post. Thank you