DeepSOIC / Part-o-magic

Experiment on FreeCAD-wide automation of Part container management. For FC v0.17-0.18
Other
12 stars 4 forks source link

Wiki page describing Part-o-Magic #25

Open luzpaz opened 6 years ago

luzpaz commented 6 years ago

Hey @DeepSOIC Just a heads up that I added your Part-o-Magic icon to https://www.freecadweb.org/wiki/Template:DevWorkbenches

Yorik was saying that he'd like every single Addon to have a wiki page. I know you haven't gotten around to documenting this workbench... it would be really awesome if you did. Do you need help ?

DeepSOIC commented 6 years ago

Do you need help ?

That'd be lovely! I have trouble finding time to work on my workbenches now, be it code or documentation.

jgriessen commented 6 years ago

I'd like to try to learn to use part-o-magic. After reading old threads it seems you hit an impasse in April 2017 and could not get it merged into freecad, so slowed down on App.ActiveContainer. What should I do right now? Ask for help from others and use part design in FreeCAD 0.18, Libs: 0.18R14726 (Git)? Or is part-o-magic usable and some people here will help me learn it without your input since you are busy?

DeepSOIC commented 6 years ago

What should I do right now? You decide!

Ask your questions, either here in PoM issue tracker, or in FreeCAD forum. On FC forum, ping me with a quote, so that I notice. I'll answer as many as I can, no problem.

Your questions may push me over that write-the-docs barrier!

luzpaz commented 6 years ago

Your questions may push me over that write-the-docs barrier!

@jgriessen this is your chance! image (bummer the gif didn't work)

jgriessen commented 6 years ago

I'm good at writing also. I'll help.

For freecad forum I should ping you as forum reply with quote only, or also do a forum personal message?

John Griessen

Parting red sea! Funny! :-)

jgriessen commented 5 years ago

Back in Feb 19, 2017, you said, "You can still make a sketch on a face of a Cube, be it in Module or not. You just need to make a new sketch from a Sketcher workbench, not from PartDesign workbench." Is this still a rule? Are there other "Don't do this or fails." rules to follow while building things with part-o-magic?

DeepSOIC commented 5 years ago

Is this still a rule?

Yes. It's not a part-o-magic rule, it's a general "if you want a sketch for anything but partdesign" rule.

Are there other "Don't do this or fails." rules to follow while building things with part-o-magic?

Yes. I don't quite have a list. So let me try.

DeepSOIC commented 5 years ago

That is, when you want to do something, make sure the correct container is active.

Often, you can (and should) use whole body/module/shapegroup for an operation.

** replacement tool can assist with inserting shapebinders/ghosts into cross-container links.

it's much harder to pack up a container after the fact. I hope to introduce some tools to help with that, eventually.

jgriessen commented 5 years ago

Thanks, I will write this list into my howto_summary.txt and publish it on the https://www.freecadweb.org/wiki/Template:DevWorkbenches wiki page as I test it out. It's been 28 days, but now I am going to be spending time on this for a few days and get some results.

jgriessen commented 5 years ago

"Often, you can (and should) use whole body/module/shapegroup for an operation." Not understanding well. Is this an example: I am wanting a boolean subtract. I make a body within the main container, enclosure_back, active and make a rectangular shape, (that I want to subtract). I make enclosure_back active again, select the rectangular shape and additive pipe and create a boolean of them.

Alternatively: I could make top container active, make a rectangular shape, (that I want to subtract). I make top active again, select the rectangular shape and enclosure_back, and create a boolean of them.

Are you saying use Alternatively as a rule?

jgriessen commented 5 years ago

"avoid copying dependencies. " that seems tricky. Not sure how to do.

DeepSOIC commented 5 years ago

Often, you can (and should) use whole body/module/shapegroup for an operation." Not understanding well. Is this an example: I am wanting a boolean subtract. I make a body within the main container, enclosure_back, active and make a rectangular shape, (that I want to subtract). I make enclosure_back active again, select the rectangular shape and additive pipe and create a boolean of them. Alternatively: I could make top container active, make a rectangular shape, (that I want to subtract). I make top active again, select the rectangular shape and enclosure_back, and create a boolean of them.

It's hard to say without having your project. I'm having a hard time understanding you. But it seems like both ways you describe are valid.

DeepSOIC commented 5 years ago
      "avoid copying dependencies. "  that seems tricky.  Not sure how to do.

When you duplicate something, FC often asks "do you also want to duplicate dependencies?". If you say "yes" in an attempt to duplicate Modules, Parts, Bodies, especially those that depend on something external, chaos can result.

jgriessen commented 5 years ago

OK, I will try copying without dependencies and then put back the orientations etc. I guess spreadsheet is a dependency that cannot copy, or select it and see? I will try it and always answer"No." to FC asking "do you also want to duplicate dependencies?".

jgriessen commented 5 years ago

I'm learning how to select all the planes in Origin003 etcetera to get a copy to work without errors such as, "Lost link to 'X_Axis004' while loading, maybe an object was not loaded correctly" Now to write this up and keep going creating reused chunks of what I drew before. So far, so good.

jgriessen commented 5 years ago

I've tried adapting the example of https://forum.freecadweb.org/viewtopic.php?t=20698&start=50 subtractive shape container, to my design and don't get boolean subtract and do get errors. I put the details on freecadweb: https://forum.freecadweb.org/viewtopic.php?f=22&t=32559

jgriessen commented 5 years ago

subtractive-shape-save-test3 has no offset position value in its property list. Have I created it the wrong way? box that was there from your file is same way -- no offset position value in its property list. More details on https://forum.freecadweb.org/viewtopic.php?f=22&t=32559&start=20