• tal@lemmy.today
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    7 days ago

    I mean, they may not have as much as you want, but they do appear to have documentation.

    https://wiki.freecad.org/

    That has a manual in two ebook formats, PDF, and a French and Italian translation.

    It has three help sections on the wiki, for each of users, power users, and developers.

    And it apparently has some in-application help functionality.

    And there’s a help forum.

    EDIT: It also looks like some people have written books about using FreeCAD.

    • Captain Aggravated@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      0
      arrow-down
      1
      ·
      7 days ago

      They have what looks like documentation. That manual is out of date and incomplete.

      FreeCAD exposes a Python console as an end-user feature. It has a macro recording system for automating repetitive tasks, much like MS Office does, it uses Python as a scripting language. Can you show me an API reference for this feature?

      I want to write a macro that will insert some text into the cell of a spreadsheet I have selected. Click a cell, click the macro button, and it puts some text into that cell. It can do this. There are macros published that do this kind of thing. Show me where in their published documentation the functions necessary to do that are described.

      They don’t help people in that forum. For some reason, FreeCAD’s forums default to English, but no one in the community speaks English as a first langauge. So you ask a detailed technical question, and some French guy babelfishes a couple of the key words and posts a random paragraph about the workbench you mentioned and a random unrelated code snippet. I’ve paid to have someone help me work on this software, that went nowhere.

      • tal@lemmy.today
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        7 days ago

        FreeCAD exposes a Python console as an end-user feature. It has a macro recording system for automating repetitive tasks, much like MS Office does, it uses Python as a scripting language. Can you show me an API reference for this feature?

        kagis

        https://freecad.github.io/SourceDoc/modules.html

        I want to write a macro that will insert some text into the cell of a spreadsheet I have selected. Click a cell, click the macro button, and it puts some text into that cell. It can do this. There are macros published that do this kind of thing. Show me where in their published documentation the functions necessary to do that are described.

        I don’t use FreeCAD, don’t have any familiarity with this spreadsheet functionality, but let’s look.

        kagis

        They appear to have a Doxygen API reference for their spreadsheets here:

        https://freecad.github.io/SourceDoc/d0/da8/classSpreadsheet_1_1Sheet.html

        setCell() looks like it sets a cell value to me.

        That appears to take a CellAddress, which it looks like is obtained via getCellAddress(). As I said, I haven’t used FreeCAD’s spreadsheets, but I expect that it has some cell-addressing syntax akin to spreadsheets that I’ve used, and that one passes the name in to that, same as one would if referencing the cell in a formula to compute another cell’s value. I’ve no idea if FreeCAD’s syntax is the same as Excel’s, or if it differs, though, and I’m not going to look that up; that shouldn’t be an API-specific issue.

        It also looks like it has a macro-recording feature. It looks like, to my quick skim, that natively generates Python:

        https://wiki.freecad.org/Macros

        You can also directly copy/paste python code into a macro, without recording GUI action.

        And looking at the source of an arbitrarily-chosen macro, it appears to be in Python, rather than some app-specific macro language:

        https://wiki.freecad.org/Macro_Rotate_View

        So I expect that you can most-likely just record yourself performing the operation and the macro-recording functionality will give you the code without you needing to write something.

        EDIT: It sounds like you want to get the selected cells rather than specifying the to-be-modified cell by name, which it looks like SheetTableView::selectedRanges() provides you with; Range objects appear to provide for a selection including many cells, but if you only want, say, the starting cell (which would presumably be the case for a single cell selection), then it looks like Range::from() provides that, since the starting cell would be the same cell as the only cell in a selection if there’s a single-cell selection. That returns a CellAddress as well.

  • thatsnothowyoudoit
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    7 days ago

    Do it as an end user? Be part of the solution?

    Documentation is one of the many ways to contribute that don’t involve coding.

      • Libb@jlai.lu
        link
        fedilink
        English
        arrow-up
        0
        arrow-down
        1
        ·
        edit-2
        7 days ago

        “I don’t know how this works. I guess I’ll have to be the one to explain it.”

        Nope, it should read: “I don’t understand how it works. It probably means I should (make the effort to) learn how to use it, and then I may want to share what I learned to make it easier to others.” And then, yeah, you’re right:

        • Captain Aggravated@sh.itjust.worksOP
          link
          fedilink
          English
          arrow-up
          1
          arrow-down
          2
          ·
          7 days ago

          Okay, how much effort should an end user be expected to put into learning how to use software? The standard used to be RTFM. Oh us Linux users get bitched at when we tell people to RTFM.

          Well I Read The Fucking Manual. The macro scripting API isn’t anywhere in The Fucking Manual. You ask how you’re supposed to learn how to use a feature that isn’t in The Fucking Manual, and you get asked why you haven’t Written The Fucking Manual.

          You’re told “The Python console has a help feature. Type help() to enter the help mode.” Yeah, that’s a standard feature, here’s the thing: It’s broken in FreeCAD. If you type anything at the help prompt, it exits the help system. You can’t get a list of modules to browse it that way. So you have to know the name of the module that the function you’re looking for is in. Somehow.

          I think it’s somewhere around this point that the end user has done what tehy reasonably should have and the ball is in the developer’s court. There is a difference between “Hey it would be great if you guys could help us flesh out the tutorial section on our website a bit!” and “We outright refuse to document our scripting API in any way, if the busted automated help system isn’t good enough, you write it.”

          I’m not Writing Their Fucking Manual for them. That is utterly insane.

          • Libb@jlai.lu
            link
            fedilink
            English
            arrow-up
            2
            ·
            7 days ago

            Okay, how much effort should an end user be expected to put into learning how to use software?

            As much as they’re need to, as much as they’re willing to.

            If you need to use the software, then also you need to learn how to (properly) use it. If it’s too much work because of the poor doc or because it’s just something hard to use for you (which could very well be, I don’t know but I do know I’ve failed myself to learn to use Emacs save that I don’t blame the devs or the docs that’s provided for free), then you need to either:

            • Spend some more time (to learn it better).
            • Spend some money to have someone make some digest version of a too technical doc that will help you. I decided not to do that with Emacs because I realized I could also not use the software and still be able to do my work fine.
            • Find another app that will suit your needs better and time/energy availability.

            FLOSS is provided as is. The user is free to use it however they fancy (which is amazing) but as a user we’re entitled to no support either. And why would we?

            I’m not Writing Their Fucking Manual for them. That is utterly insane.

            No one is asking you to write the doc if you don’t feel like it, and that’s 100% fine: no one will ever blame you for not writing it either. I’m just telling you that if you think it’s too much work for you you should not expect anyone to do it for you either. End of the story.

            But let me ask you this: would writing the manual really be that much more insane than, say, writing the hundreds of thousans of lines of code to make the application itself? And if you think it would be more work to write the doc than to create the app (and offer it for free) may I ask you why? It’s a real question, as I hope you realize I’m not trolling I’m just curious to understand your reasoning.

            BTW, I’m no dev, I’m a mere (and non expert) user of FLOSS myself. So, I know quite well how frustrating docs can be ;)

    • Captain Aggravated@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      3
      ·
      7 days ago

      Once again, “I don’t understand this, I guess it’s up to me to explain how it works.”

      I didn’t go to software engineering school. I went to flight school. Reading and understanding the source code of an application as large and complex as FreeCAD is outside my skillset.

      I’m a flight instructor. I can and have taken people from never having flown a plane before to licensed pilot. You want me to teach flight school, you’ve got to give me the plane’s POH. It is not my job to write the Pilot’s Operating Handbook. It is my responsibility to teach students how to read it.

      You get me good documentation for this software I’ll create and publish a course on parametric furniture design. But I’m not going to sift through source code trying to figure out how to write a macro any more than I’m going to pull the panels off a Cessna and trace wires to figure out what the switches do. That is the responsibility of the people who made the damn thing.

  • gnutrino@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    2
    ·
    7 days ago

    I’m sorry you’ve had a poor experience with FOSS software, I’m sure the project will give you a full refund if you ask them.

    • Captain Aggravated@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      0
      arrow-down
      4
      ·
      7 days ago

      You know what? That’s okay, I’ll just switch operating systems to Microsoft Windows or Apple MacOS and start using Autodesk Fusion360, paying hundreds if not thousands of dollars on a recurring basis to at least two American corporations that directly support the rise of fascism. I’ll be directly financially supporting everything from AI slop to the abduction of academics in broad daylight but just think of the fives of minutes I’ll save over the next decade drafting cabinets.

  • aubeynarf@lemmynsfw.com
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    7 days ago

    It’s an open source project, you dig into it a bit and issue a pull request with the documentation.

    • Captain Aggravated@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      2
      ·
      7 days ago

      Why the fuck should an end user of mechanical engineering software know how to use Git? Does Blender leave entire features completely undocumented expecting their audience of 3D animators to write their APIs for them given nothing but the app’s source code? Does GIMP? Does KDENLIVE? Does Arch Linux? Hell no, Arch has a massive and detailed wiki. Imagine if there just was no documentation for how to script in Bash and the Arch devs were like “Oh yeah think you could write that for us? You know, while you’re trying to get something fairly basic done?”

      • Ziggurat@jlai.lu
        link
        fedilink
        arrow-up
        2
        ·
        7 days ago

        Read the wiki, experiment, and improve it.

        But indeed, CAD is a very specific way of thinking, and if you haven’t done any technical drawing course you won’t find it by yourself

  • mrbubblesort@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    7 days ago

    Unethical pro tip: write obviously wrong documentation, post it somewhere, and then wait for people to flame you while explaining the correct methods.

    I’m ashamed to admit I’ve done that a couple of times when I was completly ignored for straight up asking how to do something.