Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Retrieving Line Styles from Revit

1 REPLY 1
Reply
Message 1 of 2
Anonymous
534 Views, 1 Reply

Retrieving Line Styles from Revit

Hi,

 

I have been trying to retrieve the available line styles within the active revit document to populate a plugin combobox with them. I am using C# language. So far, I have come to the conclusion to use GetLineStyleIds method, but still don't know how it really can be used - this is apparently new in 2013, and no complete documentation exists on how to implement it. Does anybody know an example on how to do this?

 

Thanks for your help.

1 REPLY 1
Message 2 of 2
jeremytammik
in reply to: Anonymous

Dear edh777,

 

What is a line style, please?

 

I suggest that you explore your Revit model using RevitLookup. That will show you what is there and how to access it. Maybe you mean LinePatternElement? I see a lot of those when looking through Add-Ins > Revit Lookup > Snoop DB... > LinePatternElement.

 

Best regards,

Jeremy
--
Jeremy Tammik
Autodesk Developer Network -- http://www.autodesk.com/joinadn
The Building Coder -- http://thebuildingcoder.typepad.com




Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Rail Community