Auto Dim Walls

Hey,

This code dimensions a wall in a plan.

It works with internal and external, it works with pointy walls, it works with families and intersecting walls.

(upload://g2GPICFWu7YpijDhaPhpN1YGaCq.dyn) (16.9 KB)

Hope that’s useful,

Mark

Edit: I’d made it to create individual dims, but it’s very easy to make it output a single dim, so i’ve added that option
1 Click Dimension Wall.dyn (18.5 KB)

10 Likes

Will it work for the walls in the linked model?

Looks great @Mark.Ackerley!

1 Like

Hey, @Revit_Noob,

The code runs off a pick… I’d need a node to isolate a wall in a linked file? But if you can get that, it’s really easy to replace

ref = uidoc.Selection.PickObject(ObjectType.Element)
targetWall = doc.GetElement(ref)

with targetWall = UnwrapElement(IN[3])

Impressive work !
Thank you for sharing.

1 Like

Thanks guys (for all the help :smiley:) it’s really basic code… if anyone would like to give it a tidy and put it in a package, that would be great :slight_smile:

1 Like

Maybe have the IN port for selected walls be optional, if no walls are given (input is null or empty or is not of category Wall) then do the pick wall code, else use the given walls? Best of both! :slight_smile:

1 Like

Thanks Dan,

At the minute, my code is taking a single wall… that’s ended up being complex enough!

When I’ve got more time, I’ll go back and rewrite to work with a list which may contain 1 or more walls. If someone fancies doing that for me, I wouldn’t complain!

It also needs a bunch of error catching, tidying to make more defs and some more commenting. Probably a section/elevation version would also be good.

For the minute I’m just glad to have something working acceptably :slight_smile:

Cheers,

Mark

Ha, fair enough Mark… We can put that in the feature requests section! Ha! Great work though mate! :slight_smile:

1 Like

Hah, yeah I’ll need to get a github :stuck_out_tongue:

Thanks for your help, that bit for getting the height of the intersection line is awesome!

1 Like

What about column grids in a linked model? And column grids in host model?

Hey,

Apologies I’m away from my PC… Yes I expect so, there are quite a few nodes in the genius loci package for getting ‘references’, you can then feed those into a dimension by references node… Perhaps do a few forum searches?

I used Python because everything got very knotty and particular… The references are tied to geometry but, for example, the edges of a face do not return a reference, only the edges of the original solid. I would rather have used someone else’s nodes :slight_smile:

Hope that’s useful,

Mark

1 Like