DXF LAYERS - SWAP OUT 2D Objects > 3D - ~1~ Moi Automation

Next
 From:  stefano (LIGHTWAVE)
9934.1 
Hi Michael & Everyone,

The attached moi-file deploys V4 Beta "DXF import layers".
The artwork should be seen as positional. What results
especially once i create better 3D model(s) will be
an original 3d layout visual.

'Challenge'

1. There is 96pcs 2d shapes on a RED layer and these are just "2D [XY] Component Positions".
I picked a square, but i could give you a cross-hatch a circle or whatever might work best.
2. All 96pcs of those 2d shapes will be swapped out or simply used as XY reference points.
3. We then have the "3d Swap reference part" from the GREY layer...
4. The reference part needs to magically appear on the GREEN layer (96pcs).

Other notes:
>Once the 3d components are swapped out and in place, the shape outline on the white layer
will get a 'fill' and become "3d" or planar itself. Its just a flat metal panel with material thickness 2mm.
The 3d shapes will be placed on the top surface of this surface. Later they are likely to be 'joined'
or 'holes'.

> I deliberately put one shape out of grid so please don't suggest i do all this in
MOI with 'array' ;o). This looks linear but later it will likely be very far from that.

> Red layers are only ever reference and don't ever get deleted but likewise they
dont end up on final 'visuals' either.







Interested to see magic happen!

Manually done:

EDITED: 7 Sep 2020 by LIGHTWAVE


  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9934.2 In reply to 9934.1 
Hi Stefano, possibly Max's vClone plugin could be used for this:
http://moi3d.com/forum/index.php?webtag=MOI&msg=6486.1

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9934.3 In reply to 9934.1 
Also the latest version of vClone would be at Max's file archive here:
http://moi.maxsm.net/media/files/

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  stefano (LIGHTWAVE)
9934.4 In reply to 9934.3 
Hi Michael, All those tools look good and on the surface (no pun intended) Vclone potentially looks very close. Interesting mention on 'csv' output. Will explore further soon as freer..thanks again. Stefano
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  stefano (LIGHTWAVE)
9934.5 
Btw: When doing this manually, used array tool for most of the components with grid align. When trying to centre align the bigger 3d object onto the smaller 2d ones particularly on the random part (off grid) I found it really tricky. I can use 'move' command but canit be done with a particular type of object snap?? The centres of both objects need to snap. Drag,snap,drop.

EDITED: 7 Sep 2020 by LIGHTWAVE

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9934.6 In reply to 9934.5 
Hi Stefano, if you need a snap point to target the center of an object's bounding box you can create a point object there using the BoundingBoxCenter command:
http://moi3d.com/3.0/docs/moi_command_reference10.htm#boundingboxcenter

It could also be possible to make a plug-in that would move an object by it's bounding box center onto the bounding box center of another object, would that help?

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  stefano (LIGHTWAVE)
9934.7 In reply to 9934.6 
Will test that too...re: alignment ideas when I get around to my v4 suggestions or 'wish list' think best I put them on that. Dont want to overload you or say what's 'essential' right now. Really appreciate all the help so far.

[ Reference to script used to import filename to styles, slightly related to this post:

http://moi3d.com/forum/index.php?webtag=MOI&msg=9889.7

Interesting system level way to open dxf files into different views here:

http://moi3d.com/forum/index.php?webtag=MOI&msg=9154.5 ]

EDITED: 19 Sep 2020 by LIGHTWAVE

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All