# Label Set Name import for profiles

**URL:** <https://forum.dynamobim.com/t/label-set-name-import-for-profiles/93839>\
**Category:** Civil 3D\
**Tags:** python, dynamo\
**Created:** [September 18, 2023, 12:21am UTC](https://forum.dynamobim.com/t/label-set-name-import-for-profiles/93839 "2023-09-18T00:21:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ntma85](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ntma85/32/186547_2.png) [@ntma85](https://forum.dynamobim.com/u/ntma85)\
**Post date:** [September 18, 2023, 12:21am UTC](https://forum.dynamobim.com/t/label-set-name-import-for-profiles/93839/1 "2023-09-18T00:21:52Z")

</div>

I’m seeking assistance in Civil 3D and was wondering if there’s a specific node or Python code that can be used to efficiently import label sets for multiple profiles into existing profile views.

a similar node for alignments coming from Camber, but we haven’t come across a similar solution for profiles yet.

Or is it possible to change in the following code to only change import label sets?

```
result = []

# Get the active document in the AutoCAD session:
with adoc.LockDocument():
    with adoc.Database as db:
        with db.TransactionManager.StartTransaction() as t:
            # get alignment                    
            alignId = align.InternalObjectId
            # set layer same as alignment
            layerId = alignId.LayerId
            # set profile style
            styleId = civdoc.Styles.ProfileStyles[style]
            # set label set
            labelSetId = civdoc.Styles.LabelSetStyles.ProfileLabelSetStyles[label]
            for n in name:
                try:
                    # Creates a new profile
                    profId = Profile.CreateFromSurface(n, alignId, layerId, styleId, labelSetId)

                except Exception() as ex:
                    MessageBox.Show(ex.message)

            t.Commit()
for n in name:
    result.append(align.ProfileByName(n))
return result

alignment = IN[0]
names = IN[1]
surface = IN[2]
StyleName = IN[3]
LabelSetName = IN[4]

if not isinstance(names, list):
    names = [names]

OUT = create_profiles(alignment, names, StyleName, LabelSetName)

```

Your insights and guidance on this matter would be greatly appreciated. Thank you in advance for your assistance.
