Scripting Challenge anybody ?

Next
 From:  TpwUK
7951.1 
Hi guys, with how versatile Moi is i had a thought how cool it would be to be able to design a flooring plan, but then I also know my limitations as Script is certainly one of them. The more i think about this idea the more complex (for me) it seems to get.... So here's what I'd like it to be able to do...

The designer creates the flooring space using just lines or curves that are planar and creates a single surface from those said curves/lines. The calls the script via a command such as MakeFloor. This would then display a window to enter the following variables.

Plank dimensions for width, length and depth of the longest plank such as 1.6m or 1600mm etc
Chamfer angle or amount
Randomness of the Planks by percentage so if the smallest plank was 400mm that would be 75% variance but that the randomness should be restricted so none would be shorter and be divisible by say 50mm so as no silly number like 547.2 would be allowed.
Starting point of the flooring selected by mouse click on a corner of a bounding box or centre thereof
Direction of the planks to - i.e. from top to bottom or from left to right.
Export options of native 3DM, STEP or OBJ set by tick boxes and the starting name for the exported file(s) e.g MyFloorPlan


The script would then trim the starting surface into individual surfaces according to the planks dimensions with the randomness entered, then extrude those surfaces to the given depth, any planks that run over the original starting curves/lines should be trimmed, then chamfering the top surface to suit the chamfer setting. Each generated plank should be named as generated such as Plank.001 etc. The final plan then to be exported as set by the selections given by the user.

What do you guys think, is it do-able ?

Martin
(TpwUK)
  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
7951.2 In reply to 7951.1 
Hi Martin,

re:
> What do you guys think, is it do-able ?

Yes, I'd think it's probably do-able, but also would require quite a lot of time consuming work to make a script that did all that stuff.

- 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:  TpwUK
7951.3 In reply to 7951.2 
Well that's good to know, sadly it's well beyond my scripting skills, my programming days pretty much terminated when .net came along and totally fried my feeble simplistic brain. Prior to that i was all Delphi/Pascal ... Maybe I should try and learn Js and Python since they seem pretty powerful as scripting tools/languages

Martin
(TpwUK)
  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