Dave Paul 发表于 2022-7-8 21:20:20

Solidworks API - Programmatica

I am selecting dimensions in a part file for an operation.After the operation is complete, I run a "swPart.HideDimension" (so I don't select them twice), which works properly.
 
To recover when I'm done, I need to programmatically loop through all the dimensions in the part and un-hide them.I have searched and searched and cannot find the trick.Lots of drawing stuff, no part stuff.
 
Is it annotation, or something else?
 
Thank you.

Dave Paul 发表于 2022-7-8 22:49:46

I got it.
 
Shortened....
 
Set swDispDim = swFeat.GetFirstDisplayDimension
While Not swDispDim Is Nothing
    Set swAnn = swDispDim.GetAnnotation
    swAnn.Visible = swAnnotationVisible
    Set swFeat = swFeat.GetNextFeature
Wend
页: [1]
查看完整版本: Solidworks API - Programmatica