Author Topic: How to copy part and geometry to a different model  (Read 13853 times)

Offline jimmer

  • Storm Trooper
  • ***
  • Posts: 146
    • View Profile
How to copy part and geometry to a different model
« on: January 29, 2025, 00:52:27 am »

Can you copy a part and its geometry (say on 1 layer) into a different model ?

I can't manage to copy them across together (was hoping that clashing geometry id numbers would be renumbered and the mops updated).

When I copy the part and geometry separately clashing geometry ids lead to a break in the link between mops and geometry.

A semi manual method would be to renumber the moving geometry above any id number in the target model. Is there a way to do that?


Cambam. Mach3. USB motion controller. 1800x950 ballscrew router, vacuum bed, 3kW spindle.

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9086
    • View Profile
Re: How to copy part and geometry to a different model
« Reply #1 on: January 29, 2025, 01:17:25 am »
I did that today with no primitive ID conflicts, but I copied the associated MOp separately, THEN generated a new primitives ID list after the copies were complete.  When I copied the MOp, it did create some id conflicts.  They didn't matter, because I repaired the MOp's primitives list afterwards.

The list from an old 9.8 drawing ALSO DID have duplicate iDs with my already-populated 1.0 model into which I was importing the primitives, but CB automatically reassigned them new IDs as they were copied.  Since I copied them into their own layer, it was easy to correct the MOp, simply by selecting the MOp's primitives list (three little dots), then selecting every primitive in that new layer I'd created.

Selecting even a LONG list of primitives is easy.  Click on the first one in the layer.  Cursor to the last one and shift-click.  Those two and every one between will all be selected.  Then just hit ENTER.  That REPLACES every primitive in the MOp, it doesn't just add them, so it instantly does what you want.

Bingo!  The MOp is corrected.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7589
    • View Profile
    • Cambam V1.0 French Doc
Re: How to copy part and geometry to a different model
« Reply #2 on: January 29, 2025, 14:58:34 pm »
Hello

To avoid ID problems you can use the file merge plugin, it will reassign the correct ID numbers in the machining operations and use a different CAMpart for each new file so the you can have same MOP name in one file as on the picture.

http://www.atelier-des-fougeres.fr/Cambam/Aide/Plugins/FileMerge.html



++
David
« Last Edit: January 29, 2025, 15:19:06 pm by dh42 »

Offline jimmer

  • Storm Trooper
  • ***
  • Posts: 146
    • View Profile
Re: How to copy part and geometry to a different model
« Reply #3 on: January 29, 2025, 16:11:45 pm »
Bingo!  The MOp is corrected.

Thanks, those are all techniques I use. 

But the aim of this question is to avoid having to re-build the mops.
Cambam. Mach3. USB motion controller. 1800x950 ballscrew router, vacuum bed, 3kW spindle.

Offline jimmer

  • Storm Trooper
  • ***
  • Posts: 146
    • View Profile
Re: How to copy part and geometry to a different model
« Reply #4 on: January 29, 2025, 16:18:41 pm »
To avoid ID problems you can use the file merge plugin, it will reassign the correct ID numbers in the machining operations and use a different CAMpart for each new file so the you can have same MOP name in one file as on the picture.

http://www.atelier-des-fougeres.fr/Cambam/Aide/Plugins/FileMerge.html

Thanks, I will give this a go in the future.

What I did last night was cut down the sub-assembly file to only the data I wanted to copy over (which would be stage one of using the file merge plugin). And now I'm thinking that having that data in a small separate file is OK for my records. No need to merge it with the main assembly file.





Cambam. Mach3. USB motion controller. 1800x950 ballscrew router, vacuum bed, 3kW spindle.