Aaron Heathcote wrote:
Does anyone have a solution to open up an SLDDRW and remove all custom properties without the Document Manager?
I have requested a key a couple of times but they haven't come through yet
You need to be on subscription to get the key. So have you checked the spam/junk emails as sometimes the email may get to these zones? Have you asked your VAR to follow up or find why key was not given?
Alternatively you can use Task Scheduler or this tool #TASK to remove the properties.
Hi Deepak, yes we are on subscription and I have contacted them also....
for now, I have worked it out from another couple of threads. For anyone else that comes across this problem here is my code:
swModelComp = (SldWorks.ModelDoc2)swApp.ActiveDoc;
swModelDocExtComp = swModelComp.Extension;
object PropNames = default(object);
object PropTypes = default(object);
object PropValues = default(object);
swCustPropMgrComp = swModelDocExtComp.get_CustomPropertyManager(String.Empty);
swCustPropMgrComp.GetAll(ref PropNames, ref PropTypes, ref PropValues);
string asCustPropName = (string)PropNames;
string asCustPropValues = (string)PropValues;
for (int t = 0; t < asCustPropName.GetUpperBound(0) - 1; t++)