Revit Lineweights - Export

@john_pierson

I am trying to figure out a way to export lineweights so that I can more easily work with them.

I have found on revitapidocs the section ’ PostableCommand Enumeration’ that has under it’s members ‘Lineweights’ which ‘Creates or modifies line weights.’.

I don’t see any drop downs for constructors though, so is this part of the API that is not usable?

It looks like it let me import ‘Namespace’, but I’m not sure how you reference the ‘Members’ list of the API.

Thanks

Are you wanting to create line weights? Postable commands end up firing off the command as if you were in Revit so you would see dialogs and whatever else. So that wouldn’t be the place to look for this.

I think the ideal situation would be the ability to export them to a spreadhseet and then import the updated data.

Going through each of these line items individually is a pain.

You want both import and export from the sound of things.
But alas. No. There is no api access to this information.
Autodesk Feature Request CF-3772.

3 Likes