Vault General

Reply
Member
rodenbaw
Posts: 5
Registered: ‎02-02-2013
Message 1 of 8 (396 Views)
Accepted Solution

Inventor "Sheet Size" property in Vault 2013

396 Views, 7 Replies
02-02-2013 07:43 AM

Hello,

 

I'm trying to map a property to the "sheet size" parameter within Inventor .idw files.  I would like the sheet size to show up as a property in the Vault.  I am unable to browse to this property during the mapping process.  Is there anyway to add this property to the list?

 

Thanks

*Expert Elite*
scottmoyse
Posts: 1,592
Registered: ‎06-10-2009
Message 2 of 8 (365 Views)

Re: Inventor "Sheet Size" property in Vault 2013

02-15-2013 08:26 PM in reply to: rodenbaw

Create an iLogic rule using the code below:

 

iProperties.Value("Custom", "Sheet Size")= ActiveSheet.Size

 

Either set it as an external rule or save it into your template. Either way you will need to set the event trigger (i.e: before save) in your template. Then create a UDP in vault and map it to the custom property in the Template.

 

voila! I hope that does what you need.

Cheers
Scott Moyse

Please use Mark Solutions!.Accept as Solution &Give Kudos!Kudos to further enhance the value of these forums. Cheers!


   

Member
rodenbaw
Posts: 5
Registered: ‎02-02-2013
Message 3 of 8 (345 Views)

Re: Inventor "Sheet Size" property in Vault 2013

02-20-2013 06:50 AM in reply to: scottmoyse

That worked perfectly!

 

Thanks!

*Expert Elite*
scottmoyse
Posts: 1,592
Registered: ‎06-10-2009
Message 4 of 8 (336 Views)

Re: Inventor "Sheet Size" property in Vault 2013

02-20-2013 11:41 AM in reply to: rodenbaw

Yay my first problem solved on here with iLogic. :-)

Cheers
Scott Moyse

Please use Mark Solutions!.Accept as Solution &Give Kudos!Kudos to further enhance the value of these forums. Cheers!


   

Member
rodenbaw
Posts: 5
Registered: ‎02-02-2013
Message 5 of 8 (332 Views)

Re: Inventor "Sheet Size" property in Vault 2013

02-20-2013 02:17 PM in reply to: scottmoyse

It seems to be quite a nice solution too!

 

I wasn't sure if I worded the question well enough for anyone to understand the problem.

 

I'm using in internal rule.  I'm trying to decide if there is an advantage to using an external rule.  The event trigger has to be within template either way, correct?

 

Thanks again.

*Expert Elite*
scottmoyse
Posts: 1,592
Registered: ‎06-10-2009
Message 6 of 8 (329 Views)

Re: Inventor "Sheet Size" property in Vault 2013

02-20-2013 02:45 PM in reply to: rodenbaw

I don't like using internal rules for the same reason using document based VBA macros is a bad idea. They're difficult to manage over time as things change & a few other reasons.

 

I use External rules so then I can change it across the board without having to use the iLogic code injector each time across thousands of files.

 

I personally think having event triggers solely in the document is stupid as well. They should be in the project file and/or in the application options, with a parent child relationship. Parent>Child : Project>Application in the same way it works with styles & templates etc.

 

I would suggest using External rules unless the rules are being written for a very specific set of files.

Cheers
Scott Moyse

Please use Mark Solutions!.Accept as Solution &Give Kudos!Kudos to further enhance the value of these forums. Cheers!


   

Member
rodenbaw
Posts: 5
Registered: ‎02-02-2013
Message 7 of 8 (288 Views)

Re: Inventor "Sheet Size" property in Vault 2013

02-26-2013 08:10 AM in reply to: scottmoyse

Hi,

 

I have another similar question.  I want to grab a custom property from a part or assembly file, (in this case EDP No) and store it my drawing file as a custom property for use with Vault.  The line I tried below as a rule in my drawing does work, but needs a variable in place of the "test.ipt" in order to work properly from a template.

 

iProperties.Value("Custom", "EDP Number")= iProperties.Value("test.ipt", "Custom", "EDP NO")

 

 

I have tried bringing this across by copying iproperties from the model in the drawing, but they don’t seem to update well. 

 

Is there a way to make this work with a rule in my drawing template?

 

Thanks again,

Andy

Member
rodenbaw
Posts: 5
Registered: ‎02-02-2013
Message 8 of 8 (259 Views)

Re: Inventor "Sheet Size" property in Vault 2013

02-27-2013 02:01 PM in reply to: rodenbaw

I was able to make this work with the following:

 

modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)

 

iProperties.Value ("Custom", "EDP NO") = iProperties.Value (modelName, "Custom", "EDP NO")

 

 

It gives an error when you save the template because there is no part or assembly associated with the drawing.  But it does allow you to save the template. It works fine once the template is in use with a part. You must set an event trigger, I again used "Before Save Document".  The value does not transfer until you save the drawing with the part or asssembly in it. 

 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
New button for Platinum & Gold Subscription customers
Gold & Platinum Subscription customers can alert Autodesk if they require assistance with their forum post

Manufacturing Community
The Manufacturing Community provides additional access to tips, tutorials, blogs and networking with peers.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community