iProperties automatisiert löschen

iProperties automatisiert löschen

Anonymous
Nicht anwendbar
2.073Aufrufe
4Antworten
Nachricht 1 von 5

iProperties automatisiert löschen

Anonymous
Nicht anwendbar

Hallo Zusammen,

 

ich suche ein Programm, mit dem ich iProperties löschen kann, ohne die IAM / IPT öffnen zu müssen.

Wir haben sehr viele Dateien auf dem Fileserver, die durch PROFILE iProperties verseucht sind, die bereinigt werden müssten.

 

Eine iLogic zum löschen der iProperties ist schon im Einsatz.

 

MFG

 

Sascha May

0 „Gefällt mir“-Angaben
Akzeptierte Lösungen (1)
2.074Aufrufe
4Antworten
Antworten (4)
Nachricht 2 von 5

mdavis22569
Mentor
Mentor

Hallo,

 

 

1)  https://forums.autodesk.com/t5/inventor-general-discussion/how-to-remove-custom-iproperty-with-ilogi...

 

lesen Sie in diesem Thread heraus, es könnte die ilogic Code haben Sie suchen. Curtis ist groß bei iLogic

 

 

2)  Wenn nein, dann könnten Sie die iProperties durch den Windows-Explorer-Update

 

 

 

 

Michael

 

 


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

0 „Gefällt mir“-Angaben
Nachricht 3 von 5

Anonymous
Nicht anwendbar

dies iLgic zum Löschen der Benutzer iProps habe ich im Einsatz:

 

'------- start of ilogic ------


'define custom property collection
oCustomPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")
'look at each property in the collection
For Each oCustProp In oCustomPropertySet
'delete the custom iProperty
oCustProp.Delete
Next


'------- end of ilogic ------

 

zu diesem Code würde ich gerne noch die Bauteilnummer + Autor + Konstrukteur hinzufügen

0 „Gefällt mir“-Angaben
Nachricht 4 von 5

mdavis22569
Mentor
Mentor
'define list of custom properties to delete
Dim MyArrayList As New ArrayList
MyArrayList.add("Hello World 001")
MyArrayList.add("Hello World 002")
MyArrayList.add("Hello World 003")
'define custom property collection
oCustomPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")
'look at each property in the collection
For Each oCustProp in oCustomPropertySet
'check property name against the list you want to delete
If MyArrayList.Contains(oCustProp.name)Then
'delete the custom iProperty
oCustProp.Delete
Else
'skip it
End If
Next

Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

Nachricht 5 von 5

mdavis22569
Mentor
Mentor
Akzeptierte Lösung

Change Hello World001 to Author

Change Hello World002 to whatever you want

 

and add more Hello Worlds for any additional ones you'd like to delete


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature