AnsweredAssumed Answered

API: Hide sketches in drawings, but keep the dimensions visible.

Question asked by Ulf Stockburger on Nov 15, 2019
Latest reply on Nov 17, 2019 by Ulf Stockburger

Hi all

 

I have an issue, and I hope someone will point me in the right direction.


How can the API be used to hide sketches in drawings, but keep the dimensions visible?
Show/Hide Dimensions
My thought was to set every dimension of the sketch to visible. After I had checked it, I saw that they have already been set visible, but they are not visible in the drawing.

Set displayDim = swfeat.GetFirstDisplayDimension
Do While Not displayDim Is Nothing
    Debug.Print displayDim.GetNameForSelection
    Set swAnnotation = displayDim.GetAnnotation
    Debug.Print swAnnotation.Visible
    Set displayDim = swfeat.GetNextDisplayDimension(displayDim)
Loop

Any thoughts?

 

BiI SAP-PDM 

Outcomes