AnsweredAssumed Answered

Add View label

Question asked by Sébastien Denis on Jan 28, 2021
Latest reply on Feb 3, 2021 by Sébastien Denis

Hello,
Does anyone have an example of how to add a view label in vba?
Manual method without code for example:
Add View Label
I would like to do the same thing in vba, but I haven't found an example.
Below is a part of my current code to modify

 

Set swView = swDraw.CreateDrawViewFromModelView3(sOutputFolder + ".sldprt", "*Isométrique", 0.15, 0.17, 0)
swView.UseSheetScale = True
bRet = swView.SetDisplayMode3(False, swSHADED, False, True)
iDisplayIn = swDisplayTangentEdges_e.swTangentEdgesVisible
iDisplayIn = swDisplayTangentEdges_e.swTangentEdgesVisibleAndFonted
swView.SetDisplayTangentEdges2 (iDisplayIn)
swView.ReferencedConfiguration = V(i)
'Insert here a Label View for swView

Outcomes