AnsweredAssumed Answered

Apply LayerX Files from Portal

Question asked by earnshawgetech on Nov 25, 2019
Latest reply on Dec 2, 2019 by UHarano-esristaff

I can store a layerX file in Portal and access from my Pro Client with it's item ID:


Item testLayerLryx = ItemFactory.Instance.Create(lyrxId, ItemFactory.ItemType.PortalItem);


Great. However - can I use this object to apply symbology from the layerX entity to an existing layer already loaded into Pro. It looks tricky as the constructor only seems to accept a filepath and a CimLayerDocument.


LayerDocument layerDoc = new LayerDocument();

- but I may going down the wrong path in any case.


Also, the LayerFactory only makes layers, but I can't see anything similar for layer files.


Anyway, any help - much appreciated.