Skip to content

Instantly share code, notes, and snippets.

Civil3DToolChest

Block or report user

Report or block Civil3DToolChest

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Civil3DToolChest
Civil3DToolChest / C3DTC_General Text Abbreviations
Created Sep 3, 2013
Civil 3D Settings Abbreviations: General Text abbreviations.
View C3DTC_General Text Abbreviations
public void setInfinityAbv(string abv)
{
civilDoc.Settings.DrawingSettings.AbbreviationsSettings.GeneralText.Infinity = abv;
}
public void setLeftAbv(string abv)
{
civilDoc.Settings.DrawingSettings.AbbreviationsSettings.GeneralText.Left = abv;
}
View C3DTC_Civil_Settings_Object_Layer_Explanation
public void SetAlignmentLayer(string layerName, Autodesk.Civil.Settings.ObjectLayerModifierType modifierType, string modifierValue, Boolean locked)
{
civilDoc.Settings.DrawingSettings.ObjectLayerSettings.GetObjectLayerSetting(Autodesk.Civil.Settings.SettingsObjectLayerType.Alignment).LayerName = layerName;
civilDoc.Settings.DrawingSettings.ObjectLayerSettings.GetObjectLayerSetting(Autodesk.Civil.Settings.SettingsObjectLayerType.Alignment).Modifier = modifierType;
civilDoc.Settings.DrawingSettings.ObjectLayerSettings.GetObjectLayerSetting(Autodesk.Civil.Settings.SettingsObjectLayerType.Alignment).ModifierValue = modifierValue;
civilDoc.Settings.DrawingSettings.ObjectLayerSettings.GetObjectLayerSetting(Autodesk.Civil.Settings.SettingsObjectLayerType.Alignment).Locked = locked;
}
public void SetAlignmentLayer(string layerName)
{
View C3DTC_Civil_Settings_Tools_Object_Layers
#region Object Layer Settings
public void SetAlignmentLayer(string layerName, Autodesk.Civil.Settings.ObjectLayerModifierType modifierType, string modifierValue, Boolean locked)
{
civilDoc.Settings.DrawingSettings.ObjectLayerSettings.GetObjectLayerSetting(Autodesk.Civil.Settings.SettingsObjectLayerType.Alignment).LayerName = layerName;
civilDoc.Settings.DrawingSettings.ObjectLayerSettings.GetObjectLayerSetting(Autodesk.Civil.Settings.SettingsObjectLayerType.Alignment).Modifier = modifierType;
civilDoc.Settings.DrawingSettings.ObjectLayerSettings.GetObjectLayerSetting(Autodesk.Civil.Settings.SettingsObjectLayerType.Alignment).ModifierValue = modifierValue;
civilDoc.Settings.DrawingSettings.ObjectLayerSettings.GetObjectLayerSetting(Autodesk.Civil.Settings.SettingsObjectLayerType.Alignment).Locked = locked;
}
You can’t perform that action at this time.