I can see classes ItemType and Picklist in MstnPlatformNET help. What I can't see is the way to associate a Picklist with an ItemType property. That is, how do I write code that informs MyItemType.MyProperty that its values should be restricted to those specified in MyPicklist?
With MicroStation CONNECT Update 12, Picklists are added to the C++ MicroStationAPI. The functionality is similar to the .NET API. However, C++ doesn't provide the CustomProperty::PickListName property to assign a Picklist to an Item Type Property.
CustomProperty::PickListName
Hi Jon,
Thank you very much for your questions. You just need to write similar code below:
MyProperty.PickListName = APickListNameWhichIsInPickListLibrary;
This isn't in the blogs which I've written. I'll write a new blog includes it in the future.
Regards,
Colin
Answer Verified By: Jon Summers
Colin Wang said:This isn't in the blogs which I've written
Tell us more about your blogs!
Regards, Jon Summers LA Solutions
Please access below link to get more new blogs which are very helpful.
communities.bentley.com/.../weblog
Yongan.Fu said:Please access below link to get more new blogs
That link now leads to this page, which has a single topic: Bentley Institute Going Digital Event. What happened to the other blogs?
Colin Wang said:MyProperty.PickListName = APickListNameWhichIsInPickListLibrary;
I can see that in the MstnPlatformNet documentation. Unfortunately I can't find an equivalent method for C++ in the MicroStationAPI documentation.
Jon Summers said:I can't find an equivalent method for C++ in the MicroStationAPI documentation
From Update 13 we can use CustomProperty.SetPickListName. Hurrah!
CustomProperty.SetPickListName
Hi Jon Summers,
Having received notification of your most recent reply on this thread, I am adding the response below to close the loop on this point within this thread too.
Jon Summers said:Yongan.Fu said:Please access below link to get more new blogs That link now leads to this page, which has a single topic: Bentley Institute Going Digital Event. What happened to the other blogs?
A number of previous Blogs located under Developers and Programming (a general public programming blog area) were specific to MicroStation Programming and relocated (one time only) to their respective location: MicroStation Programming Blogs.
Bob