welcome to creating a wall in dynamo
using Python will use the dynamo Python
script to generate the wall so the next
thing we'll do is we'll add our Revit
node and we'll go ahead and import Revit
itself once we've imported Revit itself
we can go ahead and get the elements by
the extending Revit and getting the
elements the next part we want to do is
actually get the document and the way we
get the document is by using Revit
services from rabbit services we want to
actually get the persistent document
manager so we'll go ahead and import it
and then we actually want to get the
track the transaction and we'll import
the transaction manager we'll send in
the document into the dock using the
current document that we're actually
using so it'll be the instance and then
we'll grab the API the rabbit API itself
from Autodesk with API from the database
and I'm going to import the X Y Z the
line in the wall and the user will send
in the length and the level that they
want to associate the base of the wall
and I need to unwrap the level so I'm
casting it in into a way that Python can
actually read it
and once I do that I'll get a couple of
XYZ so you'll get your start and end
point line and you will need to begin
your transaction this is a handshake
with the
revit telling it that you're going to do
something you're going to begin a
transaction and you want to use the
document which is your current document
and you're going to generate a line not
not an actual physical line just a just
a line in kind of programming and then
inside that you want to create your wall
you want to send it into your document
and the line you generated from point
your first point to your second point
you want to then get the level ID and
then in the transaction you actually
want to finish off the transaction by
using the transaction tasks done in that
instance and then you can send your wall
out to the Dynamo the script actually
failed and yeah so there's two periods
at the very first of the CLR dot dot
should be sealer dot reference on line
three all right we'll just go ahead and
fix that by replacing it and there you
go
it just built builds a wall and here's
the code I will post it somewhere either
on my blog or or try trying to find a
new new place to host code that you can
copy and paste or kind of follow along
or manipulate as as you'd like anyways
thank you for watching