I would like to rename my detail view with the same name found in the FeatureManager.
From my recording I can see that the name is "Drawing View19"
I would very like that name to be something of my choosing. Is that possible with API?
I would like to rename my detail view with the same name found in the FeatureManager.
From my recording I can see that the name is "Drawing View19"
I would very like that name to be something of my choosing. Is that possible with API?
Hello Lasse,
You can use the below code.
Hi Programming Zombie PZ,
Thank you very much for your time. Unfortunately this didn't work.
From my experience SetName2 only works for view that you can manually rename in the FeatureManager.
Detail Views and Section Views are special cases that are automatically named in the FeatureManager. This also mean that their API names have these random names 😟
A similar situation can be said for drawing dimension that you manually add directly on a drawing. They have names in the form of "RD1" and "RD2" etc. From the GUI it is impossible to change these names as the field is greyed out.
But these you can rename using API ( swDim.name = "YourName")
Check the macro codes by @AT in the below post