How to get LineWidth through LineWeight

How to get LineWidth through LineWeight

1073092683
Contributor Contributor
1,637 Views
7 Replies
Message 1 of 8

How to get LineWidth through LineWeight

1073092683
Contributor
Contributor

How to get the actual width of a line through LineWeight

0 Likes
Accepted solutions (1)
1,638 Views
7 Replies
Replies (7)
Message 3 of 8

1073092683
Contributor
Contributor
Thank you for your answer, but what I really want to know is how to obtain the thickness of line width in RevitAPI
0 Likes
Message 4 of 8

jeremy_tammik
Alumni
Alumni

Aha. Well, that should be easy, assuming that you understand the Revit category and style settings hierarchy:

  

    

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 5 of 8

1073092683
Contributor
Contributor

I already know the value of the red part, but I want to get the value of the blue part through the value of the red part,thank you!

屏幕截图 2023-01-08 211127.png

0 Likes
Message 6 of 8

jeremy_tammik
Alumni
Alumni

Have you used RevitLookup to explore the contents of the Revit database in the appropriate locations? Basically, everything that can be accessed through the API can also be seen in RevitLookup, and that will also show you the path to retrieve it programmatically.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 7 of 8

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @1073092683 ,

 

Please take a look at this below forum post

https://forums.autodesk.com/t5/revit-api-forum/accessing-revit-lineweights/m-p/7978829#M30714

 

 

 

 

 

 

 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

Message 8 of 8

jeremy_tammik
Alumni
Alumni
Accepted solution

78 votes so far, that should give some weight to this wish: 

  

https://forums.autodesk.com/t5/revit-ideas/access-line-weights-settings-from-dynamo-and-or-revit-api...

  

Please add your vote!

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open