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

detetes

  • Thread starter Thread starter mula
  • Start date Start date

mula

Guest
Hi. I kindly ask for help...
on inv 2013
I have a series of ipt files (centinaia) where there are custom properties that I would like to delete
I will then copy custom prototypes ok by copying them from a fine file.. .
How can I get rid of them quickly?
in design assistant there is the option "project copy" but there is no "elimina"
Thank you.
 
design assistant>properties>(single/multiple selection of files with ctrl /shift) right-click >iproperties> update values

or if together also from the bom
 
If all of your ipts always have the same iproperties to delete, make a copy in c:\test\ and start this macro by entering it in vba (alt-f11 to access the visual editor basic). Opens all the files in the folder, deletes the iprops you don't need and add the ones you need. you have to add/cut rows but it is intuitive, at the limit you ask.
Bye!


private sub delete_iprop()
dim myfile, mypath, myname
dim oapp as inventor.application
set oapp = thisapplication

dim odoc as document

mypath = "c:\test\" set the path.
myname = dir(mypath) ' retrieve the first entry.

dim opropsets as propertysets
dim ocustprops as propertyset
dim omyprop as property

do while myname <> " start the loop.
' ignore the current directory and the includeing directory.
if myname < > " and myname < > ". then
set odoc = oapp.documents.open(mypath & myname, true)
set opropsets = odoc.propertysets
set ocustprops = opropsets.item("{d5cd505-2e9c-101b-9397-08002b2cf9ae}")

set omyprop = ocustprops.item("iprop_1")' instead of iprop_1 replace custom iproperty to be eliminated
omyprop.delete

set omyprop = ocustprops.item("iprop_2") as above
omyprop.delete

call ocustprops.add("custom value_1", "mynewproperty_1")' to add new iproperty

odoc. save
odoc.close
end if
myname = dir' get next entry.
loop


end
 
I tried as Pompeo79 says.. .
It works. . .
Then I will do so...
I create a mega together with the parts where I have to cancel the custom properties, then with design assistant the gates. . .
Thanks again
 

Forum statistics

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

Members online

No members online now.
Back
Top