• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

delete thepropertier

  • Thread starter Thread starter and
  • Start date Start date

and

Guest
save it is possible with an ilogic to do these two things:
1 - eliminate a custom value of an iproperties, not only the value but just everything?
2 - Can an ilogic rule be eliminated connected to a .iam or .ipt?

Thank you.
 
ho trovato questo da inserire dentro alla mia ilogic ...

'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


che ne pensate ?
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top