Inventor Customization

Posts: 164
Registered: ‎11-30-2007
Message 1 of 2 (116 Views)

Change Design State property frmo IDW - kDesignStatusDesignTrackingProperties

116 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 ?




Túlio Barata

IV 2013
ADN Support Specialist
Posts: 1,261
Registered: ‎06-12-2011
Message 2 of 2 (99 Views)

Re: Change Design State property frmo IDW - kDesignStatusDesignTrackingPropertie

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



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

You are not logged in.

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

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

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

Ask the Community

Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor