Community
Inventor - Deutsch
Das Forum für alle Fragen rund um Autodesk Inventor, iLogic, Factory Design, Automation und mehr. Der Ort zum Fragen stellen, Antworten erhalten und Wissen teilen.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

iProperties automatisiert löschen

4 ANTWORTEN 4
GELÖST
Antworten
Nachricht 1 von 5
Anonymous
1674 Aufrufe, 4 Antworten

iProperties automatisiert löschen

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

4 ANTWORTEN 4
Nachricht 2 von 5
mdavis22569
als Antwort auf: Anonymous

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

Nachricht 3 von 5
Anonymous
als Antwort auf: mdavis22569

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

Nachricht 4 von 5
mdavis22569
als Antwort auf: Anonymous

'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
als Antwort auf: mdavis22569

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

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report