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

change properties components together

  • Thread starter Thread starter Miki182
  • Start date Start date

Miki182

Guest
how can I change the custom iproperties of the individual component while saving the axieme using a vba code?
if I use education

dim doc as document
set doc = thisapplication.activedocument

I continue to access the property of the axieme

graze
 
how can I change the custom iproperties of the individual component while saving the axieme using a vba code?
if I use education

dim doc as document
set doc = thisapplication.activeeditdocument

I continue to access the property of the axieme

graze
test with change in bold
 
Okay, try explaining what you want to get, maybe by posting the code.

I can assure you so
Code:
    dim odoc as document
    set odoc = thisapplication.activeeditdocument
in vba if you are in a set and change the properties of one part works (it is a coder that I use to have all the iprops in one screen without continuing to jump from one side to another)
 
and how do you select the single component you want to change iproperties when you save a set? You want to pass them all?
 
Hi.
You should say well what the result you want to get, change iproperties is very simple.
You have to know:
  1. What documents do you want to edit? (this is enough to make a cycle on allreferenceddocuments property and select them according to your criteria)
  2. for each chosen document you must load the customproperties set from the command
  3. propertysets.item("inventor user defined properties")
  4. then cycles the properties contained to change them and if you do not find what you are looking for then create
  5. save the document
the documentation of bees here:1580884218965.webpall this can also be done in ilogic where you would have the advantage of using the triggers. If I'm not wrong from vba you can't intercept events and what I understand you want to do this every rescue operation.
the alternative is to make a custom add-in. I've done it myself www.dnsistemi.com, I got a little bit.
 

Forum statistics

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

Members online

No members online now.
Back
Top