I'm attempting to create a profile view and then modify the label by overrriding the text components. Unfortunately the profile view bands don't populate the labels until after my command is complete making it not possible to modify them in one command. Is there a way to update the band to have it show the labels?
Or do I really have to make my user run two commands to make this happen?
Civil 3D 2013
Christopher
I should mention that regen and Application.UpdateScreen do not work.
Christopher
Hi Chris,
What's the status of this post ? Did you get this working by now ?
Thanks,
Not really, I ended up using two commands to accomplish the task. Additionally the bands don't recognize the lines in it's extents so you end up being a little short using this method if it extends beyond the text in the band label. Another issue is the title section of a band isn't included in the extents, so you really don't know where it is. Since the bands change size with the scale, it becomes difficult to determine what size it is. This is especially true if you try to run a command in paper space through a viewport. The band takes up some seemingly unkown scale factor and everything stops working. Other then that the customer seems happy, just gets confused on what the heck they should put in the dialog box I created for the title portion of the band when they change plot scales.
Christopher
Hi, do you have any solution of refreshing Band Labels? I have same problem after creating a curve to profile, labels of the curve cannot been displayed until I change some parameters of Curve , for example, length of curve and change it back.
Thank you!
天涯海角的山姆
您认为此帖子是否有用?欢迎为此帖点赞。
您的问题是否已得到解答?请点击“接受解答”按钮。
I resolved my own problem by ProfileView.Bands.SetTopBandItems(ProfileView.Bands.GetTopBandItems());
It looks ridiculous but works.
Maybe I just need to reset one item of all bands, but I don't know how to get one, so I set them all.
天涯海角的山姆
您认为此帖子是否有用?欢迎为此帖点赞。
您的问题是否已得到解答?请点击“接受解答”按钮。