Skip to content

Instantly share code, notes, and snippets.

@Civil3DToolChest
Created March 18, 2014 20:45
Show Gist options
  • Save Civil3DToolChest/9629186 to your computer and use it in GitHub Desktop.
Save Civil3DToolChest/9629186 to your computer and use it in GitHub Desktop.
test command add general note style
[CommandMethod("addGeneralLabelStyle")]
public void addGeneralLabelStyle() // This method can have any name
{
ObjectId labelStyleId = getGeneralLabelStyle("Asphalt");
if (labelStyleId == ObjectId.Null)
{
labelStyleId = addGeneralLabelStyel("Asphalt");
}
setGeneralProperties(labelStyleId, "SHR", "C-ROAD-LABL", true, Autodesk.Civil.OrientationReferenceType.View, true, 110, true);
setTextComponentContents(labelStyleId, "ASPHALT", "Asphalt");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment