Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change Design State property frmo IDW - kDesignStatusDesignTrackingProperties

1 REPLY 1
Reply
Message 1 of 2
tuliobarata
268 Views, 1 Reply

Change Design State property frmo IDW - kDesignStatusDesignTrackingProperties

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
1 REPLY 1
Message 2 of 2

Hi,

 

Is that an error when you compiling or running?

 

if compiling: try this:

 

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report