[OCMPV U16 VBA] RemoveElement permission denied

When trying to delete curve element from DGN file it works in Microstation but not in Opencities Map Powerview.

It shows error "Permission denied". There is no issue when deleting other type of elements.

DGN example and mvba attached.

Delcurves.mvba

Curve.dgn

  • Hi Oto,

    please be aware this is general Developers and Programming forum, whereas your question is specifically about OpenCities Map PowerView. I recommend to move your question to Geospatial Programming forum. To move existing discussion to another forum, use More > Move tool, available under your original post.

    Also, please respect the best practices and specify exactly what product version you use. To modify the question subject to include product and version (something like [OCMPV CE U16] RemoveElement permission denied) is recommended too.

    It shows error "Permission denied". There is no issue when deleting other type of elements.

    I do not see this issue, when tried in OpenCities Map Advanced CE U16 (10.16.00.80).

    You do not mention what workspace do you use and whether e.g. XFM project is active.

    The elements themselves are plain MicroStation elements, with no attributes or any other (XFM) data attached, so the limitation seems to be caused by product itself or some its setting.

    With regards,

      Jan

  • I recommend to move your question to Geospatial Programming forum.

    I did consider posting it there but as no Bentley Map SDK is used it may cause confusion. 

    I do not see this issue, when tried in OpenCities Map Advanced CE U16 (10.16.00.80).

    You do not mention what workspace do you use and whether e.g. XFM project is active.

    No workspace is used and no XFM project just plain DGN. Of course Map treats them as Inferred feature.

    Tried in Map Advanced and yes it works there so it is specific to OCMPV. Logged a SR so waiting for an answer. 

    Any idea how to check permissions before element deletion so to catch the error? 

  • I did consider posting it there but as no Bentley Map SDK is used it may cause confusion. 

    Why it should cause any confusion? Programming forums are not there for SDK only, but for any programming  (including VBA).

    Whereas in Geospatial Programming, the questions are read by "geo people", this forum is visited by ... nobody, and rarely.

    Tried in Map Advanced and yes it works there so it is specific to OCMPV.

    It would be interesting to know what curve (element id) causes this problem. Is it random, the first one, last one?

    Any idea how to check permissions before element deletion so to catch the error? 

    Cannot be told until it is clear why this problem happens in PowerView.

    And even then, I think it is not possible, because VBA is ... just extremely limited tool, not aware of geo features. And because it is not caused by an element itself, it is not how to e.g. call MDL to check the element in detail.

    Regards,

      Jan