It is currently Mon May 20, 2013 9:33 pm

All times are UTC





Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Mon Oct 25, 2010 7:55 pm 
Offline
MCAD Addict

Joined: 02 Mar 2005
Posts: 764
Currently all IV sheet metal parts have flat pattern width and length as custom iProperties. But we have hundreds (maybe thousands) created before we started adding these properties.
I'm looking to write an IV macro to add these properties to those parts where they are missing to avoid going through the files manually one by one. But since these are in the Vault I need to check the parts back in after after adding the properties i.e. to iterate through a directory Opening - Adding iProperties - Closing and Checking In ?

Is the check in something I can do in the IV macro, or do I have to write a Vault macro which presumably I call from the IV macro? I'm unclear how to proceed with this and would appreciate some guidance.

I've tried the Autodesk Vault forum where it was suggested I use the Task scheduler and Autodesk IV Customisation forum but I thought I'd try my luck here as well.


Share on FacebookShare on TwitterShare on DiggShare on DeliciousShare on TumblrShare on Google+
Top
 Profile  
 
PostPosted: Tue Oct 26, 2010 5:02 am 
Offline
MCAD Contributer
User avatar

Joined: 10 Sep 2007
Posts: 116
Country: France
State: Non US/CAN Resident
CAD System: Inventor
For checking out some parts, you can use this "Imports VaultAddInLib", for using vault API. This is unsupported by ADSK but I used it successfully in the past. Not sure you can Check-in after programmaticaly.

_________________
Christophe S....t
Dev. App. Eng.


Top
 Profile  
 
PostPosted: Tue Oct 26, 2010 4:18 pm 
Offline
MCAD Lurker
User avatar

Joined: 11 Jun 2010
Posts: 19
Country: India
State: Non US/CAN Resident
CAD System: Inventor
PeterCharles wrote:
Currently all IV sheet metal parts have flat pattern width and length as custom iProperties. But we have hundreds (maybe thousands) created before we started adding these properties.
I'm looking to write an IV macro to add these properties to those parts where they are missing to avoid going through the files manually one by one. But since these are in the Vault I need to check the parts back in after after adding the properties i.e. to iterate through a directory Opening - Adding iProperties - Closing and Checking In ?

Is the check in something I can do in the IV macro, or do I have to write a Vault macro which presumably I call from the IV macro? I'm unclear how to proceed with this and would appreciate some guidance.

I've tried the Autodesk Vault forum where it was suggested I use the Task scheduler and Autodesk IV Customisation forum but I thought I'd try my luck here as well.



use design Assistant copy properties or Create an vb.net addin or i feel apprentice is best suited for ur case


Top
 Profile  
 
PostPosted: Tue Oct 26, 2010 6:13 pm 
Offline
MCAD Addict

Joined: 02 Mar 2005
Posts: 764
ravikmb5 wrote:
use design Assistant copy properties or Create an vb.net addin or i feel apprentice is best suited for ur case


Would you mind clarifying each of the three methods outlined above, not being too bright tonight.

I have no problem in iterating through a directory, creating custom iProperties and adding values, it's just I end up with a load of checked out files :(
(and no, ditching the Vault is not an option)


Top
 Profile  
 
PostPosted: Wed Oct 27, 2010 12:53 pm 
Offline
MCAD Lurker
User avatar

Joined: 11 Jun 2010
Posts: 19
Country: India
State: Non US/CAN Resident
CAD System: Inventor
PeterCharles wrote:


Would you mind clarifying each of the three methods outlined above, not being too bright tonight.

I have no problem in iterating through a directory, creating custom iProperties and adding values, it's just I end up with a load of checked out files :(
(and no, ditching the Vault is not an option)


For Design Assistant
http://www.youtube.com/watch?v=6WiC-1JVjsk

but if custom properties is a function then it wont work

vb.net
do u have Microsoft Visual Studio 2008

if yes,
i will give u the code ,
paste it and debug

or u can find more information on Brain Ekins "mod the machine" - blog


Top
 Profile  
 
PostPosted: Wed Oct 27, 2010 6:16 pm 
Offline
MCAD Addict

Joined: 02 Mar 2005
Posts: 764
While normally I use VBA/VB6 with Inventor, I do have a copy of VS2008 so any code to illustrate how to check files into the Vault would be much appreciated.

Thank you.


Top
 Profile  
 
PostPosted: Thu Oct 28, 2010 5:09 pm 
Offline
MCAD Contributer

Joined: 27 Jul 2004
Posts: 83
Hello, :)
What happens to sheet metal parts of you perform a Migrate on them? If Migrate with say, full rebuild creates these properties, then I'd think about building a Sequential Task from Task Scheduler, Check Out, Migrate and then Check In.

I've no way of testing what I've just said. :D

HTH

Scott


Top
 Profile  
 
PostPosted: Thu Oct 28, 2010 6:33 pm 
Offline
MCAD Addict

Joined: 02 Mar 2005
Posts: 764
According to the Task Scheduler help files
Quote:
Migrate Files task to migrate your files after installing a new release of Autodesk Inventor


To create the custom iProperties I need to run the macro so it picks up the property value from the part flat pattern.

I'm rapidly coming to the conclusion that I have to process one directory at a time, then manually run Task Scheduler to check in all the files saved in the corresponding local directory.

I admit I'm not an Inventor expert, much less a Vault expert (having kept well away from the Vault in the past). But I'm surprised that while there is an API for Inventor and an API for the Vault there seems no way to "join the two together"? Or maybe I just haven't found the one person in the world who knows how to do it.

It doesn't look as if you can automatically "force feed" Task Scheduler with the task you want it to carry out (check in files) and, in my case, the directory I want to be checked in.

I can't believe that someone hasn't faced this problem before. :(


Top
 Profile  
 
PostPosted: Thu Oct 28, 2010 10:00 pm 
Offline
MCAD Contributer
User avatar

Joined: 10 Sep 2007
Posts: 116
Country: France
State: Non US/CAN Resident
CAD System: Inventor
PeterCharles wrote:
But I'm surprised that while there is an API for Inventor and an API for the Vault there seems no way to "join the two together"? Or maybe I just haven't found the one person in the world who knows how to do it.

This is not exactly true. Basic Vault's API have no official existence. The only supported API are for Vault for Workgroup, Vault Collaboration and Vault Professionnal. I received a training last month about these. IMO using the Task Scheduler for check-in is a great idea because you can only do a check-out programmaticly.

_________________
Christophe S....t
Dev. App. Eng.


Top
 Profile  
 
PostPosted: Fri Oct 29, 2010 7:31 am 
Offline
MCAD Addict

Joined: 02 Mar 2005
Posts: 764
Apologies for lack of precision.
For "Vault" read "Vault Manufacturing 2010".


Top
 Profile  
 
PostPosted: Mon Nov 01, 2010 9:21 am 
Offline
MCAD Contributer
User avatar

Joined: 10 Sep 2007
Posts: 116
Country: France
State: Non US/CAN Resident
CAD System: Inventor
PeterCharles wrote:
For "Vault" read "Vault Manufacturing 2010".

Oh! Let me few days. My training was about Vault 2011 Professionnal.

_________________
Christophe S....t
Dev. App. Eng.


Top
 Profile  
 
PostPosted: Wed Nov 03, 2010 1:16 pm 
Offline
MCAD Lurker

Joined: 03 Nov 2010
Posts: 1
Country: United States
State: Michigan
CAD System: Inventor
nomutt wrote:
Basic Vault's API have no official existence. The only supported API are for Vault for Workgroup, Vault Collaboration and Vault Professionnal.


Who told you that? Basic Vault does have an API, and it is supported.

_________________
Doug Redmond
Software Engineer, Autodesk Inc.
http://justonesandzeros.typepad.com/


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 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:  
POWERED_BY