In Autocad MEP i can regnerate the catalogs with something like:
CatalogManager catalog = new CatalogManager(); catalog.RegenerateCatalog(Domain.Multi-ViewPartCom
but this will regenerate every catalog that i have loaded for the multi-view part domain. How can i regenerate a single catalog like the bubble popup does when Autocad MEP detects a catalog change?
Using the link will only regenerate the specified catalog and not all catalogs. I would like to perform the same with code.
Solved! Go to Solution.
Sorry, I don't have an answer. Maybe try asking around. But in a mean time, you may try posting to AutoCAD MEP forum. This is AutoCAD Forum. I suspect majority of people are working with vanilla AutoCAD. There may be somebody over there who might be able to answer your question. (or cross post with pointers so that you get maximum exposure, at least.)
I asked about this to AME product team. Unfortunately, they confirm that it is not possible with the current exposure of API. Sorry for the bad news.
Thanks for the reply. I did find a workaround that at least works. It involves reading the catalogs loaded through the registry and removing all but the catalog i want to regenerate. I regenerate the catalog and then reload all of the catalogs by inserting their paths back into the registry. Not elegant but at least it works and is faster than regenerating all the loaded catalogs vs a single catalog.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.