Dimension.GetCurve


Dimension.GetCurve

Dynamo Hierarchy: Rhythm>Revit>Elements>Dimension>Dimension.GetCurve

Description:

This will obtain the underlying curve of the dimension string.

Inputs:

dimension : Dimension

Outputs:

dimensionLine : Curve

Advertisements

One thought on “Dimension.GetCurve

  1. Help me, please ! :
    import clr
    clr.AddReference(‘RevitAPI’)
    from Autodesk.Revit.DB import *
    clr.AddReference(“ProtoGeometry”)
    from Autodesk.DesignScript.Geometry import *
    clr.AddReference(“RevitNodes”)
    import Revit
    clr.ImportExtensions(Revit.GeometryConversion)

    clr.AddReference(“RevitServices”)
    import RevitServices
    from RevitServices.Persistence import DocumentManager
    from RevitServices.Transactions import TransactionManager

    doc = DocumentManager.Instance.CurrentDBDocument
    uiapp = DocumentManager.Instance.CurrentUIApplication
    app = uiapp.Application
    uidoc=DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument
    dims = UnwrapElement(IN[0])
    curves=[]
    TransactionManager.Instance.EnsureInTransaction(doc)
    curves.append((dims.Curve).ToProtoType())
    TransactionManager.Instance.TransactionTaskDone()
    OUT = curves

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.