microsoft / semantic-link-labs

Early access to new features for Microsoft Fabric semantic link.
MIT License
60 stars 4 forks source link

Script out semantic model #24

Closed GilbertQue closed 1 day ago

GilbertQue commented 2 days ago

Hi there

I really like the new sempy_labs module.

Would it be possible to create the object to script out and or replace the semantic model?

The reason is sometimes I want to get a copy of the semantic model. And other times I want to do a bulk replace and this makes it a lot easier.

m-kovalsky commented 2 days ago

Thanks Gilbert. Are you trying to script out the entire model? Have you tried the get_semantic_model_bim and create_semantic_model_from_bim functions? If this doesn't help, please give an example of what you are trying to do.

GilbertQue commented 1 day ago

Hi Michael, I somehow managed to miss that. I can get the information I need from the get_semantic_model_bim. I tried it with another error which I will a separate issue so that others who are searching can find this helpful.