It is currently Sun May 19, 2013 2:17 am

All times are UTC





Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sun Jul 17, 2011 4:56 pm 
Offline
MCAD Lurker

Joined: 17 Jul 2011
Posts: 3
Country: United States
State: Texas
CAD System: Inventor
I am new to inventor and VB, so this may be a question with an easy solution...

I an making assemblies that use the same parts but with different spacing, some of the parts must change length as the spacing changes. I have coded that out and it works great. Now what I want to do is update the part numbers and descriptions of the individual components as the assembly changes. I have figured out a way to write it in the ilogic of the actual part, and as the asembly changes the length of the part the properties update. But I want to be able to reference the spacing on the asemblies(which is where the part number and description come from). It would be way less labor intensive, but I can't find a way to reference the properties of the individual components in the assembly's iLogic.

Thanks in advance!


Share on FacebookShare on TwitterShare on DiggShare on DeliciousShare on TumblrShare on Google+
Top
 Profile  
 
PostPosted: Mon Jul 18, 2011 2:12 pm 
Offline
MCAD Lurker

Joined: 17 Jul 2011
Posts: 3
Country: United States
State: Texas
CAD System: Inventor
Thanks anyway guys, I got it. There is the iProperties.Value(ass'y use) command. That lets use change the properties of components from the assembly.

For anybody else who is new to the whole thing and has the same problem the code looks like this:

iProperties.Value("part1:1", "Project", "Part Number") = Whatever you want it to be

You have to change the part1:1 to the name of the part you want to change, and change the project to the name of your project, and the part number you can change to any property name of the part(description or whatever)
If you want to do this for more than one part, just copy paste the code to the next line and change it again.


Top
 Profile  
 
PostPosted: Mon Jul 18, 2011 3:44 pm 
Offline
MCAD Lurker

Joined: 17 Jul 2011
Posts: 3
Country: United States
State: Texas
CAD System: Inventor
Just kidding, Don't change the Project name. That is a reference to the project tab in the properties window. So just leave it "Project" and it works.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
POWERED_BY