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

occurence iproperties -idw

  • Thread starter Thread starter pompeo79
  • Start date Start date

pompeo79

Guest
Bye to all,

Is there a way to recall, for example, balloons on the table, the name of the party's instance (occurence-iproperties) ?
 
if you create in the style library a custom style ball style you can choose which iproperties display. depending on the symbol you use, you can display 1 (pallino), 2 (pallino divided), n (simple line) iproperties among the ones you prefer
 
I know the method.

but I care about the occurrences item, how to recall it in the ball.

equal parts may have different occurrences (instances) names, if renamed.

I want to call that voice back.
 
Where would the voice "occurences"? I have inventor in Italian and I don't understand which property can be. . .
 
every time you do the operation to insert a part/assieme into a set technically insert an instance (occurrence) and on the browser appears part1:1, part1:2, etc. etc. if you click on it you can change the name in the browser of the individual instances even if they are the same "pezzo", which then at browser level would have more nomenclatures: if I did not understand (again) badly Pompey needs the ball to carry what is written in the browser.
 
So, I think it works. passes all the balls and copies us as written in the browser. works as in mode only parts.
the line of the ball dele be one, there can be no silhouettes.
See if you like it... for now I have no time to do more!
Bye!

Code:
    ' assumess the drawing view is created from a assembly.

    public sub testballoon()
        dim odrw as drawingdocument
        set odrw = thisapplication.activedocument
        
        dim osheet as sheet
        set osheet = odrw.activesheet
        
        dim oleader as leader
        dim ointent as geometryintent
        dim ocurve as drawingcurve
        dim oedgepx as edgeproxy
        dim oleadernode as leadernode
        dim ooccurrence as componentoccurrence
        dim odoc as document
        dim oballoon as balloon
        dim obrowser as browserpane
        dim obrowsernode as browsernode
        
        
        for each oballoon in osheet.balloons
            set oleader = oballoon.leader
            
            'assuming the leader is a single line segment

            set oleadernode = oleader.allnodes(2)

            set ointent = oleadernode.attachedentity
    
            set ocurve = ointent.geometry
           
            set oedgepx = ocurve.modelgeometry
    
            set ooccurrence = oedgepx.containingoccurrence
            
            set odoc = odrw.allreferenceddocuments(1)
            
            set obrowser = odoc.browserpanes.activepane
            
            set obrowsernode = obrowser.getbrowsernodefromobject(ooccurrence)
            
            oballoon.balloonvaluesets.item(1).overridevalue = obrowsernode.browsernodedefinition.label
        next
    end sub
 
thanks catafract for time and answers,

I wondered why using it in macros made me mistake.

I'm texting yours now.

Thank you!
 
thanks catafract for time and answers,

I wondered why using it in macros made me mistake.

I'm texting yours now.

Thank you!
Yes, the site code must be adapted to the inventor's vba: few differences but there are. that posted is already for vba.

vb: visual basic, to be used on external compiler to inventor (visual basic express is free from microsoft site)
vba: visual basic for application, is an editor found in various programs (inventor but also word and excel, for example) aimed at creating macros etc. internally to the application that is used, at the price of being a little more "rough".
 
...
vb: visual basic, to be used on external compiler to inventor (visual basic express is free from microsoft site)
...
I believe that visula basic express did not exist anymore, now there is visual study, the express version is always free, that besides vb allows to write also in c++ and c#

Hi.
 

Forum statistics

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

Members online

No members online now.
Back
Top