« Sweep PickPath Tolerance Criteria | Main | Beam Bottom Endpoint »

October 17, 2012

Comments

Is there anyway to create a line style and Line Pattern with the API in 2013?

How can one determine the guid of an object style? I want to be able to at least delete object styles. It would even be better if I knew how to rename them. I'd appreciate the help.

Dear Matt,

Have you looked at the LinePattern class?

There is a LinePatternElement.Create method...

Cheers, Jeremy.

Dear Wim,

The GUID of an object style is returned by the standard Element.UniqueId property.

How to delete an object style is demonstrated above.

Cheers, Jeremy.

Dear Matt,

Maybe there is something of use in here?

http://forums.autodesk.com/t5/Autodesk-Revit-API/Create-Line-Pattern-Type/td-p/3666094

Cheers, Jeremy.

Is renaming possible?

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource