Shapesheet - Shape Data - Clearing Default Values?

Started by natelfo, May 24, 2019, 05:09:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

natelfo

I am making various versions of a shape based off of a master and I am using a simple VBA script to remove the Shape Data section, then add it again, and as soon as I add a row (AddRow visSectionProp, 0, visTagDefault), it puts all the rows back that were in the master. It requires a visTag and the only one that works for this section is Default. How can I either break the link to the master, or clear the default values so that I can start from scratch in the Shape Data section for this new shape using VBA?

Paul Herber

Doing this manually, you want to open the Document Stencil, then delete the appropriate master from there. That will break the link to the master.
In code:

shape.master.delete

Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/