Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am looking for the way to update SettingsCmdCreatePoints layer programmatically.
Here is my sample code :
using (Transaction tr = acadDocument.Database.TransactionManager.StartTransaction())
{
var pointSettings = Autodesk.Civil.ApplicationServices.CivilApplication.ActiveDocument.Settings.GetSettings<Autodesk.Civil.Settings.SettingsCmdCreatePoints>() as SettingsCmdCreatePoints;
pointSettings.Layer.Layer.Value = "New Layer";
tr.Commit();
}
Code works fine no error so far, but does not update "Create Points" layer
Solved! Go to Solution.