Inventor Customization

Inventor Customization

Reply
Mentor
tuliobarata
Posts: 164
Registered: ‎11-30-2007
Message 1 of 2 (122 Views)

Change Design State property frmo IDW - kDesignStatusDesignTrackingProperties

122 Views, 1 Replies
11-07-2012 04:46 AM

Hi all!

 

I'm trying here to change the property DESIGN STATE from my drawing, but I always got one error of invalid Arg.

I tried some codes found here in the forum and those from IV programming Help, but even using these codes i got the same error, did i forget to put something in the code ? Even to read the value i get the error:

 

 

Dim oDoc As Document
oDoc = ThisApplication.ActiveDocument 
' Obtain the PropertySets collection object
Dim oPropsets As PropertySets oPropsets = oDoc.PropertySets Dim oPropSet As PropertySet oPropSet = oPropsets.Item("{32853F0F-3444-11d1-9E93-0060B03C1CA6}") Dim oProp As String oProp = oPropSet.ItemByPropId(kDesignStatusDesignTrackingProperties).Value

I just need to set this kDesignStatusDesignTrackingProperties to 0, 1, 2 or 3. Do I have to load any other parameter before use it ?

 

Thanks!

 

Túlio Barata

IV 2013
ADN Support Specialist
xiaodong.liang
Posts: 1,303
Registered: ‎06-12-2011
Message 2 of 2 (105 Views)

Re: Change Design State property frmo IDW - kDesignStatusDesignTrackingPropertie

11-19-2012 10:58 PM in reply to: tuliobarata

Hi,

 

Is that an error when you compiling or running?

 

if compiling: try this:

 

oProp = oPropSet.ItemByPropId(PropertiesForDesignTrackingPropertiesEnum.kProjectDesignTrackingProperties).Value



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.