Print Page | Close Window

Property Change

Printed From: CAD Forum
Category: EN
Forum Name: Inventor
Forum Description: Discussion about Autodesk Inventor
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=9370
Printed Date: 11.May.2026 at 21:21


Topic: Property Change
Posted By: arunkgvm
Subject: Property Change
Date Posted: 04.Jul.2013 at 15:48
Hi... I am using Inventor API using vb.net coding.and my need is to Change the material of the document.my code is working but when I change the material the mass didn't changed.anyone know what is the problem.here is my code.


            Dim oParameters As Parameters
            oParameters = oPartDoc.ComponentDefinition.Parameters()

             Dim oLengthParam As Parameter
            oLengthParam = oParameters.Item _
                                      ("d0")
            oLengthParam.Expression = TextBox1.Text

            Dim oPropSet As PropertySet
            oPropSet = oPartDoc.PropertySets("Design Tracking Properties")

            oPropSet.Item("Material").Value = "Glass"

            oPartDoc.Update()



Print Page | Close Window