
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to modify the subject code and am having problems. I also see things that raise a number of questions.
One issue is my code to change the Marker Style in a Figure Style throws a run time error. In the function declared by CreateFigureStyle(sStylename As String) As AeccSurveyFigureStyle, I added the following code in a With oFigureStyle block:
.FigureLinesDisplayStylePlan.Layer = "V-SURV-FIGR"
.FigureLinesDisplayStylePlan.Linetype = "BYLAYER"
.AdditionalMarkerStyle.Name = "Survey Sideshot"
The first two work, the third is where the error is generated. The default marker style name is "Basic". As I work on this I have allowed it to modify the style created on the first run and discovered if I edit the style manually to make it "Survey Sideshot" (no quotes) when I rerun the code it does not throw the error.
I even tried changing the name in the Locals window, but the same error occured. In fact, once it is named "Survey Sideshot", I cannot change it back to "Basic" in code or the VBA IDE. I can only change it in the dialog box within the Prospector.
What am I doing wrong?
Also to set the marker syle layer. the code in the example is:
.AdditionalMarkersDisplayStyle2d.color = acByLayer ' example code used blue
but the object properties list
- AdditionalMarkersDisplayStyleModel
- AdditionalMarkersDisplayStylePlan
- AdditionalMarkersDisplayStyleProfile
as the properties, not AdditionalMarkersDisplayStyle2d
What's up with that?
Thanks for any guidance you can offer.
Solved! Go to Solution.