Archive site for Autodesk Ecotect Analysis educational resources, notes and tutorials



Zone from Lofted Splines

The intention of this script is to take any four lines (straight or curved) and make a uniquely shaped zone that isn't just the default zone tool within the program. The lines can be vertical or horizontal.

Before running this wizard you must make a series of four lines (straight or curved). The order of these lines, which are going to create the boundary for the zone, need to be in a consecutive order because they are connected sequentially.

If you are using virtual curved lines, first create the actual curves using the following steps:

  1. Select the lines that define the dotted curves you want,
  2. Right-click and select Render Polylines...,
  3. Set the segments in each curve to 16.
  4. Choose OK to create each curve.
  5. Finally make sure you select the created curves themselves, not the jagged lines that defned them.

After all four lines are selected, simply run the script.

Script Contents (Lang: lua)

-- ------------------------------------------------------------
-- SETUP AND DISPLAY WIZARD INTERFACE FOR SCRIPT.
-- ------------------------------------------------------------

cmd("wizard.load CREATE_ZONE.wzd")
cmd("wizard.show")

cmd("app.activate")
cmd("app.center")


cmd("select.index", 0,1)
cmd("app.menu", "edit.facet")

cmd("select.index", 1,2)
cmd("app.menu", "edit.facet")

cmd("select.index", 2,3)
cmd("app.menu", "edit.facet")

cmd("select.index", 3,0)
cmd("app.menu", "edit.facet")


PLN = add("object", "wall", "plane")


for w = 0,3,1 do
    
    x, y, z = get("object.node.position", w, 0)
    add("node", PLN, w, x, y, z)
   
    
end
cmd("object.done")


PLNa = add("object", "wall", "plane")


for g = 0,3,1 do
    
    x, y, z = get("object.node.position", g, 16)
    add("node", PLNa, g, x, y, z)
   
    
end
cmd("object.done")

--cmd("select.all")
--cmd("selection.group")

cmd("view.redraw")

AttachmentSize
CREATE_ZONE.wzd52.31 KB

HOW WOULD YOU RATE THIS SCRIPT ?

No votes yet


Navigation

User login

Translate Site To: