Message 1 of 13

Not applicable
03-12-2014
12:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I would like to know how to create a Survey Figure Style and Survey Figure Label Style using C#. I have the following code generated and it creates the Figure Style but during the creation process I want to be able to set the Draw lot line figures in plan option under 3D Geometry. I have searched high and low for a example but I can't find one. Can someone please guide me in the right direction.
Thanks,
Gerald Piotrowski
Database db = Application.DocumentManager.MdiActiveDocument.Database; civDoc = CivilApplication.ActiveDocument; ObjectId surveyFigureId; using (Transaction trans = db.TransactionManager.StartTransaction()) { surveyFigureId = civDoc.Styles.SurveyFigureStyles.Add("New Figure Style"); SurveyFigureStyle surveyFigureStyle = surveyFigureId.GetObject(OpenMode.ForWrite) as SurveyFigureStyle; surveyFigureStyle.CreateBy = "C# Application"; surveyFigureStyle.NetworkDisplayMode = SurveyElevationDisplayType.UseElevation; DisplayStyle figureDisplayStyle = surveyFigureStyle.GetDisplayStylePlan(SurveyFigureDisplayType.FigureLines); figureDisplayStyle.Visible = true; if (LayerExists("A-BLDG")) { figureDisplayStyle.Layer = "A-BLDG"; } else { CreateLayer(""); figureDisplayStyle.Layer = "A-BLDG"; } trans.Commit(); trans.Dispose(); }
Solved! Go to Solution.