Untitled

mail@pastecode.io avatar
unknown
csharp
8 days ago
770 B
1
Indexable
Never
       foreach (SelectedObject selObj in SelRes.Value)
       {
           Alignment alinhamento = tr.GetObject(selObj.ObjectId, OpenMode.ForRead) as Alignment;
           string profileName = $"{prefixo}_{alinhamento.Name}";

           ObjectId IDAlinhamento = selObj.ObjectId;
           ObjectId IDProfileStyle = civilDoc.Styles.ProfileStyles["Terreno"];
           ObjectId IDProfileLabelSet = civilDoc.Styles.LabelSetStyles.ProfileLabelSetStyles[0];
           ObjectId IDLayer = TabelaLayers["0"];
           Profile.CreateFromSurface(profileName, IDAlinhamento, surfaceId, IDLayer, IDProfileStyle, IDProfileLabelSet);
          // Profile profile = Profile.CreateFromSurface(profileName, civilDoc, NameId, surfaceId, idLayer, profileStyleId);
       }
Leave a Comment