Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

change browsername to partnumber

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
j.vanderheijden
588 Views, 4 Replies

change browsername to partnumber

I need to make installation plans on climate ceilings, which are steel cassettes with Meandro tube element located where cold or hot water is flowing through.

 

www.inteco.nl

 

Now it may occur that a cassette is given a code 700 which represents the type of cassette.

 

If inside the cassette is placed a Meandro element its  become a follow number eg 700-01.

 

It may also be that the same cassette No. 700 gets  another Meandro element  and because the cassette has not changed shape the number 700 remains the same but the follow number change eg 700-02.

 

At the moment I change the number in the browser,(inv2012) I therefore want  automatically the  iproperties ,partnumber and stocknumber, to fit.

 

When I go to the BOM, the part- and stock numbers automaticly will be placed.

 

The browser codes are not displayed in the BOM.

 

So if I specify for change I only have to do so in the browser.

 

I wanted to do so by iLogic but then ran into problems.

I found a tutorial from Rob Cohee with ilogic so you won’t forget to fill in your iproperties.

http://ellipsis-autodesk.typepad.com/blog/2010/06/new-ilogic-web-series.html

 

I also wanted to do so with the iproprtie Stocknumber but get an error stating that I must declare the name.

 

How must i declare a name.

 

Also i was told for entering the browse name in ilogic i had to use  displayName, but I get a error stating that the name is Read Only.

 

So how can i, after i change the browse name, automaticly  fill in the iproperties ‘partnumber and/or stocknumber?

Is there an ilogic code for?

Mvg Jos

Your drawings are only as good as the symbols that complete them...
4 REPLIES 4
Message 2 of 5
bobvdd
in reply to: j.vanderheijden

Can you place following rule in your assembly and see if it works for you?

 

doc = ThisDoc.Document
Dim occ As Object
For Each occ In doc.ComponentDefinition.Occurrences
browsername = Split(occ.Name,":")
  iProperties.Value(occ.Name, "Project", "Part Number") = browsername(0)
  iProperties.Value(occ.Name,"Project", "Stock Number") = browsername(0)
Next occ

 

Cheers

Bob




Bob Van der Donck


Principal UX designer DMG group
Message 3 of 5
j.vanderheijden
in reply to: bobvdd

Hi Bob

Thank you very much, this works great.

The only thing i have to think of is that i have to place the part and not to copy the part into the assy.

When i place the part, the BOM counts them apart.

See atachment for the result.

Mvg Jos

Your drawings are only as good as the symbols that complete them...
Message 4 of 5

I work with Autodesk Factoty design and i want to use the browser rule but it isn't work.

I get no error and the part numbers don't go over to the BOM.

Is Factury not the same as Inventor?

Can anyone help me?

Mvg Jos

Your drawings are only as good as the symbols that complete them...
Message 5 of 5
bobvdd
in reply to: j.vanderheijden

The iLogic rule changes the part number and the stocknumber of the files.

Factory assets are a special breed in the sense that these files are read-only (and this is by design).

This of course means that any change you make to the partnumber or stocknumber on an asset file cannot be saved to disk.

 

Bob




Bob Van der Donck


Principal UX designer DMG group

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report