Senthilnathan Pl

Reading the Reference Model name of a Drawing View with instance number

Discussion created by Senthilnathan Pl on Nov 2, 2020
Latest reply on Nov 4, 2020 by Senthilnathan Pl

Dear All,

Is there any way to read the reference model name of a drawing view with instance number.

So far I have been able to read the name of selected selected Drawing view and its reference model path. But could not get its instance number

Set swView = swSelMgr.GetSelectedObject6(1, -1)

Debug.Print " Drawing view = " + swView.Name
Debug.Print " Referenced model name = " & swView.GetReferencedModelName

 

I know, Drawing view instance number will be same as model instance number. But it is not a wise approach to use the Drawing view instance number.

So if there is any way to iterate the name of a reference model with instance number. kindly share your comments and answers.

Eddy Alleman

Outcomes